logtanks

package
v0.0.0-...-57791d6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOpts

type CreateOpts struct {
	// The LoadBalancer on which the log will be associated with.
	LoadbalancerID string `json:"loadbalancer_id" required:"true"`

	// The log group on which the log will be associated with.
	LogGroupId string `json:"log_group_id" required:"true"`

	// The topic on which the log will subscribe.
	LogTopicId string `json:"log_topic_id" required:"true"`
}

CreateOpts is the common options struct used in this package's Create operation.

func (CreateOpts) ToLogTanksCreateMap

func (opts CreateOpts) ToLogTanksCreateMap() (map[string]interface{}, error)

ToLogTanksCreateMap builds a request body from CreateOpts.

type CreateOptsBuilder

type CreateOptsBuilder interface {
	ToLogTanksCreateMap() (map[string]interface{}, error)
}

CreateOptsBuilder allows extensions to add additional parameters to the Create request.

type CreateResult

type CreateResult struct {
	// contains filtered or unexported fields
}

CreateResult represents the result of a create operation. Call its Extract method to interpret it as a LogTank.

func Create

Create is an operation which provisions a new Logtanks based on the configuration defined in the CreateOpts struct. Once the request is validated and progress has started on the provisioning process, a CreateResult will be returned.

func (CreateResult) Extract

func (r CreateResult) Extract() (*LogTank, error)

Extract is a function that accepts a result and extracts a logtank.

type DeleteResult

type DeleteResult struct {
	golangsdk.ErrResult
}

DeleteResult represents the result of a delete operation. Call its ExtractErr method to determine if the request succeeded or failed.

func Delete

func Delete(c *golangsdk.ServiceClient, id string) (r DeleteResult)

Delete will permanently delete a particular Logtank based on its unique ID.

type GetResult

type GetResult struct {
	// contains filtered or unexported fields
}

GetResult represents the result of a get operation. Call its Extract method to interpret it as a LogTank.

func Get

func Get(c *golangsdk.ServiceClient, id string) (r GetResult)

Get retrieves a particular Logtanks based on its unique ID.

func (GetResult) Extract

func (r GetResult) Extract() (*LogTank, error)

Extract is a function that accepts a result and extracts a logtank.

type LogTank

type LogTank struct {
	// The unique ID for the LogTank.
	ID string `json:"id"`

	// The Loadbalancer on which the log associated with.
	LoadbalancerID string `json:"loadbalancer_id"`

	// The log group on which the log associated with.
	LogGroupId string `json:"log_group_id"`

	// The topic on which the log subscribe.
	LogTopicId string `json:"log_topic_id"`
}

type UpdateOpts

type UpdateOpts struct {
	// The log group on which the log will be associated with.
	LogGroupId string `json:"log_group_id,omitempty"`

	// The topic on which the log will subscribe.
	LogTopicId string `json:"log_topic_id,omitempty"`
}

UpdateOpts is the common options struct used in this package's Update operation.

func (UpdateOpts) ToLogTanksUpdateMap

func (opts UpdateOpts) ToLogTanksUpdateMap() (map[string]interface{}, error)

ToLogTanksUpdateMap builds a request body from UpdateOpts.

type UpdateOptsBuilder

type UpdateOptsBuilder interface {
	ToLogTanksUpdateMap() (map[string]interface{}, error)
}

UpdateOptsBuilder allows extensions to add additional parameters to the Update request.

type UpdateResult

type UpdateResult struct {
	// contains filtered or unexported fields
}

UpdateResult represents the result of an update operation. Call its Extract method to interpret it as a LogTank.

func Update

func Update(c *golangsdk.ServiceClient, id string, opts UpdateOpts) (r UpdateResult)

Update is an operation which modifies the attributes of the specified Logtank.

func (UpdateResult) Extract

func (r UpdateResult) Extract() (*LogTank, error)

Extract is a function that accepts a result and extracts a logtank.

Jump to

Keyboard shortcuts

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