logging

package
v6.6.7 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(username, password, token, url, terraformVersion string, insecure bool) *Client

NewClient returns a new Logging 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

func (c *Client) IsPipelineAvailable(ctx context.Context, d *schema.ResourceData) (bool, error)

IsPipelineAvailable checks if the pipeline is available

func (*Client) IsPipelineDeleted

func (c *Client) IsPipelineDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)

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

Jump to

Keyboard shortcuts

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