Documentation ¶
Index ¶
- func AllEnrollmentTokens(ctx context.Context, client *Client) ([]fleetapi.EnrollmentApiKey, diag.Diagnostics)
- func CreateAgentPolicy(ctx context.Context, client *Client, req fleetapi.AgentPolicyCreateRequest) (*fleetapi.AgentPolicy, diag.Diagnostics)
- func CreateFleetServerHost(ctx context.Context, client *Client, ...) (*fleetapi.FleetServerHost, diag.Diagnostics)
- func CreateOutput(ctx context.Context, client *Client, req fleetapi.PostOutputsJSONRequestBody) (*fleetapi.OutputCreateRequest, diag.Diagnostics)
- func DeleteAgentPolicy(ctx context.Context, client *Client, id string) diag.Diagnostics
- func DeleteFleetServerHost(ctx context.Context, client *Client, id string) diag.Diagnostics
- func DeleteOutput(ctx context.Context, client *Client, id string) diag.Diagnostics
- func ReadAgentPolicy(ctx context.Context, client *Client, id string) (*fleetapi.AgentPolicy, diag.Diagnostics)
- func ReadFleetServerHost(ctx context.Context, client *Client, id string) (*fleetapi.FleetServerHost, diag.Diagnostics)
- func ReadOutput(ctx context.Context, client *Client, id string) (*fleetapi.OutputCreateRequest, diag.Diagnostics)
- func UpdateAgentPolicy(ctx context.Context, client *Client, id string, ...) (*fleetapi.AgentPolicy, diag.Diagnostics)
- func UpdateFleetServerHost(ctx context.Context, client *Client, id string, ...) (*fleetapi.FleetServerHost, diag.Diagnostics)
- func UpdateOutput(ctx context.Context, client *Client, id string, ...) (*fleetapi.OutputUpdateRequest, diag.Diagnostics)
- type Client
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllEnrollmentTokens ¶
func AllEnrollmentTokens(ctx context.Context, client *Client) ([]fleetapi.EnrollmentApiKey, diag.Diagnostics)
AllEnrollmentTokens reads all enrollment tokens from the API.
func CreateAgentPolicy ¶
func CreateAgentPolicy(ctx context.Context, client *Client, req fleetapi.AgentPolicyCreateRequest) (*fleetapi.AgentPolicy, diag.Diagnostics)
CreateAgentPolicy creates a new agent policy.
func CreateFleetServerHost ¶
func CreateFleetServerHost(ctx context.Context, client *Client, req fleetapi.PostFleetServerHostsJSONRequestBody) (*fleetapi.FleetServerHost, diag.Diagnostics)
CreateFleetServerHost creates a new fleet server host.
func CreateOutput ¶
func CreateOutput(ctx context.Context, client *Client, req fleetapi.PostOutputsJSONRequestBody) (*fleetapi.OutputCreateRequest, diag.Diagnostics)
CreateOutput creates a new output.
func DeleteAgentPolicy ¶
DeleteAgentPolicy deletes an existing agent policy
func DeleteFleetServerHost ¶
DeleteFleetServerHost deletes an existing fleet server host.
func DeleteOutput ¶
DeleteOutput deletes an existing output
func ReadAgentPolicy ¶
func ReadAgentPolicy(ctx context.Context, client *Client, id string) (*fleetapi.AgentPolicy, diag.Diagnostics)
ReadAgentPolicy reads a specific agent policy from the API.
func ReadFleetServerHost ¶
func ReadFleetServerHost(ctx context.Context, client *Client, id string) (*fleetapi.FleetServerHost, diag.Diagnostics)
ReadFleetServerHost reads a specific fleet server host from the API.
func ReadOutput ¶
func ReadOutput(ctx context.Context, client *Client, id string) (*fleetapi.OutputCreateRequest, diag.Diagnostics)
ReadOutput reads a specific output from the API.
func UpdateAgentPolicy ¶
func UpdateAgentPolicy(ctx context.Context, client *Client, id string, req fleetapi.AgentPolicyUpdateRequest) (*fleetapi.AgentPolicy, diag.Diagnostics)
UpdateAgentPolicy updates an existing agent policy.
func UpdateFleetServerHost ¶
func UpdateFleetServerHost(ctx context.Context, client *Client, id string, req fleetapi.UpdateFleetServerHostsJSONRequestBody) (*fleetapi.FleetServerHost, diag.Diagnostics)
UpdateFleetServerHost updates an existing fleet server host.
func UpdateOutput ¶
func UpdateOutput(ctx context.Context, client *Client, id string, req fleetapi.UpdateOutputJSONRequestBody) (*fleetapi.OutputUpdateRequest, diag.Diagnostics)
UpdateOutput updates an existing output.