models

package
v0.0.0-...-c25967f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdAddArgs

type CmdAddArgs struct {

	// container ID
	// Required: true
	ContainerID *string `json:"containerID"`

	// if name
	// Required: true
	IfName *string `json:"ifName"`

	// ipv4 pools
	IPV4Pools []string `json:"ipv4Pools"`

	// ipv6 pools
	IPV6Pools []string `json:"ipv6Pools"`

	// pod name
	// Required: true
	PodName *string `json:"podName"`

	// pod namespace
	// Required: true
	PodNamespace *string `json:"podNamespace"`
}

CmdAddArgs cmd add args

swagger:model CmdAddArgs

func (*CmdAddArgs) ContextValidate

func (m *CmdAddArgs) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cmd add args based on context it is used

func (*CmdAddArgs) MarshalBinary

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

MarshalBinary interface implementation

func (*CmdAddArgs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CmdAddArgs) Validate

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

Validate validates this cmd add args

type CmdAddResult

type CmdAddResult struct {

	// dns
	DNS *DNS `json:"dns,omitempty"`

	// ips
	// Required: true
	Ips []*IPConfig `json:"ips"`

	// routes
	Routes []*Route `json:"routes"`
}

CmdAddResult cmd add result

swagger:model CmdAddResult

func (*CmdAddResult) ContextValidate

func (m *CmdAddResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cmd add result based on the context it is used

func (*CmdAddResult) MarshalBinary

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

MarshalBinary interface implementation

func (*CmdAddResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CmdAddResult) Validate

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

Validate validates this cmd add result

type CmdDelArgs

type CmdDelArgs struct {

	// container ID
	// Required: true
	ContainerID *string `json:"containerID"`

	// if name
	// Required: true
	IfName *string `json:"ifName"`

	// pod name
	// Required: true
	PodName *string `json:"podName"`

	// pod namespace
	// Required: true
	PodNamespace *string `json:"podNamespace"`
}

CmdDelArgs cmd del args

swagger:model CmdDelArgs

func (*CmdDelArgs) ContextValidate

func (m *CmdDelArgs) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cmd del args based on context it is used

func (*CmdDelArgs) MarshalBinary

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

MarshalBinary interface implementation

func (*CmdDelArgs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CmdDelArgs) Validate

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

Validate validates this cmd del args

type DNS

type DNS struct {

	// domain
	Domain string `json:"domain,omitempty"`

	// nameservers
	// Required: true
	Nameservers []string `json:"nameservers"`

	// options
	Options []string `json:"options"`

	// search
	Search []string `json:"search"`
}

DNS DNS

swagger:model DNS

func (*DNS) ContextValidate

func (m *DNS) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this DNS based on context it is used

func (*DNS) MarshalBinary

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

MarshalBinary interface implementation

func (*DNS) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DNS) Validate

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

Validate validates this DNS

type Error

type Error string

Error error

swagger:model Error

func (Error) ContextValidate

func (m Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (Error) Validate

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

Validate validates this error

type IPConfig

type IPConfig struct {

	// address
	// Required: true
	Address *string `json:"address"`

	// gateway
	Gateway string `json:"gateway,omitempty"`
}

IPConfig IP config

swagger:model IPConfig

func (*IPConfig) ContextValidate

func (m *IPConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this IP config based on context it is used

func (*IPConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*IPConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*IPConfig) Validate

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

Validate validates this IP config

type Route

type Route struct {

	// dst
	// Required: true
	Dst *string `json:"dst"`

	// gw
	Gw string `json:"gw,omitempty"`
}

Route route

swagger:model Route

func (*Route) ContextValidate

func (m *Route) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this route based on context it is used

func (*Route) MarshalBinary

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

MarshalBinary interface implementation

func (*Route) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Route) Validate

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

Validate validates this route

Jump to

Keyboard shortcuts

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