Documentation ¶
Overview ¶
Package agentendpoint connects to the osconfig agentendpoint api.
Index ¶
- type BetaClient
- type Client
- func (c *Client) Close() error
- func (c *Client) Closed() bool
- func (c *Client) RegisterAgent(ctx context.Context) error
- func (c *Client) ReportInventory(ctx context.Context)
- func (c *Client) RunApplyConfig(ctx context.Context, task *agentendpointpb.Task) error
- func (c *Client) RunApplyPatches(ctx context.Context, task *agentendpointpb.Task) error
- func (c *Client) RunExecStep(ctx context.Context, task *agentendpointpb.Task) error
- func (c *Client) WaitForTaskNotification(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BetaClient ¶
type BetaClient struct {
// contains filtered or unexported fields
}
BetaClient is a an agentendpoint client.
func NewBetaClient ¶
func NewBetaClient(ctx context.Context) (*BetaClient, error)
NewBetaClient a new agentendpoint Client.
func (*BetaClient) Close ¶
func (c *BetaClient) Close() error
Close cancels WaitForTaskNotification and closes the underlying ClientConn.
func (*BetaClient) Closed ¶
func (c *BetaClient) Closed() bool
Closed reports whether the Client has been closed.
func (*BetaClient) LookupEffectiveGuestPolicies ¶
func (c *BetaClient) LookupEffectiveGuestPolicies(ctx context.Context) (res *agentendpointpb.EffectiveGuestPolicy, err error)
LookupEffectiveGuestPolicies calls the agentendpoint service LookupEffectiveGuestPolicies.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a an agentendpoint client.
func (*Client) RegisterAgent ¶
RegisterAgent calls RegisterAgent discarding the response.
func (*Client) ReportInventory ¶
ReportInventory writes inventory to guest attributes and reports it to agent endpoint.
func (*Client) RunApplyConfig ¶
RunApplyConfig runs an ApplyConfigTask.
func (*Client) RunApplyPatches ¶
RunApplyPatches runs an ApplyPatchesTask.
func (*Client) RunExecStep ¶
RunExecStep runs an ExecStepTask.
func (*Client) WaitForTaskNotification ¶
WaitForTaskNotification waits for and acts on any task notification until the Client is closed. Multiple calls to WaitForTaskNotification will not create new watchers.