logtopics

package
v0.0.0-...-d823fe1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 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 {
	// Specifies the log group name.
	LogTopicName string `json:"log_topic_name" required:"true"`
}

CreateOpts is a struct that contains all the parameters.

func (CreateOpts) ToLogTopicsCreateMap

func (ops CreateOpts) ToLogTopicsCreateMap() (map[string]interface{}, error)

ToLogTopicsCreateMap is used for type convert

type CreateOptsBuilder

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

CreateOptsBuilder is used for creating log group parameters.

type CreateResponse

type CreateResponse struct {
	ID string `json:"log_topic_id"`
}

CreateResponse represents response in Create method

type CreateResult

type CreateResult struct {
	golangsdk.Result
}

CreateResult is a struct that contains all the return parameters of creation

func Create

func Create(client *golangsdk.ServiceClient, groupId string, ops CreateOptsBuilder) (r CreateResult)

Create a log topic with given parameters.

func (CreateResult) Extract

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

Extract from CreateResult

type DeleteResult

type DeleteResult struct {
	golangsdk.ErrResult
}

DeleteResult is a struct which contains the result of deletion

func Delete

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

Delete a log topic by id

type GetResult

type GetResult struct {
	golangsdk.Result
}

GetResult contains the body of getting detailed

func Get

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

Get a log topic with detailed information by id

func (GetResult) Extract

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

Extract from GetResult

type LogTopic

type LogTopic struct {
	ID           string `json:"log_topic_id,omitempty"`
	Name         string `json:"log_topic_name"`
	CreationTime int64  `json:"creation_time"`
	IndexEnabled bool   `json:"index_enabled"`
}

LogTopic represents response in Get method

Jump to

Keyboard shortcuts

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