models

package
v0.0.0-...-89602ce Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONMapToProtobufStruct

func JSONMapToProtobufStruct(m map[string]interface{}) (*structpb.Struct, error)

JSONMapToProtobufStruct converts a map[string]interface{} JSON object to the equivalent protobuf Struct

func ProtobufStructToJSONMap

func ProtobufStructToJSONMap(s *structpb.Struct) (map[string]interface{}, error)

ProtobufStructToJSONMap converts a protobuf Struct to the equivalent map[string]interface{} JSON object

Types

type Error

type Error struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error swagger:model error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type GatewayDescription

type GatewayDescription string

GatewayDescription gateway description swagger:model gateway_description

func (*GatewayDescription) FromBackendModels

func (m *GatewayDescription) FromBackendModels(networkID string, gatewayID string) error

func (*GatewayDescription) ToUpdateCriteria

func (m *GatewayDescription) ToUpdateCriteria(networkID string, gatewayID string) ([]configurator.EntityUpdateCriteria, error)

func (GatewayDescription) Validate

func (m GatewayDescription) Validate(formats strfmt.Registry) error

Validate validates this gateway description

func (*GatewayDescription) ValidateModel

func (m *GatewayDescription) ValidateModel() error

type GatewayID

type GatewayID string

GatewayID gateway id swagger:model gateway_id

func (GatewayID) Validate

func (m GatewayID) Validate(formats strfmt.Registry) error

Validate validates this gateway id

type GatewayName

type GatewayName string

GatewayName gateway name swagger:model gateway_name

func (*GatewayName) FromBackendModels

func (m *GatewayName) FromBackendModels(networkID string, gatewayID string) error

func (*GatewayName) ToUpdateCriteria

func (m *GatewayName) ToUpdateCriteria(networkID string, gatewayID string) ([]configurator.EntityUpdateCriteria, error)

func (GatewayName) Validate

func (m GatewayName) Validate(formats strfmt.Registry) error

Validate validates this gateway name

func (*GatewayName) ValidateModel

func (m *GatewayName) ValidateModel() error

type NetworkDescription

type NetworkDescription string

NetworkDescription network description swagger:model network_description

func (*NetworkDescription) GetFromNetwork

func (m *NetworkDescription) GetFromNetwork(network configurator.Network) interface{}

func (*NetworkDescription) ToUpdateCriteria

func (NetworkDescription) Validate

func (m NetworkDescription) Validate(formats strfmt.Registry) error

Validate validates this network description

func (*NetworkDescription) ValidateModel

func (m *NetworkDescription) ValidateModel() error

type NetworkID

type NetworkID string

NetworkID network id swagger:model network_id

func (NetworkID) Validate

func (m NetworkID) Validate(formats strfmt.Registry) error

Validate validates this network id

type NetworkName

type NetworkName string

NetworkName network name swagger:model network_name

func (*NetworkName) GetFromNetwork

func (m *NetworkName) GetFromNetwork(network configurator.Network) interface{}

func (*NetworkName) ToUpdateCriteria

func (m *NetworkName) ToUpdateCriteria(network configurator.Network) (configurator.NetworkUpdateCriteria, error)

func (NetworkName) Validate

func (m NetworkName) Validate(formats strfmt.Registry) error

Validate validates this network name

func (*NetworkName) ValidateModel

func (m *NetworkName) ValidateModel() error

type NetworkType

type NetworkType string

NetworkType The type of the network swagger:model network_type

func (*NetworkType) GetFromNetwork

func (m *NetworkType) GetFromNetwork(network configurator.Network) interface{}

func (*NetworkType) ToUpdateCriteria

func (m *NetworkType) ToUpdateCriteria(network configurator.Network) (configurator.NetworkUpdateCriteria, error)

func (NetworkType) Validate

func (m NetworkType) Validate(formats strfmt.Registry) error

Validate validates this network type

func (*NetworkType) ValidateModel

func (m *NetworkType) ValidateModel() error

Jump to

Keyboard shortcuts

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