agentendpoint

package
v0.0.0-...-f0c808a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Overview

Package agentendpoint connects to the osconfig agentendpoint api.

Index

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 NewClient

func NewClient(ctx context.Context) (*Client, error)

NewClient a new agentendpoint Client.

func (*Client) Close

func (c *Client) Close() error

Close cancels WaitForTaskNotification and closes the underlying ClientConn.

func (*Client) Closed

func (c *Client) Closed() bool

Closed reports whether the Client has been closed.

func (*Client) RegisterAgent

func (c *Client) RegisterAgent(ctx context.Context) error

RegisterAgent calls RegisterAgent discarding the response.

func (*Client) ReportInventory

func (c *Client) ReportInventory(ctx context.Context)

ReportInventory writes inventory to guest attributes and reports it to agent endpoint.

func (*Client) RunApplyConfig

func (c *Client) RunApplyConfig(ctx context.Context, task *agentendpointpb.Task) error

RunApplyConfig runs an ApplyConfigTask.

func (*Client) RunApplyPatches

func (c *Client) RunApplyPatches(ctx context.Context, task *agentendpointpb.Task) error

RunApplyPatches runs an ApplyPatchesTask.

func (*Client) RunExecStep

func (c *Client) RunExecStep(ctx context.Context, task *agentendpointpb.Task) error

RunExecStep runs an ExecStepTask.

func (*Client) WaitForTaskNotification

func (c *Client) WaitForTaskNotification(ctx context.Context)

WaitForTaskNotification waits for and acts on any task notification until the Client is closed. Multiple calls to WaitForTaskNotification will not create new watchers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL