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 ¶
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 ¶
func Create(c *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)
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.
type DeleteResult ¶
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.
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 ¶
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.