Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOps ¶
type CreateOps struct { // Name of the topic to be created Name string `json:"name" required:"true"` // Topic display name DisplayName string `json:"display_name,omitempty"` }
CreateOps is a struct that contains all the parameters.
func (CreateOps) ToTopicCreateMap ¶
type CreateOpsBuilder ¶
CreateOpsBuilder is used for creating topic parameters. any struct providing the parameters should implement this interface
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
CreateResult contains the response body and error from a Create request.
func Create ¶
func Create(client *golangsdk.ServiceClient, ops CreateOpsBuilder) (r CreateResult)
Create a topic with given parameters.
func (CreateResult) ExtractGet ¶
func (CreateResult) ExtractInto ¶
func (r CreateResult) ExtractInto(v interface{}) error
type DeleteResult ¶
type DeleteResult struct {
golangsdk.ErrResult
}
func Delete ¶
func Delete(client *golangsdk.ServiceClient, id string) (r DeleteResult)
Delete a topic via id
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
func (GetResult) ExtractGet ¶
func (GetResult) ExtractInto ¶
func (r GetResult) ExtractInto(v interface{}) error
type ListResult ¶
type ListResult struct {
golangsdk.Result
}
func (ListResult) Extract ¶
func (lr ListResult) Extract() ([]TopicGet, error)
type UpdateOps ¶
type UpdateOps struct { // Topic display name DisplayName string `json:"display_name,omitempty"` }
UpdateOps is a struct that contains all the parameters.
func (UpdateOps) ToTopicUpdateMap ¶
type UpdateOpsBuilder ¶
CreateOpsBuilder is used for updating topic parameters. any struct providing the parameters should implement this interface
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
func Update ¶
func Update(client *golangsdk.ServiceClient, ops UpdateOpsBuilder, id string) (r UpdateResult)
Update a topic with given parameters.
func (UpdateResult) ExtractGet ¶
func (UpdateResult) ExtractInto ¶
func (r UpdateResult) ExtractInto(v interface{}) error
Click to show internal directories.
Click to hide internal directories.