Help us shape the future of Go! Take the 2026 Go Developer Survey

protocols

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(client *golangsdk.ServiceClient, provider string) pagination.Pager

Types

type CreateOpts

type CreateOpts struct {
	MappingID string `json:"mapping_id"`
}

func (CreateOpts) ToProtocolCreateMap

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

type CreateOptsBuilder

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

type CreateResult

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

func Create

func Create(client *golangsdk.ServiceClient, provider, protocol string, opts CreateOptsBuilder) (r CreateResult)

func (CreateResult) Extract

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

type DeleteResult

type DeleteResult struct {
	golangsdk.ErrResult
}

func Delete

func Delete(client *golangsdk.ServiceClient, provider, protocol string) (r DeleteResult)

type GetResult

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

func Get

func Get(client *golangsdk.ServiceClient, provider, protocol string) (r GetResult)

func (GetResult) Extract

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

type Protocol

type Protocol struct {
	ID        string            `json:"id"`
	MappingID string            `json:"mapping_id"`
	Links     map[string]string `json:"links"`
}

func ExtractProtocols

func ExtractProtocols(p pagination.Page) ([]Protocol, error)

type ProtocolPage

type ProtocolPage struct {
	pagination.LinkedPageBase
}

func (ProtocolPage) IsEmpty

func (p ProtocolPage) IsEmpty() (bool, error)

type UpdateOpts

type UpdateOpts struct {
	MappingID string `json:"mapping_id"`
}

func (UpdateOpts) ToProtocolUpdateMap

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

type UpdateOptsBuilder

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

type UpdateResult

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

func Update

func Update(client *golangsdk.ServiceClient, provider, protocol string, opts UpdateOptsBuilder) (r UpdateResult)

func (UpdateResult) Extract

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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