Documentation
¶
Index ¶
- Variables
- type APIClient
- func (ac *APIClient) CheckEnv(ctx context.Context, logger log.Logger, env *spec.CheckArgs) (*spec.CheckResult, error)
- func (ac *APIClient) CreateEnv(ctx context.Context, logger log.Logger, env *spec.EnvArgs) (*spec.CreateResponse, error)
- func (ac *APIClient) FetchMetrics(ctx context.Context, logger log.Logger) (map[string]*dto.MetricFamily, error)
- func (ac *APIClient) Healthcheck(ctx context.Context, logger log.Logger) error
- func (ac *APIClient) IsabelleVersions(ctx context.Context, logger log.Logger) (spec.IsabelleVersionResponse, error)
- func (ac *APIClient) Request(ctx context.Context, logger log.Logger, method string, path string, args any, ...) error
- func (ac *APIClient) Specification(ctx context.Context, logger log.Logger) ([]byte, error)
- func (ac *APIClient) StatusEnv(ctx context.Context, logger log.Logger, env *spec.EnvID) (*spec.StatusResponse, error)
- func (ac *APIClient) Versions(ctx context.Context, logger log.Logger) (spec.VersionResponse, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
simple API client for ISM API, safe for concurrent use and intended for testing.
func (*APIClient) CheckEnv ¶
func (ac *APIClient) CheckEnv( ctx context.Context, logger log.Logger, env *spec.CheckArgs, ) (*spec.CheckResult, error)
submit env creation request
func (*APIClient) CreateEnv ¶
func (ac *APIClient) CreateEnv( ctx context.Context, logger log.Logger, env *spec.EnvArgs, ) (*spec.CreateResponse, error)
submit env creation request
func (*APIClient) FetchMetrics ¶
func (ac *APIClient) FetchMetrics( ctx context.Context, logger log.Logger, ) (map[string]*dto.MetricFamily, error)
fetch prometheus metrics from API
func (*APIClient) Healthcheck ¶
submit env creation request
func (*APIClient) IsabelleVersions ¶
func (ac *APIClient) IsabelleVersions( ctx context.Context, logger log.Logger, ) (spec.IsabelleVersionResponse, error)
fetch API version support matrix
func (*APIClient) Request ¶
func (ac *APIClient) Request( ctx context.Context, logger log.Logger, method string, path string, args any, respArgs any, ) error
make arbitrary JSON-based request to api
func (*APIClient) Specification ¶
fetch API specification
Source Files
¶
- simple.go
Click to show internal directories.
Click to hide internal directories.