Documentation ¶
Index ¶
- type Client
- func (c *Client) AcknowledgeSystemEvent(ctx context.Context, id string) (*SystemEventResponse, error)
- func (c *Client) Client() *http.Client
- func (c *Client) Copy() *Client
- func (c *Client) DisableFeatureFlag(ctx context.Context, name string) (bool, error)
- func (c *Client) EnableFeatureFlag(ctx context.Context, name string) (bool, error)
- func (c *Client) FindPerformanceResultById(ctx context.Context, id string) (*model.APIPerformanceResult, error)
- func (c *Client) GetApiKey() string
- func (c *Client) GetRootCertificate(ctx context.Context) (string, error)
- func (c *Client) GetSimpleLog(ctx context.Context, logID string) (*SimpleLogContentResponse, error)
- func (c *Client) GetSimpleLogText(ctx context.Context, logID string) ([]string, error)
- func (c *Client) GetStatus(ctx context.Context) (*StatusResponse, error)
- func (c *Client) GetSystemEvent(ctx context.Context, id string) (*SystemEventResponse, error)
- func (c *Client) GetSystemEvents(ctx context.Context, level string, limit int) (*SystemEventsResponse, error)
- func (c *Client) GetSystemInformation(ctx context.Context, host string, start, end time.Time, limit int) ([]*message.SystemInfo, error)
- func (c *Client) GetUser() string
- func (c *Client) GetUserCertificate(ctx context.Context, username, password, apiKey string) (string, error)
- func (c *Client) GetUserCertificateKey(ctx context.Context, username, password, apiKey string) (string, error)
- func (c *Client) Host() string
- func (c *Client) Port() int
- func (c *Client) Prefix() string
- func (c *Client) RemovePerformanceResultById(ctx context.Context, id string) (string, error)
- func (c *Client) SendSystemInfo(ctx context.Context, info *message.SystemInfo) (*SystemInfoReceivedResponse, error)
- func (c *Client) SetHost(h string) error
- func (c *Client) SetPort(p int) error
- func (c *Client) SetPrefix(p string) error
- func (c *Client) SetUser(u, k string)
- func (c *Client) WriteSimpleLog(ctx context.Context, logID, data string, increment int) (*SimpleLogIngestionResponse, error)
- type ClientOptions
- type Service
- type SimpleLogContentResponse
- type SimpleLogIngestionResponse
- type StatusResponse
- type SystemEventResponse
- type SystemEventsResponse
- type SystemInfoReceivedResponse
- type SystemInformationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides an interface for interacting with a remote amboy Service.
func NewClient ¶
func NewClient(opts ClientOptions) (*Client, error)
NewClient takes host, port, and URI prefix information and constructs a new Client.
func NewClientFromExisting ¶
func NewClientFromExisting(client *http.Client, opts ClientOptions) (*Client, error)
NewClientFromExisting takes an existing http.Client object and produces a new Client object.
func (*Client) AcknowledgeSystemEvent ¶
func (*Client) Copy ¶
Copy takes an existing Client object and returns a new client object with the same settings that uses a *new* http.Client.
func (*Client) DisableFeatureFlag ¶
func (*Client) EnableFeatureFlag ¶
func (*Client) FindPerformanceResultById ¶
func (*Client) GetRootCertificate ¶
func (*Client) GetSimpleLog ¶
func (*Client) GetSimpleLogText ¶
func (*Client) GetSystemEvent ¶
func (*Client) GetSystemEvents ¶
func (*Client) GetSystemInformation ¶
func (*Client) GetUserCertificate ¶
func (*Client) GetUserCertificateKey ¶
func (*Client) Prefix ¶
Prefix accesses the prefix for the client, The prefix is the part of the URI between the end-point and the hostname, of the API.
func (*Client) RemovePerformanceResultById ¶
func (*Client) SendSystemInfo ¶
func (c *Client) SendSystemInfo(ctx context.Context, info *message.SystemInfo) (*SystemInfoReceivedResponse, error)
func (*Client) SetHost ¶
SetHost allows callers to change the hostname (including leading "http(s)") for the Client. Returns an error if the specified host does not start with "http".
func (*Client) SetPort ¶
SetPort allows callers to change the port used for the client. If the port is invalid, returns an error and sets the port to the default value. (3000)
func (*Client) WriteSimpleLog ¶
type ClientOptions ¶
type Service ¶
type Service struct { Port int Prefix string Environment cedar.Environment Conf *model.CedarConfig UserManager gimlet.UserManager RPCServers []string Depot certdepot.Depot // contains filtered or unexported fields }
type StatusResponse ¶
type SystemEventResponse ¶
type SystemEventsResponse ¶
type SystemInformationResponse ¶
type SystemInformationResponse struct { Error string `json:"error,omitempty"` Data []*message.SystemInfo `json:"data"` Total int `json:"total,omitempty"` Limit int `json:"limit,omitempty"` }