Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) CreatePipeline(ctx context.Context, d *schema.ResourceData) (logging.ProvisioningPipeline, utils.ApiResponseInfo, error)
- func (c *Client) DeletePipeline(ctx context.Context, location, id string) (utils.ApiResponseInfo, error)
- func (c *Client) GetCentralLogging(ctx context.Context) (logging.CentralLoggingResponse, *shared.APIResponse, error)
- func (c *Client) GetPipelineByID(ctx context.Context, location, id string) (logging.Pipeline, *shared.APIResponse, error)
- func (c *Client) IsPipelineAvailable(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *Client) IsPipelineDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *Client) ListPipelines(ctx context.Context, location string) (logging.PipelineListResponse, *shared.APIResponse, error)
- func (c *Client) SetPipelineData(d *schema.ResourceData, pipeline logging.Pipeline) error
- func (c *Client) UpdatePipeline(ctx context.Context, id string, d *schema.ResourceData) (logging.Pipeline, utils.ApiResponseInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // AvailableLocations is a list of available locations AvailableLocations = []string{"de/fra", "de/txl", "es/vit", "gb/lhr", "fr/par"} // DefaultLocation is the default logging pipeline location DefaultLocation = "de/txl" )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a wrapper for the Logging SDK client
func (*Client) CreatePipeline ¶
func (c *Client) CreatePipeline(ctx context.Context, d *schema.ResourceData) (logging.ProvisioningPipeline, utils.ApiResponseInfo, error)
CreatePipeline creates a new pipeline
func (*Client) DeletePipeline ¶
func (c *Client) DeletePipeline(ctx context.Context, location, id string) (utils.ApiResponseInfo, error)
DeletePipeline deletes a pipeline
func (*Client) GetCentralLogging ¶ added in v6.5.0
func (c *Client) GetCentralLogging(ctx context.Context) (logging.CentralLoggingResponse, *shared.APIResponse, error)
GetCentralLogging will retrieve the central logging configuration
func (*Client) GetPipelineByID ¶ added in v6.4.19
func (c *Client) GetPipelineByID(ctx context.Context, location, id string) (logging.Pipeline, *shared.APIResponse, error)
GetPipelineByID returns a pipeline by its ID
func (*Client) IsPipelineAvailable ¶
IsPipelineAvailable checks if the pipeline is available
func (*Client) IsPipelineDeleted ¶
IsPipelineDeleted checks if the pipeline is deleted
func (*Client) ListPipelines ¶
func (c *Client) ListPipelines(ctx context.Context, location string) (logging.PipelineListResponse, *shared.APIResponse, error)
ListPipelines returns a list of all pipelines
func (*Client) SetPipelineData ¶
func (c *Client) SetPipelineData(d *schema.ResourceData, pipeline logging.Pipeline) error
SetPipelineData sets the pipeline data
func (*Client) UpdatePipeline ¶
func (c *Client) UpdatePipeline(ctx context.Context, id string, d *schema.ResourceData) (logging.Pipeline, utils.ApiResponseInfo, error)
UpdatePipeline updates a pipeline
Click to show internal directories.
Click to hide internal directories.