Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNS ¶
type DNS struct {
// domain
Domain string `json:"domain,omitempty"`
// nameservers
Nameservers []string `json:"nameservers"`
// options
Options []string `json:"options"`
// search
Search []string `json:"search"`
}
DNS IPAM CNI types DNS
swagger:model DNS
func (*DNS) ContextValidate ¶
ContextValidate validates this DNS based on context it is used
func (*DNS) MarshalBinary ¶
MarshalBinary interface implementation
func (*DNS) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type IPConfig ¶
type IPConfig struct {
// address
// Required: true
Address *string `json:"address"`
// gateway
Gateway string `json:"gateway,omitempty"`
// nic
// Required: true
Nic *string `json:"nic"`
// version
// Required: true
// Enum: [4 6]
Version *int64 `json:"version"`
// vlan
Vlan int64 `json:"vlan,omitempty"`
}
IPConfig IPAM IPs struct, contains ifName, Address and Gateway
swagger:model IpConfig
func (*IPConfig) ContextValidate ¶
ContextValidate validates this Ip config based on context it is used
func (*IPConfig) MarshalBinary ¶
MarshalBinary interface implementation
func (*IPConfig) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type IpamAddArgs ¶
type IpamAddArgs struct {
// container ID
// Required: true
ContainerID *string `json:"containerID"`
// if name
// Required: true
IfName *string `json:"ifName"`
// net namespace
// Required: true
NetNamespace *string `json:"netNamespace"`
// pod name
// Required: true
PodName *string `json:"podName"`
// pod namespace
// Required: true
PodNamespace *string `json:"podNamespace"`
}
IpamAddArgs IPAM request args
swagger:model IpamAddArgs
func (*IpamAddArgs) ContextValidate ¶
ContextValidate validates this ipam add args based on context it is used
func (*IpamAddArgs) MarshalBinary ¶
func (m *IpamAddArgs) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IpamAddArgs) UnmarshalBinary ¶
func (m *IpamAddArgs) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type IpamAddResponse ¶
type IpamAddResponse struct {
// dns
DNS *DNS `json:"dns,omitempty"`
// ips
// Required: true
Ips []*IPConfig `json:"ips"`
// routes
Routes []*Route `json:"routes"`
}
IpamAddResponse IPAM assignment IPs information
swagger:model IpamAddResponse
func (*IpamAddResponse) ContextValidate ¶
ContextValidate validate this ipam add response based on the context it is used
func (*IpamAddResponse) MarshalBinary ¶
func (m *IpamAddResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IpamAddResponse) UnmarshalBinary ¶
func (m *IpamAddResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type IpamDelArgs ¶
type IpamDelArgs struct {
// container ID
// Required: true
ContainerID *string `json:"containerID"`
// if name
// Required: true
IfName *string `json:"ifName"`
// net namespace
NetNamespace string `json:"netNamespace,omitempty"`
// pod name
// Required: true
PodName *string `json:"podName"`
// pod namespace
// Required: true
PodNamespace *string `json:"podNamespace"`
}
IpamDelArgs IPAM release IP information
swagger:model IpamDelArgs
func (*IpamDelArgs) ContextValidate ¶
ContextValidate validates this ipam del args based on context it is used
func (*IpamDelArgs) MarshalBinary ¶
func (m *IpamDelArgs) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IpamDelArgs) UnmarshalBinary ¶
func (m *IpamDelArgs) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Route ¶
type Route struct {
// dst
// Required: true
Dst *string `json:"dst"`
// gw
// Required: true
Gw *string `json:"gw"`
}
Route IPAM CNI types Route
swagger:model Route
func (*Route) ContextValidate ¶
ContextValidate validates this route based on context it is used
func (*Route) MarshalBinary ¶
MarshalBinary interface implementation
func (*Route) UnmarshalBinary ¶
UnmarshalBinary interface implementation