Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateDraftExternalAuditStorage(ctx context.Context, in *externalauditstorage.ExternalAuditStorage) (*externalauditstorage.ExternalAuditStorage, error)
- func (c *Client) DeleteDraftExternalAuditStorage(ctx context.Context) error
- func (c *Client) DisableClusterExternalAuditStorage(ctx context.Context) error
- func (c *Client) GenerateDraftExternalAuditStorage(ctx context.Context, integrationName, region string) (*externalauditstorage.ExternalAuditStorage, error)
- func (c *Client) GetClusterExternalAuditStorage(ctx context.Context) (*externalauditstorage.ExternalAuditStorage, error)
- func (c *Client) GetDraftExternalAuditStorage(ctx context.Context) (*externalauditstorage.ExternalAuditStorage, error)
- func (c *Client) PromoteToClusterExternalAuditStorage(ctx context.Context) error
- func (c *Client) TestDraftExternalAuditStorageAthena(ctx context.Context) error
- func (c *Client) TestDraftExternalAuditStorageBuckets(ctx context.Context) error
- func (c *Client) TestDraftExternalAuditStorageGlue(ctx context.Context) error
- func (c *Client) UpsertDraftExternalAuditStorage(ctx context.Context, in *externalauditstorage.ExternalAuditStorage) (*externalauditstorage.ExternalAuditStorage, error)
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 is an External Audit Storage client.
func NewClient ¶
func NewClient(grpcClient externalauditstoragev1.ExternalAuditStorageServiceClient) *Client
NewClient creates a new ExternalAuditStorage client.
func (*Client) CreateDraftExternalAuditStorage ¶
func (c *Client) CreateDraftExternalAuditStorage(ctx context.Context, in *externalauditstorage.ExternalAuditStorage) (*externalauditstorage.ExternalAuditStorage, error)
CreateDraftExternalAuditStorage creates a draft External Audit Storage resource if one does not already exist.
func (*Client) DeleteDraftExternalAuditStorage ¶
DeleteDraftExternalAuditStorage removes draft External Audit Storage resource.
func (*Client) DisableClusterExternalAuditStorage ¶
DisableClusterExternalAuditStorage disables the External Audit Storage feature, which means default cloud audit will be used.
func (*Client) GenerateDraftExternalAuditStorage ¶
func (c *Client) GenerateDraftExternalAuditStorage(ctx context.Context, integrationName, region string) (*externalauditstorage.ExternalAuditStorage, error)
GenerateDraftExternalAuditStorage create a new draft External Audit Storage resource with randomized resource names and upserts it as the current draft.
func (*Client) GetClusterExternalAuditStorage ¶
func (c *Client) GetClusterExternalAuditStorage(ctx context.Context) (*externalauditstorage.ExternalAuditStorage, error)
GetClusterExternalAuditStorage gets cluster External Audit Storage.
func (*Client) GetDraftExternalAuditStorage ¶
func (c *Client) GetDraftExternalAuditStorage(ctx context.Context) (*externalauditstorage.ExternalAuditStorage, error)
GetDraftExternalAuditStorage returns the draft External Audit Storage configuration resource.
func (*Client) PromoteToClusterExternalAuditStorage ¶
PromoteToClusterExternalAuditStorage promotes the current draft External Audit Storage configuration to be used in the cluster.
func (*Client) TestDraftExternalAuditStorageAthena ¶
TestDraftExternalAuditStorageAthena tests the configuration to the current draft athena.
func (*Client) TestDraftExternalAuditStorageBuckets ¶
TestDraftExternalAuditStorageBuckets tests the connection to the current draft buckets.
func (*Client) TestDraftExternalAuditStorageGlue ¶
TestDraftExternalAuditStorageGlue tests the configuration to the current draft glue table and database.
func (*Client) UpsertDraftExternalAuditStorage ¶
func (c *Client) UpsertDraftExternalAuditStorage(ctx context.Context, in *externalauditstorage.ExternalAuditStorage) (*externalauditstorage.ExternalAuditStorage, error)
UpsertDraftExternalAuditStorage upserts a draft External Audit Storage resource.