openapi

package
v0.0.0-...-2df04ca Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: BSD-4-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoRollbackOnFailure = flag.Bool("norollbackonfailure", false, "Prevents rollback on failure (for debug purposes)")

Functions

func EncodeJSONResponse

func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error

EncodeJSONResponse uses the json encoder to write an interface to the http response with an optional status code

func Logger

func Logger(inner http.Handler, name string) http.Handler

Logger wrapper for logging before inner HTTP serving

func NewAttributeDoesntBelongToLinkKindSemanticError

func NewAttributeDoesntBelongToLinkKindSemanticError(attribKey string, infoKind string) error

NewAttributeDoesntBelongToLinkKindSemanticError returns an error for an attribute not belonging to the discriminated object

func NewMissingRequiredAttributeForLinkKindSemanticError

func NewMissingRequiredAttributeForLinkKindSemanticError(attribKey string, infoKind string) error

NewMissingRequiredAttributeForLinkKindSemanticError returns an error for a missing attribute

func NewRouter

func NewRouter(routers ...Router) *mux.Router

NewRouter creates a new router for any number of api routers

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

func ReadFormFileToTempFile

func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error)

ReadFormFileToTempFile reads file data from a request form and writes it to a temporary file

Types

type Config

type Config struct {
	Global  *Global  `json:"global,omitempty"`
	Network *Network `json:"network,omitempty"`
}

Config struct for Config

func NewConfig

func NewConfig() *Config

NewConfig instantiates a new Config object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewConfigWithDefaults

func NewConfigWithDefaults() *Config

NewConfigWithDefaults instantiates a new Config object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Config) GetGlobal

func (o *Config) GetGlobal() Global

GetGlobal returns the Global field value if set, zero value otherwise.

func (*Config) GetGlobalOk

func (o *Config) GetGlobalOk() (*Global, bool)

GetGlobalOk returns a tuple with the Global field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Config) GetNetwork

func (o *Config) GetNetwork() Network

GetNetwork returns the Network field value if set, zero value otherwise.

func (*Config) GetNetworkOk

func (o *Config) GetNetworkOk() (*Network, bool)

GetNetworkOk returns a tuple with the Network field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Config) HasGlobal

func (o *Config) HasGlobal() bool

HasGlobal returns a boolean if a field has been set.

func (*Config) HasNetwork

func (o *Config) HasNetwork() bool

HasNetwork returns a boolean if a field has been set.

func (*Config) LoadConfig

func (c *Config) LoadConfig(conffile *string) error

LoadConfig loads configs.

func (Config) MarshalJSON

func (o Config) MarshalJSON() ([]byte, error)

func (*Config) Persist

func (c *Config) Persist() error

func (*Config) SetGlobal

func (o *Config) SetGlobal(v Global)

SetGlobal gets a reference to the given Global and assigns it to the Global field.

func (*Config) SetNetwork

func (o *Config) SetNetwork(v Network)

SetNetwork gets a reference to the given Network and assigns it to the Network field.

type Dhcp

type Dhcp struct {
	// Interface name
	Ifname string `json:"ifname"`
}

Dhcp DHCP link context to enable. When an object of this kind is specified, the DHCP protocol daemon is enabled on the defined interface if it exists.

func NewDhcp

func NewDhcp(ifname string) *Dhcp

NewDhcp instantiates a new Dhcp object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDhcpWithDefaults

func NewDhcpWithDefaults() *Dhcp

NewDhcpWithDefaults instantiates a new Dhcp object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Dhcp) GetIfname

func (o *Dhcp) GetIfname() string

GetIfname returns the Ifname field value

func (*Dhcp) GetIfnameOk

func (o *Dhcp) GetIfnameOk() (*string, bool)

GetIfnameOk returns a tuple with the Ifname field value and a boolean to check if the value has been set.

func (Dhcp) MarshalJSON

func (o Dhcp) MarshalJSON() ([]byte, error)

func (*Dhcp) SetIfname

func (o *Dhcp) SetIfname(v string)

SetIfname sets field value

type DiscriminatedInfoData

type DiscriminatedInfoData struct {
	LinkLinkinfoInfoData
}

func (DiscriminatedInfoData) MarshalJSON

func (v DiscriminatedInfoData) MarshalJSON() ([]byte, error)

func (*DiscriminatedInfoData) UnmarshalJSON

func (v *DiscriminatedInfoData) UnmarshalJSON(src []byte) error

type DiscriminatedLinkInfo

type DiscriminatedLinkInfo struct {
	LinkLinkinfo
}

func (*DiscriminatedLinkInfo) UnmarshalJSON

func (v *DiscriminatedLinkInfo) UnmarshalJSON(src []byte) error

type Dns

type Dns struct {
	Id Dnsid `json:"__id"`
	// The DNS server ip address to send DNS queries to
	Nameserver string `json:"nameserver"`
}

Dns Name server for DNS resolution

func NewDns

func NewDns(id Dnsid, nameserver string) *Dns

NewDns instantiates a new Dns object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDnsWithDefaults

func NewDnsWithDefaults() *Dns

NewDnsWithDefaults instantiates a new Dns object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Dns) GetId

func (o *Dns) GetId() Dnsid

GetId returns the Id field value

func (*Dns) GetIdOk

func (o *Dns) GetIdOk() (*Dnsid, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Dns) GetNameserver

func (o *Dns) GetNameserver() string

GetNameserver returns the Nameserver field value

func (*Dns) GetNameserverOk

func (o *Dns) GetNameserverOk() (*string, bool)

GetNameserverOk returns a tuple with the Nameserver field value and a boolean to check if the value has been set.

func (Dns) MarshalJSON

func (o Dns) MarshalJSON() ([]byte, error)

func (*Dns) SetId

func (o *Dns) SetId(v Dnsid)

SetId sets field value

func (*Dns) SetNameserver

func (o *Dns) SetNameserver(v string)

SetNameserver sets field value

type Dnsid

type Dnsid string

Dnsid ID of the DNS servers, defining their priority

const (
	PRIMARY   Dnsid = "primary"
	SECONDARY Dnsid = "secondary"
)

List of dnsid

func (Dnsid) Ptr

func (v Dnsid) Ptr() *Dnsid

Ptr returns reference to dnsid value

func (*Dnsid) UnmarshalJSON

func (v *Dnsid) UnmarshalJSON(src []byte) error

type Global

type Global struct {
	LogLev  *string     `json:"log_lev,omitempty"`
	Mgmt    *GlobalMgmt `json:"mgmt,omitempty"`
	CfgPath *string     `json:"cfg_path,omitempty"`
}

Global Application generic global config

func NewGlobal

func NewGlobal() *Global

NewGlobal instantiates a new Global object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGlobalWithDefaults

func NewGlobalWithDefaults() *Global

NewGlobalWithDefaults instantiates a new Global object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Global) GetCfgPath

func (o *Global) GetCfgPath() string

GetCfgPath returns the CfgPath field value if set, zero value otherwise.

func (*Global) GetCfgPathOk

func (o *Global) GetCfgPathOk() (*string, bool)

GetCfgPathOk returns a tuple with the CfgPath field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Global) GetLogLev

func (o *Global) GetLogLev() string

GetLogLev returns the LogLev field value if set, zero value otherwise.

func (*Global) GetLogLevOk

func (o *Global) GetLogLevOk() (*string, bool)

GetLogLevOk returns a tuple with the LogLev field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Global) GetMgmt

func (o *Global) GetMgmt() GlobalMgmt

GetMgmt returns the Mgmt field value if set, zero value otherwise.

func (*Global) GetMgmtOk

func (o *Global) GetMgmtOk() (*GlobalMgmt, bool)

GetMgmtOk returns a tuple with the Mgmt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Global) HasCfgPath

func (o *Global) HasCfgPath() bool

HasCfgPath returns a boolean if a field has been set.

func (*Global) HasLogLev

func (o *Global) HasLogLev() bool

HasLogLev returns a boolean if a field has been set.

func (*Global) HasMgmt

func (o *Global) HasMgmt() bool

HasMgmt returns a boolean if a field has been set.

func (Global) MarshalJSON

func (o Global) MarshalJSON() ([]byte, error)

func (*Global) SetCfgPath

func (o *Global) SetCfgPath(v string)

SetCfgPath gets a reference to the given string and assigns it to the CfgPath field.

func (*Global) SetLogLev

func (o *Global) SetLogLev(v string)

SetLogLev gets a reference to the given string and assigns it to the LogLev field.

func (*Global) SetMgmt

func (o *Global) SetMgmt(v GlobalMgmt)

SetMgmt gets a reference to the given GlobalMgmt and assigns it to the Mgmt field.

type GlobalMgmt

type GlobalMgmt struct {
	Host *string `json:"host,omitempty"`
	Port *int32  `json:"port,omitempty"`
}

GlobalMgmt Management address

func NewGlobalMgmt

func NewGlobalMgmt() *GlobalMgmt

NewGlobalMgmt instantiates a new GlobalMgmt object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGlobalMgmtWithDefaults

func NewGlobalMgmtWithDefaults() *GlobalMgmt

NewGlobalMgmtWithDefaults instantiates a new GlobalMgmt object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GlobalMgmt) GetHost

func (o *GlobalMgmt) GetHost() string

GetHost returns the Host field value if set, zero value otherwise.

func (*GlobalMgmt) GetHostOk

func (o *GlobalMgmt) GetHostOk() (*string, bool)

GetHostOk returns a tuple with the Host field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GlobalMgmt) GetPort

func (o *GlobalMgmt) GetPort() int32

GetPort returns the Port field value if set, -1 otherwise.

func (*GlobalMgmt) GetPortOk

func (o *GlobalMgmt) GetPortOk() (*int32, bool)

GetPortOk returns a tuple with the Port field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GlobalMgmt) HasHost

func (o *GlobalMgmt) HasHost() bool

HasHost returns a boolean if a field has been set.

func (*GlobalMgmt) HasPort

func (o *GlobalMgmt) HasPort() bool

HasPort returns a boolean if a field has been set.

func (GlobalMgmt) MarshalJSON

func (o GlobalMgmt) MarshalJSON() ([]byte, error)

func (*GlobalMgmt) SetHost

func (o *GlobalMgmt) SetHost(v string)

SetHost gets a reference to the given string and assigns it to the Host field.

func (*GlobalMgmt) SetPort

func (o *GlobalMgmt) SetPort(v int32)

SetPort gets a reference to the given int32 and assigns it to the Port field.

type HTTPRoute

type HTTPRoute struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

A HTTPRoute defines the parameters for an api endpoint

type ImplResponse

type ImplResponse struct {
	Code int
	Body interface{}
}

Implementation response defines an error code with the associated body

func DeleteErrorResponse

func DeleteErrorResponse(err error, body interface{}) (ImplResponse, error)

DeleteErrorResponse maps Delete requests errors into HTTP status codes

func GetErrorResponse

func GetErrorResponse(err error, body interface{}) (ImplResponse, error)

GetErrorResponse maps Get requests errors into HTTP status codes

func PatchErrorResponse

func PatchErrorResponse(err error, body interface{}) (ImplResponse, error)

PatchErrorResponse maps Put requests errors into HTTP status codes

func PostErrorResponse

func PostErrorResponse(err error, body interface{}) (ImplResponse, error)

PostErrorResponse maps Post requests errors into HTTP status codes

func PutErrorResponse

func PutErrorResponse(err error, body interface{}) (ImplResponse, error)

PutErrorResponse maps Put requests errors into HTTP status codes

func Response

func Response(code int, body interface{}) ImplResponse

Response return a ImplResponse struct filled

type Link struct {
	// Inteface index ID
	Ifindex *int32 `json:"ifindex,omitempty"`
	// Interface name
	Ifname string `json:"ifname"`
	// Specify what is the VLAN physical device the virtual device is linked to. Applies to vlan type virtual devices
	Link *string `json:"link,omitempty"`
	// Composition of flags of the interface
	Flags *[]LinkFlag `json:"flags,omitempty"`
	// Maximum Transfer Unit value
	Mtu *int32 `json:"mtu,omitempty"`
	// Promiscuous mode flag
	Promiscuity *int32 `json:"promiscuity,omitempty"`
	// In case the interface is part of a bond or bridge, specifies the bond/bridge interface it belongs to.
	Master   *string                `json:"master,omitempty"`
	Linkinfo *DiscriminatedLinkInfo `json:"linkinfo,omitempty"`
	// Readonly state of the interface.  Provides information on the state being for example UP of an interface.  It is ignored when applying the config  Possible values:    * `up` - Interface is up   * `down` - Interface is down   * `unknown` - Interface state is not known (driver does not implement the API)
	Operstate *string `json:"operstate,omitempty"`
	Linkmode  *string `json:"linkmode,omitempty"`
	Group     *string `json:"group,omitempty"`
	LinkType  string  `json:"link_type"`
	// Address on which the link IP layer is based.  This is usually a MAC address, but for some tunnelling protocols virtual link interface types (e.g. GRE tunnels) it can also be an IP address of the tunnel.
	Address *string `json:"address,omitempty"`
	// IP addresses assigned to the link interface
	AddrInfo *[]LinkAddrInfo `json:"addr_info,omitempty"`
}

Link Definition of an ip link interface (emulating iproute2 API) References: * [Linux Networking](https://www.kernel.org/doc/Documentation/networking/) * [Linux Bonding](https://www.kernel.org/doc/Documentation/networking/bonding.txt) * [Links Operstate](https://www.kernel.org/doc/Documentation/networking/operstates.txt)

func NewLink(ifname string, linkType string) *Link

NewLink instantiates a new Link object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLinkWithDefaults

func NewLinkWithDefaults() *Link

NewLinkWithDefaults instantiates a new Link object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Link) GetAddrInfo

func (o *Link) GetAddrInfo() []LinkAddrInfo

GetAddrInfo returns the AddrInfo field value if set, zero value otherwise.

func (*Link) GetAddrInfoOk

func (o *Link) GetAddrInfoOk() (*[]LinkAddrInfo, bool)

GetAddrInfoOk returns a tuple with the AddrInfo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Link) GetAddress

func (o *Link) GetAddress() string

GetAddress returns the Address field value if set, zero value otherwise.

func (*Link) GetAddressOk

func (o *Link) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Link) GetFlags

func (o *Link) GetFlags() []LinkFlag

GetFlags returns the Flags field value if set, zero value otherwise.

func (*Link) GetFlagsOk

func (o *Link) GetFlagsOk() (*[]LinkFlag, bool)

GetFlagsOk returns a tuple with the Flags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Link) GetGroup

func (o *Link) GetGroup() string

GetGroup returns the Group field value if set, zero value otherwise.

func (*Link) GetGroupOk

func (o *Link) GetGroupOk() (*string, bool)

GetGroupOk returns a tuple with the Group field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Link) GetIfindex

func (o *Link) GetIfindex() int32

GetIfindex returns the Ifindex field value if set, -1 otherwise.

func (*Link) GetIfindexOk

func (o *Link) GetIfindexOk() (*int32, bool)

GetIfindexOk returns a tuple with the Ifindex field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Link) GetIfname

func (o *Link) GetIfname() string

GetIfname returns the Ifname field value

func (*Link) GetIfnameOk

func (o *Link) GetIfnameOk() (*string, bool)

GetIfnameOk returns a tuple with the Ifname field value and a boolean to check if the value has been set.

func (o *Link) GetLink() string

GetLink returns the Link field value if set, zero value otherwise.

func (*Link) GetLinkOk

func (o *Link) GetLinkOk() (*string, bool)

GetLinkOk returns a tuple with the Link field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Link) GetLinkType

func (o *Link) GetLinkType() string

GetLinkType returns the LinkType field value

func (*Link) GetLinkTypeOk

func (o *Link) GetLinkTypeOk() (*string, bool)

GetLinkTypeOk returns a tuple with the LinkType field value and a boolean to check if the value has been set.

func (*Link) GetLinkinfo

func (o *Link) GetLinkinfo() LinkLinkinfo

GetLinkinfo returns the Linkinfo field value if set, zero value otherwise.

func (*Link) GetLinkinfoOk

func (o *Link) GetLinkinfoOk() (*LinkLinkinfo, bool)

GetLinkinfoOk returns a tuple with the Linkinfo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Link) GetLinkmode

func (o *Link) GetLinkmode() string

GetLinkmode returns the Linkmode field value if set, zero value otherwise.

func (*Link) GetLinkmodeOk

func (o *Link) GetLinkmodeOk() (*string, bool)

GetLinkmodeOk returns a tuple with the Linkmode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Link) GetMaster

func (o *Link) GetMaster() string

GetMaster returns the Master field value if set, zero value otherwise.

func (*Link) GetMasterOk

func (o *Link) GetMasterOk() (*string, bool)

GetMasterOk returns a tuple with the Master field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Link) GetMtu

func (o *Link) GetMtu() int32

GetMtu returns the Mtu field value if set, -1 otherwise.

func (*Link) GetMtuOk

func (o *Link) GetMtuOk() (*int32, bool)

GetMtuOk returns a tuple with the Mtu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Link) GetOperstate

func (o *Link) GetOperstate() string

GetOperstate returns the Operstate field value if set, zero value otherwise.

func (*Link) GetOperstateOk

func (o *Link) GetOperstateOk() (*string, bool)

GetOperstateOk returns a tuple with the Operstate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Link) GetPromiscuity

func (o *Link) GetPromiscuity() int32

GetPromiscuity returns the Promiscuity field value if set, -1 otherwise.

func (*Link) GetPromiscuityOk

func (o *Link) GetPromiscuityOk() (*int32, bool)

GetPromiscuityOk returns a tuple with the Promiscuity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Link) HasAddrInfo

func (o *Link) HasAddrInfo() bool

HasAddrInfo returns a boolean if a field has been set.

func (*Link) HasAddress

func (o *Link) HasAddress() bool

HasAddress returns a boolean if a field has been set.

func (*Link) HasFlags

func (o *Link) HasFlags() bool

HasFlags returns a boolean if a field has been set.

func (*Link) HasGroup

func (o *Link) HasGroup() bool

HasGroup returns a boolean if a field has been set.

func (*Link) HasIfindex

func (o *Link) HasIfindex() bool

HasIfindex returns a boolean if a field has been set.

func (o *Link) HasLink() bool

HasLink returns a boolean if a field has been set.

func (*Link) HasLinkinfo

func (o *Link) HasLinkinfo() bool

HasLinkinfo returns a boolean if a field has been set.

func (*Link) HasLinkmode

func (o *Link) HasLinkmode() bool

HasLinkmode returns a boolean if a field has been set.

func (*Link) HasMaster

func (o *Link) HasMaster() bool

HasMaster returns a boolean if a field has been set.

func (*Link) HasMtu

func (o *Link) HasMtu() bool

HasMtu returns a boolean if a field has been set.

func (*Link) HasOperstate

func (o *Link) HasOperstate() bool

HasOperstate returns a boolean if a field has been set.

func (*Link) HasPromiscuity

func (o *Link) HasPromiscuity() bool

HasPromiscuity returns a boolean if a field has been set.

func (Link) MarshalJSON

func (o Link) MarshalJSON() ([]byte, error)

func (*Link) SetAddrInfo

func (o *Link) SetAddrInfo(v []LinkAddrInfo)

SetAddrInfo gets a reference to the given []LinkAddrInfo and assigns it to the AddrInfo field.

func (*Link) SetAddress

func (o *Link) SetAddress(v string)

SetAddress gets a reference to the given string and assigns it to the Address field.

func (*Link) SetFlags

func (o *Link) SetFlags(v []LinkFlag)

SetFlags gets a reference to the given []LinkFlag and assigns it to the Flags field.

func (*Link) SetGroup

func (o *Link) SetGroup(v string)

SetGroup gets a reference to the given string and assigns it to the Group field.

func (*Link) SetIfindex

func (o *Link) SetIfindex(v int32)

SetIfindex gets a reference to the given int32 and assigns it to the Ifindex field.

func (*Link) SetIfname

func (o *Link) SetIfname(v string)

SetIfname sets field value

func (o *Link) SetLink(v string)

SetLink gets a reference to the given string and assigns it to the Link field.

func (*Link) SetLinkType

func (o *Link) SetLinkType(v string)

SetLinkType sets field value

func (*Link) SetLinkinfo

func (o *Link) SetLinkinfo(v LinkLinkinfo)

SetLinkinfo gets a reference to the given LinkLinkinfo and assigns it to the Linkinfo field.

func (*Link) SetLinkmode

func (o *Link) SetLinkmode(v string)

SetLinkmode gets a reference to the given string and assigns it to the Linkmode field.

func (*Link) SetMaster

func (o *Link) SetMaster(v string)

SetMaster gets a reference to the given string and assigns it to the Master field.

func (*Link) SetMtu

func (o *Link) SetMtu(v int32)

SetMtu gets a reference to the given int32 and assigns it to the Mtu field.

func (*Link) SetOperstate

func (o *Link) SetOperstate(v string)

SetOperstate gets a reference to the given string and assigns it to the Operstate field.

func (*Link) SetPromiscuity

func (o *Link) SetPromiscuity(v int32)

SetPromiscuity gets a reference to the given int32 and assigns it to the Promiscuity field.

type LinkAddrInfo

type LinkAddrInfo struct {
	// IP address assigned to the link interface
	Local net.IP `json:"local"`
	// Network prefix (0-32 for IPv4, 0-128 for IPv6)
	Prefixlen int32   `json:"prefixlen"`
	Broadcast *string `json:"broadcast,omitempty"`
	// The terminating remote peer for point-to-point kind virtual devices
	Address *net.IP `json:"address,omitempty"`
}

LinkAddrInfo struct for LinkAddrInfo

func NewLinkAddrInfo

func NewLinkAddrInfo(local string, prefixlen int32) *LinkAddrInfo

NewLinkAddrInfo instantiates a new LinkAddrInfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLinkAddrInfoWithDefaults

func NewLinkAddrInfoWithDefaults() *LinkAddrInfo

NewLinkAddrInfoWithDefaults instantiates a new LinkAddrInfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LinkAddrInfo) GetAddress

func (o *LinkAddrInfo) GetAddress() string

GetAddress returns the Address field value if set, zero value otherwise.

func (*LinkAddrInfo) GetAddressOk

func (o *LinkAddrInfo) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkAddrInfo) GetBroadcast

func (o *LinkAddrInfo) GetBroadcast() string

GetBroadcast returns the Broadcast field value if set, zero value otherwise.

func (*LinkAddrInfo) GetBroadcastOk

func (o *LinkAddrInfo) GetBroadcastOk() (*string, bool)

GetBroadcastOk returns a tuple with the Broadcast field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkAddrInfo) GetLocal

func (o *LinkAddrInfo) GetLocal() string

GetLocal returns the Local field value

func (*LinkAddrInfo) GetLocalOk

func (o *LinkAddrInfo) GetLocalOk() (*string, bool)

GetLocalOk returns a tuple with the Local field value and a boolean to check if the value has been set.

func (*LinkAddrInfo) GetPrefixlen

func (o *LinkAddrInfo) GetPrefixlen() int32

GetPrefixlen returns the Prefixlen field value

func (*LinkAddrInfo) GetPrefixlenOk

func (o *LinkAddrInfo) GetPrefixlenOk() (*int32, bool)

GetPrefixlenOk returns a tuple with the Prefixlen field value and a boolean to check if the value has been set.

func (*LinkAddrInfo) HasAddress

func (o *LinkAddrInfo) HasAddress() bool

HasAddress returns a boolean if a field has been set.

func (*LinkAddrInfo) HasBroadcast

func (o *LinkAddrInfo) HasBroadcast() bool

HasBroadcast returns a boolean if a field has been set.

func (LinkAddrInfo) MarshalJSON

func (o LinkAddrInfo) MarshalJSON() ([]byte, error)

func (*LinkAddrInfo) SetAddress

func (o *LinkAddrInfo) SetAddress(v string)

SetAddress gets a reference to the given string and assigns it to the Address field.

func (*LinkAddrInfo) SetBroadcast

func (o *LinkAddrInfo) SetBroadcast(v string)

SetBroadcast gets a reference to the given string and assigns it to the Broadcast field.

func (*LinkAddrInfo) SetLocal

func (o *LinkAddrInfo) SetLocal(v string)

SetLocal sets field value

func (*LinkAddrInfo) SetPrefixlen

func (o *LinkAddrInfo) SetPrefixlen(v int32)

SetPrefixlen sets field value

type LinkFlag

type LinkFlag string

LinkFlag Flags of the interface Supported types: * `broadcast` - Request support for broadcast * `multicast` - Request support for multicast * `loopback` - Specify interface as loopback type * `pointtopoint` - Request support for point-to-point * `up` - Request link UP state

const (
	BROADCAST    LinkFlag = "broadcast"
	MULTICAST    LinkFlag = "multicast"
	LOOPBACK     LinkFlag = "loopback"
	UP           LinkFlag = "up"
	POINTTOPOINT LinkFlag = "pointtopoint"
)

List of link_flag

func (LinkFlag) Ptr

func (v LinkFlag) Ptr() *LinkFlag

Ptr returns reference to link_flag value

func (*LinkFlag) UnmarshalJSON

func (v *LinkFlag) UnmarshalJSON(src []byte) error

type LinkLinkinfo

type LinkLinkinfo struct {
	// Info on the type of slave Supported types:   * `bond`   * `bridge`
	InfoSlaveKind *string                    `json:"info_slave_kind,omitempty"`
	InfoSlaveData *LinkLinkinfoInfoSlaveData `json:"info_slave_data,omitempty"`
	// Type of link layer interface. Supported Types:   * `device`- Physical device   * `dummy` - Dummy link type interface for binding intenal services   * `bridge` - Link layer virtual switch type interface   * `bond` - Bond type interface letting two interfaces be seen as one   * `vlan` - Virtual LAN (TAG ID based) interface   * `veth` - Virtual ethernet (with virtual MAC and IP address)   * `macvlan` - Direct virtual eth interface connected to the physical interface,      with owned mac address   * `ipvlan` - Direct virtual eth interface connected to the physical interface.     Physical interface MAC address is reused. L2 type directly connects the lan to      the host phyisical device. L3 type adds a routing layer in between.   * `tun` - Link for to kernel-userspace packet forward   * `tap` - Link for kernnel-to-userspace packet evedropping   * `ppp` - Point to point [readonly]   * `gre` - GRE Tunnelling device
	InfoKind *string                `json:"info_kind,omitempty"`
	InfoData *DiscriminatedInfoData `json:"info_data,omitempty"`
}

LinkLinkinfo Additional link info attributes

func NewLinkLinkinfo

func NewLinkLinkinfo() *LinkLinkinfo

NewLinkLinkinfo instantiates a new LinkLinkinfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLinkLinkinfoWithDefaults

func NewLinkLinkinfoWithDefaults() *LinkLinkinfo

NewLinkLinkinfoWithDefaults instantiates a new LinkLinkinfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LinkLinkinfo) GetInfoData

func (o *LinkLinkinfo) GetInfoData() LinkLinkinfoInfoData

GetInfoData returns the InfoData field value if set, zero value otherwise.

func (*LinkLinkinfo) GetInfoDataOk

func (o *LinkLinkinfo) GetInfoDataOk() (*LinkLinkinfoInfoData, bool)

GetInfoDataOk returns a tuple with the InfoData field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfo) GetInfoKind

func (o *LinkLinkinfo) GetInfoKind() string

GetInfoKind returns the InfoKind field value if set, zero value otherwise.

func (*LinkLinkinfo) GetInfoKindOk

func (o *LinkLinkinfo) GetInfoKindOk() (*string, bool)

GetInfoKindOk returns a tuple with the InfoKind field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfo) GetInfoSlaveData

func (o *LinkLinkinfo) GetInfoSlaveData() LinkLinkinfoInfoSlaveData

GetInfoSlaveData returns the InfoSlaveData field value if set, zero value otherwise.

func (*LinkLinkinfo) GetInfoSlaveDataOk

func (o *LinkLinkinfo) GetInfoSlaveDataOk() (*LinkLinkinfoInfoSlaveData, bool)

GetInfoSlaveDataOk returns a tuple with the InfoSlaveData field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfo) GetInfoSlaveKind

func (o *LinkLinkinfo) GetInfoSlaveKind() string

GetInfoSlaveKind returns the InfoSlaveKind field value if set, zero value otherwise.

func (*LinkLinkinfo) GetInfoSlaveKindOk

func (o *LinkLinkinfo) GetInfoSlaveKindOk() (*string, bool)

GetInfoSlaveKindOk returns a tuple with the InfoSlaveKind field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfo) HasInfoData

func (o *LinkLinkinfo) HasInfoData() bool

HasInfoData returns a boolean if a field has been set.

func (*LinkLinkinfo) HasInfoKind

func (o *LinkLinkinfo) HasInfoKind() bool

HasInfoKind returns a boolean if a field has been set.

func (*LinkLinkinfo) HasInfoSlaveData

func (o *LinkLinkinfo) HasInfoSlaveData() bool

HasInfoSlaveData returns a boolean if a field has been set.

func (*LinkLinkinfo) HasInfoSlaveKind

func (o *LinkLinkinfo) HasInfoSlaveKind() bool

HasInfoSlaveKind returns a boolean if a field has been set.

func (LinkLinkinfo) MarshalJSON

func (o LinkLinkinfo) MarshalJSON() ([]byte, error)

func (*LinkLinkinfo) SetInfoData

func (o *LinkLinkinfo) SetInfoData(v LinkLinkinfoInfoData)

SetInfoData gets a reference to the given LinkLinkinfoInfoData and assigns it to the InfoData field.

func (*LinkLinkinfo) SetInfoKind

func (o *LinkLinkinfo) SetInfoKind(v string)

SetInfoKind gets a reference to the given string and assigns it to the InfoKind field.

func (*LinkLinkinfo) SetInfoSlaveData

func (o *LinkLinkinfo) SetInfoSlaveData(v LinkLinkinfoInfoSlaveData)

SetInfoSlaveData gets a reference to the given LinkLinkinfoInfoSlaveData and assigns it to the InfoSlaveData field.

func (*LinkLinkinfo) SetInfoSlaveKind

func (o *LinkLinkinfo) SetInfoSlaveKind(v string)

SetInfoSlaveKind gets a reference to the given string and assigns it to the InfoSlaveKind field.

func (*LinkLinkinfo) Validate

func (v *LinkLinkinfo) Validate() error

type LinkLinkinfoInfoData

type LinkLinkinfoInfoData struct {
	// VLAN protocols. Supported protocols:   * `802.1q` - 802.1Q protocol   * `802.1ad` - 802.1AD protocol
	Protocol *string `json:"protocol,omitempty"`
	// VLAN TAG ID
	Id    *int32    `json:"id,omitempty"`
	Flags *[]string `json:"flags,omitempty"`
	// Bonding modes. Supported Modes:   * `balance-rr` - Round-robin: Transmit network packets in sequential order from the first available network interface (NIC) slave through the last. This mode provides load balancing and fault tolerance.   * `active-backup` - Active-backup: Only one NIC slave in the bond is active. A different slave becomes active if, and only if, the active slave fails. The single logical bonded interface's MAC address is externally visible on only one NIC (port) to avoid distortion in the network switch. This mode provides fault tolerance.   * `balance-xor` - XOR: Transmit network packets based on a hash of the packet's source and destination. The default algorithm only considers MAC addresses (layer2). Newer versions allow selection of additional policies based on IP addresses (layer2+3) and TCP/UDP port numbers (layer3+4). This selects the same NIC slave for each destination MAC address, IP address, or IP address and port combination, respectively. This mode provides load balancing and fault tolerance.   * `broadcast` - Broadcast: Transmit network packets on all slave network interfaces. This mode provides fault tolerance.   * `802.3ad` - IEEE 802.3ad Dynamic link aggregation: Creates aggregation groups that share the same speed and duplex settings. Utilizes all slave network interfaces in the active aggregator group according to the 802.3ad specification. This mode is similar to the XOR mode above and supports the same balancing policies. The link is set up dynamically between two LACP-supporting peers.   * `balance-tlb` - Adaptive transmit load balancing: Linux bonding driver mode that does not require any special network-switch support. The outgoing network packet traffic is distributed according to the current load (computed relative to the speed) on each network interface slave. Incoming traffic is received by one currently designated slave network interface. If this receiving slave fails, another slave takes over the MAC address of the failed receiving slave.   * `balance-alb` - Adaptive load balancing: includes balance-tlb plus receive load balancing (rlb) for IPV4 traffic, and does not require any special network switch support. The receive load balancing is achieved by ARP negotiation. The bonding driver intercepts the ARP Replies sent by the local system on their way out and overwrites the source hardware address with the unique hardware address of one of the NIC slaves in the single logical bonded interface such that different network-peers use different MAC addresses for their network packet traffic.
	Mode *string `json:"mode,omitempty"`
	// Specifies the MII link monitoring frequency in milliseconds.  The default value is 0, and this will disable the MII monitor
	Miimon *int32 `json:"miimon,omitempty"`
	// Specifies the time, in milliseconds, to wait before enabling a slave after a  link recovery has been detected. The updelay value must be a multiple of the miimon value
	Updelay *int32 `json:"updelay,omitempty"`
	// Specifies the time, in milliseconds, to wait before disabling a slave after a  link failure has been detected. The downdelay value must be a multiple of the miimon value.
	Downdelay *int32 `json:"downdelay,omitempty"`
	// Specify the delay, in milliseconds, between each peer notification (gratuitous ARP and unsolicited IPv6 Neighbor Advertisement) when they are issued after a failover event. This delay should be a multiple of the link monitor interval (arp_interval or miimon, whichever is active). The default value is 0 which means to match the value of the link monitor interval.
	PeerNotifyDelay *int32 `json:"peer_notify_delay,omitempty"`
	// Specifies whether or not miimon should use MII or ETHTOOL ioctls vs. netif_carrier_ok() to determine the link status. The MII or ETHTOOL ioctls are less efficient and utilize a deprecated calling sequence within the kernel.  The netif_carrier_ok() relies on the device driver to maintain its state with netif_carrier_on/off; at this writing, most, but not all, device drivers support this facility. If bonding insists that the link is up when it should not be, it may be that your network device driver does not support netif_carrier_on/off.  The default state for netif_carrier is \"carrier on,\" so if a driver does not support netif_carrier, it will appear as if the link is always up.  In this case, setting use_carrier to 0 will cause bonding to revert to the MII / ETHTOOL ioctl method to determine the link state. A value of 1 enables the use of netif_carrier_ok(), a value of 0 will use the deprecated MII / ETHTOOL ioctls.  The default value is 1.
	UseCarrier *int32 `json:"use_carrier,omitempty"`
	// Specifies the ARP link monitoring frequency in milliseconds. The ARP monitor works by periodically checking the slave devices to determine whether they have sent or received traffic recently (the precise criteria depends upon the bonding mode, and the state of the slave).  Regular traffic is generated via ARP probes issued for the addresses specified by the arp_ip_target option. This behavior can be modified by the arp_validate option, below. If ARP monitoring is used in an etherchannel compatible mode (modes 0 and 2), the switch should be configured in a mode that evenly distributes packets across all links. If the switch is configured to distribute the packets in an XOR fashion, all replies from the ARP targets will be received on the same link which could cause the other team members to fail.  ARP monitoring should not be used in conjunction with miimon.  A value of 0 disables ARP monitoring.  The default value is 0.
	ArpInterval *int32 `json:"arp_interval,omitempty"`
	// Specifies whether or not ARP probes and replies should be validated in any mode that supports arp monitoring, or whether non-ARP traffic should be filtered (disregarded) for link monitoring purposes. Possible values are: * `none` - or 0 No validation or filtering is performed. * `active` - or 1 Validation is performed only for the active slave. * `backup` - or 2 Validation is performed only for backup slaves. * `all` - or 3 Validation is performed for all slaves. * `filter` - or 4 Filtering is applied to all slaves. No validation is performed. * `filter_active` - or 5 Filtering is applied to all slaves, validation is performed only for the active slave. * `filter_backup` - or 6 Filtering is applied to all slaves, validation is performed only for backup slaves.
	ArpValidate *string `json:"arp_validate,omitempty"`
	// Specifies the quantity of arp_ip_targets that must be reachable in order for the ARP monitor to consider a slave as being up. This option affects only active-backup mode for slaves with arp_validation enabled. Possible values are: * `any` - or 0   consider the slave up only when any of the arp_ip_targets   is reachable  * `all` - or 1   consider the slave up only when all of the arp_ip_targets   are reachable
	ArpAllTargets *string `json:"arp_all_targets,omitempty"`
	// Specifies the reselection policy for the primary slave.  This affects how the primary slave is chosen to become the active slave when failure of the active slave or recovery of the primary slave occurs.  This option is designed to prevent flip-flopping between the primary slave and other slaves.  Possible values are:    * `always` - or 0 (default)     The primary slave becomes the active slave whenever it     comes back up.   * `better` - or 1     The primary slave becomes the active slave when it comes     back up, if the speed and duplex of the primary slave is     better than the speed and duplex of the current active     slave.   * `failure` - or 2     The primary slave becomes the active slave only if the     current active slave fails and the primary slave is up.  The primary_reselect setting is ignored in two cases:    * If no slaves are active, the first slave to recover is     made the active slave.    * When initially enslaved, the primary slave is always made     the active slave.  Changing the primary_reselect policy via sysfs will cause an immediate selection of the best active slave according to the new policy.  This may or may not result in a change of the active slave, depending upon the circumstances. This option was added for bonding version 3.6.0.
	PrimaryReselect *string `json:"primary_reselect,omitempty"`
	// Specifies whether active-backup mode should set all slaves to the same MAC address at enslavement (the traditional behavior), or, when enabled, perform special handling of the bond's MAC address in accordance with the selected policy. The default policy is none, unless the first slave cannot change its MAC address, in which case the active policy is selected by default. This option may be modified via sysfs only when no slaves are present in the bond. This option was added in bonding version 3.2.0.  The \"follow\" policy was added in bonding version 3.3.0. Possible values are:   * `none` - or 0   This setting disables fail_over_mac, and causes   bonding to set all slaves of an active-backup bond to   the same MAC address at enslavement time.  This is the   default.   * `active` - or 1   The \"active\" fail_over_mac policy indicates that the   MAC address of the bond should always be the MAC   address of the currently active slave.  The MAC   address of the slaves is not changed; instead, the MAC   address of the bond changes during a failover.   This policy is useful for devices that cannot ever   alter their MAC address, or for devices that refuse   incoming broadcasts with their own source MAC (which   interferes with the ARP monitor).   The down side of this policy is that every device on   the network must be updated via gratuitous ARP,   vs. just updating a switch or set of switches (which   often takes place for any traffic, not just ARP   traffic, if the switch snoops incoming traffic to   update its tables) for the traditional method.  If the   gratuitous ARP is lost, communication may be   disrupted.   When this policy is used in conjunction with the mii   monitor, devices which assert link up prior to being   able to actually transmit and receive are particularly   susceptible to loss of the gratuitous ARP, and an   appropriate updelay setting may be required.   * `follow` - or 2   The \"follow\" fail_over_mac policy causes the MAC   address of the bond to be selected normally (normally   the MAC address of the first slave added to the bond).   However, the second and subsequent slaves are not set   to this MAC address while they are in a backup role; a   slave is programmed with the bond's MAC address at   failover time (and the formerly active slave receives   the newly active slave's MAC address).   This policy is useful for multiport devices that   either become confused or incur a performance penalty   when multiple ports are programmed with the same MAC   address.
	FailOverMac *string `json:"fail_over_mac,omitempty"`
	// Hash policy to route packets on different bond interfaces.  Supported Modes:   * `layer2` - Hash is made on L2 metadata (default)   * `layer2+3` - Hash is made on L2 and L3 metadata   * `layer3+4` - Hash is made on L3 and L4 metadata
	XmitHashPolicy *string `json:"xmit_hash_policy,omitempty"`
	// Specifies the number of IGMP membership reports to be issued after a failover event. One membership report is issued immediately after the failover, subsequent packets are sent in each 200ms interval.  The valid range is 0 - 255; the default value is 1. A value of 0 prevents the IGMP membership report from being issued in response to the failover event.  This option is useful for bonding modes balance-rr (0), active-backup (1), balance-tlb (5) and balance-alb (6), in which a failover can switch the IGMP traffic from one slave to another.  Therefore a fresh IGMP report must be issued to cause the switch to forward the incoming IGMP traffic over the newly selected slave.  This option was added for bonding version 3.7.0.
	ResendIgmp *int32 `json:"resend_igmp,omitempty"`
	// Specifies that duplicate frames (received on inactive ports) should be dropped (0) or delivered (1).  Normally, bonding will drop duplicate frames (received on inactive ports), which is desirable for most users. But there are some times it is nice to allow duplicate frames to be delivered.  The default value is 0 (drop duplicate frames received on inactive ports).
	AllSlavesActive *int32 `json:"all_slaves_active,omitempty"`
	// Specifies the minimum number of links that must be active before asserting carrier. It is similar to the Cisco EtherChannel min-links feature. This allows setting the minimum number of member ports that must be up (link-up state) before marking the bond device as up (carrier on). This is useful for situations where higher level services such as clustering want to ensure a minimum number of low bandwidth links are active before switchover. This option only affect 802.3ad mode.  The default value is 0. This will cause carrier to be asserted (for 802.3ad mode) whenever there is an active aggregator, regardless of the number of available links in that aggregator. Note that, because an aggregator cannot be active without at least one available link, setting this option to 0 or to 1 has the exact same effect.
	MinLinks *int32 `json:"min_links,omitempty"`
	// Specifies the number of seconds between instances where the bonding driver sends learning packets to each slaves peer switch.  The valid range is 1 - 0x7fffffff; the default value is 1. This Option has effect only in balance-tlb and balance-alb modes.
	LpInterval *int32 `json:"lp_interval,omitempty"`
	// Specify the number of packets to transmit through a slave before moving to the next one. When set to 0 then a slave is chosen at random.  The valid range is 0 - 65535; the default value is 1. This option has effect only in balance-rr mode.
	PacketsPerSlave *int32 `json:"packets_per_slave,omitempty"`
	// Rate at which LACP control packets are sent to an LACP-supported interface Supported Modes:   * `slow` - LACP Slow Rate (less bandwidth, default)   * `fast` - LACP Fast Rate (faster fault detection)
	AdLacpRate *string `json:"ad_lacp_rate,omitempty"`
	// Specifies the 802.3ad aggregation selection logic to use.  The possible values and their effects are:   * `stable` - or 0     The active aggregator is chosen by largest aggregate     bandwidth.     Reselection of the active aggregator occurs only when all     slaves of the active aggregator are down or the active     aggregator has no slaves.     This is the default value.   * `bandwidth` or 1     The active aggregator is chosen by largest aggregate     bandwidth.  Reselection occurs if:     - A slave is added to or removed from the bond     - Any slave's link state changes     - Any slave's 802.3ad association state changes     - The bond's administrative state changes to up   * `count` - or 2     The active aggregator is chosen by the largest number of     ports (slaves).  Reselection occurs as described under the     \"bandwidth\" setting, above.      The bandwidth and count selection policies permit failover of 802.3ad aggregations when partial failure of the active aggregator occurs.  This keeps the aggregator with the highest availability (either in bandwidth or in number of ports) active at all times. This option was added in bonding version 3.4.0.
	AdSelect *string `json:"ad_select,omitempty"`
	// Specifies if dynamic shuffling of flows is enabled in tlb mode. The value has no effect on any other modes.  The default behavior of tlb mode is to shuffle active flows across slaves based on the load in that interval. This gives nice lb characteristics but can cause packet reordering. If re-ordering is a concern use this variable to disable flow shuffling and rely on load balancing provided solely by the hash distribution. xmit-hash-policy can be used to select the appropriate hashing for the setup.  The sysfs entry can be used to change the setting per bond device and the initial value is derived from the module parameter. The sysfs entry is allowed to be changed only if the bond device is down.  The default value is \"1\" that enables flow shuffling while value \"0\" disables it. This option was added in bonding driver 3.7.1
	TlbDynamicLb *int32 `json:"tlb_dynamic_lb,omitempty"`
	// Local IP Address on which the GRE is built
	Local *net.IP `json:"local,omitempty"`
	// Remote IP Address endpoint of a GRE tunnel
	Remote *net.IP `json:"remote,omitempty"`
	// Routing Table ID. Typical values for table IDs  mapping can be found in `/etc/iproute2/rt_tables`:      255 local     254 main     253 default     0 unspec  Reference: [IP Route manpage](https://man7.org/linux/man-pages/man8/ip-route.8.html)
	Table *uint32 `json:"table,omitempty"`
}

LinkLinkinfoInfoData Additional information on the link

func NewLinkLinkinfoInfoData

func NewLinkLinkinfoInfoData() *LinkLinkinfoInfoData

NewLinkLinkinfoInfoData instantiates a new LinkLinkinfoInfoData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLinkLinkinfoInfoDataWithDefaults

func NewLinkLinkinfoInfoDataWithDefaults() *LinkLinkinfoInfoData

NewLinkLinkinfoInfoDataWithDefaults instantiates a new LinkLinkinfoInfoData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LinkLinkinfoInfoData) GetAdLacpRate

func (o *LinkLinkinfoInfoData) GetAdLacpRate() string

GetAdLacpRate returns the AdLacpRate field value if set, zero value otherwise.

func (*LinkLinkinfoInfoData) GetAdLacpRateOk

func (o *LinkLinkinfoInfoData) GetAdLacpRateOk() (*string, bool)

GetAdLacpRateOk returns a tuple with the AdLacpRate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetAdSelect

func (o *LinkLinkinfoInfoData) GetAdSelect() string

GetAdSelect returns the AdSelect field value if set, zero value otherwise.

func (*LinkLinkinfoInfoData) GetAdSelectOk

func (o *LinkLinkinfoInfoData) GetAdSelectOk() (*string, bool)

GetAdSelectOk returns a tuple with the AdSelect field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetAllSlavesActive

func (o *LinkLinkinfoInfoData) GetAllSlavesActive() int32

GetAllSlavesActive returns the AllSlavesActive field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetAllSlavesActiveOk

func (o *LinkLinkinfoInfoData) GetAllSlavesActiveOk() (*int32, bool)

GetAllSlavesActiveOk returns a tuple with the AllSlavesActive field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetArpAllTargets

func (o *LinkLinkinfoInfoData) GetArpAllTargets() string

GetArpAllTargets returns the ArpAllTargets field value if set, zero value otherwise.

func (*LinkLinkinfoInfoData) GetArpAllTargetsOk

func (o *LinkLinkinfoInfoData) GetArpAllTargetsOk() (*string, bool)

GetArpAllTargetsOk returns a tuple with the ArpAllTargets field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetArpInterval

func (o *LinkLinkinfoInfoData) GetArpInterval() int32

GetArpInterval returns the ArpInterval field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetArpIntervalOk

func (o *LinkLinkinfoInfoData) GetArpIntervalOk() (*int32, bool)

GetArpIntervalOk returns a tuple with the ArpInterval field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetArpValidate

func (o *LinkLinkinfoInfoData) GetArpValidate() string

GetArpValidate returns the ArpValidate field value if set, zero value otherwise.

func (*LinkLinkinfoInfoData) GetArpValidateOk

func (o *LinkLinkinfoInfoData) GetArpValidateOk() (*string, bool)

GetArpValidateOk returns a tuple with the ArpValidate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetDowndelay

func (o *LinkLinkinfoInfoData) GetDowndelay() int32

GetDowndelay returns the Downdelay field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetDowndelayOk

func (o *LinkLinkinfoInfoData) GetDowndelayOk() (*int32, bool)

GetDowndelayOk returns a tuple with the Downdelay field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetFailOverMac

func (o *LinkLinkinfoInfoData) GetFailOverMac() string

GetFailOverMac returns the FailOverMac field value if set, zero value otherwise.

func (*LinkLinkinfoInfoData) GetFailOverMacOk

func (o *LinkLinkinfoInfoData) GetFailOverMacOk() (*string, bool)

GetFailOverMacOk returns a tuple with the FailOverMac field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetFlags

func (o *LinkLinkinfoInfoData) GetFlags() []string

GetFlags returns the Flags field value if set, zero value otherwise.

func (*LinkLinkinfoInfoData) GetFlagsOk

func (o *LinkLinkinfoInfoData) GetFlagsOk() (*[]string, bool)

GetFlagsOk returns a tuple with the Flags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetId

func (o *LinkLinkinfoInfoData) GetId() int32

GetId returns the Id field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetIdOk

func (o *LinkLinkinfoInfoData) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetLocal

func (o *LinkLinkinfoInfoData) GetLocal() string

GetLocal returns the Local field value if set, zero value otherwise.

func (*LinkLinkinfoInfoData) GetLocalOk

func (o *LinkLinkinfoInfoData) GetLocalOk() (*string, bool)

GetLocalOk returns a tuple with the Local field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetLpInterval

func (o *LinkLinkinfoInfoData) GetLpInterval() int32

GetLpInterval returns the LpInterval field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetLpIntervalOk

func (o *LinkLinkinfoInfoData) GetLpIntervalOk() (*int32, bool)

GetLpIntervalOk returns a tuple with the LpInterval field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetMiimon

func (o *LinkLinkinfoInfoData) GetMiimon() int32

GetMiimon returns the Miimon field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetMiimonOk

func (o *LinkLinkinfoInfoData) GetMiimonOk() (*int32, bool)

GetMiimonOk returns a tuple with the Miimon field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *LinkLinkinfoInfoData) GetMinLinks() int32

GetMinLinks returns the MinLinks field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetMinLinksOk

func (o *LinkLinkinfoInfoData) GetMinLinksOk() (*int32, bool)

GetMinLinksOk returns a tuple with the MinLinks field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetMode

func (o *LinkLinkinfoInfoData) GetMode() string

GetMode returns the Mode field value if set, zero value otherwise.

func (*LinkLinkinfoInfoData) GetModeOk

func (o *LinkLinkinfoInfoData) GetModeOk() (*string, bool)

GetModeOk returns a tuple with the Mode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetPacketsPerSlave

func (o *LinkLinkinfoInfoData) GetPacketsPerSlave() int32

GetPacketsPerSlave returns the PacketsPerSlave field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetPacketsPerSlaveOk

func (o *LinkLinkinfoInfoData) GetPacketsPerSlaveOk() (*int32, bool)

GetPacketsPerSlaveOk returns a tuple with the PacketsPerSlave field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetPeerNotifyDelay

func (o *LinkLinkinfoInfoData) GetPeerNotifyDelay() int32

GetPeerNotifyDelay returns the PeerNotifyDelay field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetPeerNotifyDelayOk

func (o *LinkLinkinfoInfoData) GetPeerNotifyDelayOk() (*int32, bool)

GetPeerNotifyDelayOk returns a tuple with the PeerNotifyDelay field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetPrimaryReselect

func (o *LinkLinkinfoInfoData) GetPrimaryReselect() string

GetPrimaryReselect returns the PrimaryReselect field value if set, zero value otherwise.

func (*LinkLinkinfoInfoData) GetPrimaryReselectOk

func (o *LinkLinkinfoInfoData) GetPrimaryReselectOk() (*string, bool)

GetPrimaryReselectOk returns a tuple with the PrimaryReselect field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetProtocol

func (o *LinkLinkinfoInfoData) GetProtocol() string

GetProtocol returns the Protocol field value if set, zero value otherwise.

func (*LinkLinkinfoInfoData) GetProtocolOk

func (o *LinkLinkinfoInfoData) GetProtocolOk() (*string, bool)

GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetRemote

func (o *LinkLinkinfoInfoData) GetRemote() string

GetRemote returns the Remote field value if set, zero value otherwise.

func (*LinkLinkinfoInfoData) GetRemoteOk

func (o *LinkLinkinfoInfoData) GetRemoteOk() (*string, bool)

GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetResendIgmp

func (o *LinkLinkinfoInfoData) GetResendIgmp() int32

GetResendIgmp returns the ResendIgmp field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetResendIgmpOk

func (o *LinkLinkinfoInfoData) GetResendIgmpOk() (*int32, bool)

GetResendIgmpOk returns a tuple with the ResendIgmp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetTable

func (o *LinkLinkinfoInfoData) GetTable() uint32

GetTable returns the Table field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetTableOk

func (o *LinkLinkinfoInfoData) GetTableOk() (*uint32, bool)

GetTableOk returns a tuple with the Table field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetTlbDynamicLb

func (o *LinkLinkinfoInfoData) GetTlbDynamicLb() int32

GetTlbDynamicLb returns the TlbDynamicLb field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetTlbDynamicLbOk

func (o *LinkLinkinfoInfoData) GetTlbDynamicLbOk() (*int32, bool)

GetTlbDynamicLbOk returns a tuple with the TlbDynamicLb field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetUpdelay

func (o *LinkLinkinfoInfoData) GetUpdelay() int32

GetUpdelay returns the Updelay field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetUpdelayOk

func (o *LinkLinkinfoInfoData) GetUpdelayOk() (*int32, bool)

GetUpdelayOk returns a tuple with the Updelay field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetUseCarrier

func (o *LinkLinkinfoInfoData) GetUseCarrier() int32

GetUseCarrier returns the UseCarrier field value if set, -1 otherwise.

func (*LinkLinkinfoInfoData) GetUseCarrierOk

func (o *LinkLinkinfoInfoData) GetUseCarrierOk() (*int32, bool)

GetUseCarrierOk returns a tuple with the UseCarrier field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) GetXmitHashPolicy

func (o *LinkLinkinfoInfoData) GetXmitHashPolicy() string

GetXmitHashPolicy returns the XmitHashPolicy field value if set, zero value otherwise.

func (*LinkLinkinfoInfoData) GetXmitHashPolicyOk

func (o *LinkLinkinfoInfoData) GetXmitHashPolicyOk() (*string, bool)

GetXmitHashPolicyOk returns a tuple with the XmitHashPolicy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoData) HasAdLacpRate

func (o *LinkLinkinfoInfoData) HasAdLacpRate() bool

HasAdLacpRate returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasAdSelect

func (o *LinkLinkinfoInfoData) HasAdSelect() bool

HasAdSelect returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasAllSlavesActive

func (o *LinkLinkinfoInfoData) HasAllSlavesActive() bool

HasAllSlavesActive returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasArpAllTargets

func (o *LinkLinkinfoInfoData) HasArpAllTargets() bool

HasArpAllTargets returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasArpInterval

func (o *LinkLinkinfoInfoData) HasArpInterval() bool

HasArpInterval returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasArpValidate

func (o *LinkLinkinfoInfoData) HasArpValidate() bool

HasArpValidate returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasDowndelay

func (o *LinkLinkinfoInfoData) HasDowndelay() bool

HasDowndelay returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasFailOverMac

func (o *LinkLinkinfoInfoData) HasFailOverMac() bool

HasFailOverMac returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasFlags

func (o *LinkLinkinfoInfoData) HasFlags() bool

HasFlags returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasId

func (o *LinkLinkinfoInfoData) HasId() bool

HasId returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasLocal

func (o *LinkLinkinfoInfoData) HasLocal() bool

HasLocal returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasLpInterval

func (o *LinkLinkinfoInfoData) HasLpInterval() bool

HasLpInterval returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasMiimon

func (o *LinkLinkinfoInfoData) HasMiimon() bool

HasMiimon returns a boolean if a field has been set.

func (o *LinkLinkinfoInfoData) HasMinLinks() bool

HasMinLinks returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasMode

func (o *LinkLinkinfoInfoData) HasMode() bool

HasMode returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasPacketsPerSlave

func (o *LinkLinkinfoInfoData) HasPacketsPerSlave() bool

HasPacketsPerSlave returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasPeerNotifyDelay

func (o *LinkLinkinfoInfoData) HasPeerNotifyDelay() bool

HasPeerNotifyDelay returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasPrimaryReselect

func (o *LinkLinkinfoInfoData) HasPrimaryReselect() bool

HasPrimaryReselect returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasProtocol

func (o *LinkLinkinfoInfoData) HasProtocol() bool

HasProtocol returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasRemote

func (o *LinkLinkinfoInfoData) HasRemote() bool

HasRemote returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasResendIgmp

func (o *LinkLinkinfoInfoData) HasResendIgmp() bool

HasResendIgmp returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasTable

func (o *LinkLinkinfoInfoData) HasTable() bool

HasTable returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasTlbDynamicLb

func (o *LinkLinkinfoInfoData) HasTlbDynamicLb() bool

HasTlbDynamicLb returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasUpdelay

func (o *LinkLinkinfoInfoData) HasUpdelay() bool

HasUpdelay returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasUseCarrier

func (o *LinkLinkinfoInfoData) HasUseCarrier() bool

HasUseCarrier returns a boolean if a field has been set.

func (*LinkLinkinfoInfoData) HasXmitHashPolicy

func (o *LinkLinkinfoInfoData) HasXmitHashPolicy() bool

HasXmitHashPolicy returns a boolean if a field has been set.

func (LinkLinkinfoInfoData) MarshalJSON

func (o LinkLinkinfoInfoData) MarshalJSON() ([]byte, error)

func (*LinkLinkinfoInfoData) SetAdLacpRate

func (o *LinkLinkinfoInfoData) SetAdLacpRate(v string)

SetAdLacpRate gets a reference to the given string and assigns it to the AdLacpRate field.

func (*LinkLinkinfoInfoData) SetAdSelect

func (o *LinkLinkinfoInfoData) SetAdSelect(v string)

SetAdSelect gets a reference to the given string and assigns it to the AdSelect field.

func (*LinkLinkinfoInfoData) SetAllSlavesActive

func (o *LinkLinkinfoInfoData) SetAllSlavesActive(v int32)

SetAllSlavesActive gets a reference to the given int32 and assigns it to the AllSlavesActive field.

func (*LinkLinkinfoInfoData) SetArpAllTargets

func (o *LinkLinkinfoInfoData) SetArpAllTargets(v string)

SetArpAllTargets gets a reference to the given string and assigns it to the ArpAllTargets field.

func (*LinkLinkinfoInfoData) SetArpInterval

func (o *LinkLinkinfoInfoData) SetArpInterval(v int32)

SetArpInterval gets a reference to the given int32 and assigns it to the ArpInterval field.

func (*LinkLinkinfoInfoData) SetArpValidate

func (o *LinkLinkinfoInfoData) SetArpValidate(v string)

SetArpValidate gets a reference to the given string and assigns it to the ArpValidate field.

func (*LinkLinkinfoInfoData) SetDowndelay

func (o *LinkLinkinfoInfoData) SetDowndelay(v int32)

SetDowndelay gets a reference to the given int32 and assigns it to the Downdelay field.

func (*LinkLinkinfoInfoData) SetFailOverMac

func (o *LinkLinkinfoInfoData) SetFailOverMac(v string)

SetFailOverMac gets a reference to the given string and assigns it to the FailOverMac field.

func (*LinkLinkinfoInfoData) SetFlags

func (o *LinkLinkinfoInfoData) SetFlags(v []string)

SetFlags gets a reference to the given []string and assigns it to the Flags field.

func (*LinkLinkinfoInfoData) SetId

func (o *LinkLinkinfoInfoData) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*LinkLinkinfoInfoData) SetLocal

func (o *LinkLinkinfoInfoData) SetLocal(v string)

SetLocal gets a reference to the given string and assigns it to the Local field.

func (*LinkLinkinfoInfoData) SetLpInterval

func (o *LinkLinkinfoInfoData) SetLpInterval(v int32)

SetLpInterval gets a reference to the given int32 and assigns it to the LpInterval field.

func (*LinkLinkinfoInfoData) SetMiimon

func (o *LinkLinkinfoInfoData) SetMiimon(v int32)

SetMiimon gets a reference to the given int32 and assigns it to the Miimon field.

func (o *LinkLinkinfoInfoData) SetMinLinks(v int32)

SetMinLinks gets a reference to the given int32 and assigns it to the MinLinks field.

func (*LinkLinkinfoInfoData) SetMode

func (o *LinkLinkinfoInfoData) SetMode(v string)

SetMode gets a reference to the given string and assigns it to the Mode field.

func (*LinkLinkinfoInfoData) SetPacketsPerSlave

func (o *LinkLinkinfoInfoData) SetPacketsPerSlave(v int32)

SetPacketsPerSlave gets a reference to the given int32 and assigns it to the PacketsPerSlave field.

func (*LinkLinkinfoInfoData) SetPeerNotifyDelay

func (o *LinkLinkinfoInfoData) SetPeerNotifyDelay(v int32)

SetPeerNotifyDelay gets a reference to the given int32 and assigns it to the PeerNotifyDelay field.

func (*LinkLinkinfoInfoData) SetPrimaryReselect

func (o *LinkLinkinfoInfoData) SetPrimaryReselect(v string)

SetPrimaryReselect gets a reference to the given string and assigns it to the PrimaryReselect field.

func (*LinkLinkinfoInfoData) SetProtocol

func (o *LinkLinkinfoInfoData) SetProtocol(v string)

SetProtocol gets a reference to the given string and assigns it to the Protocol field.

func (*LinkLinkinfoInfoData) SetRemote

func (o *LinkLinkinfoInfoData) SetRemote(v string)

SetRemote gets a reference to the given string and assigns it to the Remote field.

func (*LinkLinkinfoInfoData) SetResendIgmp

func (o *LinkLinkinfoInfoData) SetResendIgmp(v int32)

SetResendIgmp gets a reference to the given int32 and assigns it to the ResendIgmp field.

func (*LinkLinkinfoInfoData) SetTable

func (o *LinkLinkinfoInfoData) SetTable(v uint32)

SetTable gets a reference to the given uint32 and assigns it to the Table field.

func (*LinkLinkinfoInfoData) SetTlbDynamicLb

func (o *LinkLinkinfoInfoData) SetTlbDynamicLb(v int32)

SetTlbDynamicLb gets a reference to the given int32 and assigns it to the TlbDynamicLb field.

func (*LinkLinkinfoInfoData) SetUpdelay

func (o *LinkLinkinfoInfoData) SetUpdelay(v int32)

SetUpdelay gets a reference to the given int32 and assigns it to the Updelay field.

func (*LinkLinkinfoInfoData) SetUseCarrier

func (o *LinkLinkinfoInfoData) SetUseCarrier(v int32)

SetUseCarrier gets a reference to the given int32 and assigns it to the UseCarrier field.

func (*LinkLinkinfoInfoData) SetXmitHashPolicy

func (o *LinkLinkinfoInfoData) SetXmitHashPolicy(v string)

SetXmitHashPolicy gets a reference to the given string and assigns it to the XmitHashPolicy field.

type LinkLinkinfoInfoSlaveData

type LinkLinkinfoInfoSlaveData struct {
	// State of the link:   * `ACTIVE` - Link is actively used   * `BACKUP` - Link is used for failover
	State *string `json:"state,omitempty"`
	// MII Status:   * `UP`    * `DOWN`
	MiiStatus *string `json:"mii_status,omitempty"`
	// Number of link failures
	LinkFailureCount *int32 `json:"link_failure_count,omitempty"`
	// MAC L2 interface HW address
	PermHwaddr *string `json:"perm_hwaddr,omitempty"`
	// Queue Identifier
	QueueId *int32 `json:"queue_id,omitempty"`
	// Routing Table ID. Typical values for table IDs  mapping can be found in `/etc/iproute2/rt_tables`:      255 local     254 main     253 default     0 unspec  Reference: [IP Route manpage](https://man7.org/linux/man-pages/man8/ip-route.8.html)
	Table *uint32 `json:"table,omitempty"`
}

LinkLinkinfoInfoSlaveData Info about slave state/config

func NewLinkLinkinfoInfoSlaveData

func NewLinkLinkinfoInfoSlaveData() *LinkLinkinfoInfoSlaveData

NewLinkLinkinfoInfoSlaveData instantiates a new LinkLinkinfoInfoSlaveData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLinkLinkinfoInfoSlaveDataWithDefaults

func NewLinkLinkinfoInfoSlaveDataWithDefaults() *LinkLinkinfoInfoSlaveData

NewLinkLinkinfoInfoSlaveDataWithDefaults instantiates a new LinkLinkinfoInfoSlaveData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LinkLinkinfoInfoSlaveData) GetLinkFailureCount

func (o *LinkLinkinfoInfoSlaveData) GetLinkFailureCount() int32

GetLinkFailureCount returns the LinkFailureCount field value if set, -1 otherwise.

func (*LinkLinkinfoInfoSlaveData) GetLinkFailureCountOk

func (o *LinkLinkinfoInfoSlaveData) GetLinkFailureCountOk() (*int32, bool)

GetLinkFailureCountOk returns a tuple with the LinkFailureCount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoSlaveData) GetMiiStatus

func (o *LinkLinkinfoInfoSlaveData) GetMiiStatus() string

GetMiiStatus returns the MiiStatus field value if set, zero value otherwise.

func (*LinkLinkinfoInfoSlaveData) GetMiiStatusOk

func (o *LinkLinkinfoInfoSlaveData) GetMiiStatusOk() (*string, bool)

GetMiiStatusOk returns a tuple with the MiiStatus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoSlaveData) GetPermHwaddr

func (o *LinkLinkinfoInfoSlaveData) GetPermHwaddr() string

GetPermHwaddr returns the PermHwaddr field value if set, zero value otherwise.

func (*LinkLinkinfoInfoSlaveData) GetPermHwaddrOk

func (o *LinkLinkinfoInfoSlaveData) GetPermHwaddrOk() (*string, bool)

GetPermHwaddrOk returns a tuple with the PermHwaddr field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoSlaveData) GetQueueId

func (o *LinkLinkinfoInfoSlaveData) GetQueueId() int32

GetQueueId returns the QueueId field value if set, -1 otherwise.

func (*LinkLinkinfoInfoSlaveData) GetQueueIdOk

func (o *LinkLinkinfoInfoSlaveData) GetQueueIdOk() (*int32, bool)

GetQueueIdOk returns a tuple with the QueueId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoSlaveData) GetState

func (o *LinkLinkinfoInfoSlaveData) GetState() string

GetState returns the State field value if set, zero value otherwise.

func (*LinkLinkinfoInfoSlaveData) GetStateOk

func (o *LinkLinkinfoInfoSlaveData) GetStateOk() (*string, bool)

GetStateOk returns a tuple with the State field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoSlaveData) GetTable

func (o *LinkLinkinfoInfoSlaveData) GetTable() uint32

GetTable returns the Table field value if set, 0 otherwise.

func (*LinkLinkinfoInfoSlaveData) GetTableOk

func (o *LinkLinkinfoInfoSlaveData) GetTableOk() (*uint32, bool)

GetTableOk returns a tuple with the Table field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LinkLinkinfoInfoSlaveData) HasLinkFailureCount

func (o *LinkLinkinfoInfoSlaveData) HasLinkFailureCount() bool

HasLinkFailureCount returns a boolean if a field has been set.

func (*LinkLinkinfoInfoSlaveData) HasMiiStatus

func (o *LinkLinkinfoInfoSlaveData) HasMiiStatus() bool

HasMiiStatus returns a boolean if a field has been set.

func (*LinkLinkinfoInfoSlaveData) HasPermHwaddr

func (o *LinkLinkinfoInfoSlaveData) HasPermHwaddr() bool

HasPermHwaddr returns a boolean if a field has been set.

func (*LinkLinkinfoInfoSlaveData) HasQueueId

func (o *LinkLinkinfoInfoSlaveData) HasQueueId() bool

HasQueueId returns a boolean if a field has been set.

func (*LinkLinkinfoInfoSlaveData) HasState

func (o *LinkLinkinfoInfoSlaveData) HasState() bool

HasState returns a boolean if a field has been set.

func (*LinkLinkinfoInfoSlaveData) HasTable

func (o *LinkLinkinfoInfoSlaveData) HasTable() bool

HasTable returns a boolean if a field has been set.

func (LinkLinkinfoInfoSlaveData) MarshalJSON

func (o LinkLinkinfoInfoSlaveData) MarshalJSON() ([]byte, error)

func (*LinkLinkinfoInfoSlaveData) SetLinkFailureCount

func (o *LinkLinkinfoInfoSlaveData) SetLinkFailureCount(v int32)

SetLinkFailureCount gets a reference to the given int32 and assigns it to the LinkFailureCount field.

func (*LinkLinkinfoInfoSlaveData) SetMiiStatus

func (o *LinkLinkinfoInfoSlaveData) SetMiiStatus(v string)

SetMiiStatus gets a reference to the given string and assigns it to the MiiStatus field.

func (*LinkLinkinfoInfoSlaveData) SetPermHwaddr

func (o *LinkLinkinfoInfoSlaveData) SetPermHwaddr(v string)

SetPermHwaddr gets a reference to the given string and assigns it to the PermHwaddr field.

func (*LinkLinkinfoInfoSlaveData) SetQueueId

func (o *LinkLinkinfoInfoSlaveData) SetQueueId(v int32)

SetQueueId gets a reference to the given int32 and assigns it to the QueueId field.

func (*LinkLinkinfoInfoSlaveData) SetState

func (o *LinkLinkinfoInfoSlaveData) SetState(v string)

SetState gets a reference to the given string and assigns it to the State field.

func (*LinkLinkinfoInfoSlaveData) SetTable

func (o *LinkLinkinfoInfoSlaveData) SetTable(v uint32)

SetTable gets a reference to the given uint32 and assigns it to the Table field.

type Netns

type Netns struct {
	// Network namespace identifier
	Name *string `json:"name,omitempty"`
}

Netns Network Namespace

func NewNetns

func NewNetns() *Netns

NewNetns instantiates a new Netns object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNetnsWithDefaults

func NewNetnsWithDefaults() *Netns

NewNetnsWithDefaults instantiates a new Netns object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Netns) GetName

func (o *Netns) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Netns) GetNameOk

func (o *Netns) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Netns) HasName

func (o *Netns) HasName() bool

HasName returns a boolean if a field has been set.

func (Netns) MarshalJSON

func (o Netns) MarshalJSON() ([]byte, error)

func (*Netns) SetName

func (o *Netns) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

type Network

type Network struct {
	// Series of links layer interfaces to configure within the namespace
	Links *[]Link `json:"links,omitempty"`
	// Namespace routes
	Routes *[]Route `json:"routes,omitempty"`
	// List of DHCP enabled interfaces. Any interface in this list will get its network IP assigned through DHCP protocol. Consequently, any static assignment made to it in the link section will be ignored. Warning will be emitted in this case.
	Dhcp *[]Dhcp `json:"dhcp,omitempty"`
	// List of nameservers and related priorities (lower value indicates higher priority). DNS configuration is ignored if any of the interfaces is set in DHCP.
	Dns *[]Dns `json:"dns,omitempty"`
	// List of IP Rules
	Rules *[]Rule `json:"rules,omitempty"`
	// List of unmanaged Network resorces
	Unmanaged *[]Unmanaged `json:"unmanaged,omitempty"`
}

Network struct for Network

func NewNetwork

func NewNetwork() *Network

NewNetwork instantiates a new Network object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNetworkWithDefaults

func NewNetworkWithDefaults() *Network

NewNetworkWithDefaults instantiates a new Network object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Network) GetDhcp

func (o *Network) GetDhcp() []Dhcp

GetDhcp returns the Dhcp field value if set, zero value otherwise.

func (*Network) GetDhcpOk

func (o *Network) GetDhcpOk() (*[]Dhcp, bool)

GetDhcpOk returns a tuple with the Dhcp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Network) GetDns

func (o *Network) GetDns() []Dns

GetDns returns the Dns field value if set, zero value otherwise.

func (*Network) GetDnsOk

func (o *Network) GetDnsOk() (*[]Dns, bool)

GetDnsOk returns a tuple with the Dns field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *Network) GetLinks() []Link

GetLinks returns the Links field value if set, zero value otherwise.

func (*Network) GetLinksOk

func (o *Network) GetLinksOk() (*[]Link, bool)

GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Network) GetRoutes

func (o *Network) GetRoutes() []Route

GetRoutes returns the Routes field value if set, zero value otherwise.

func (*Network) GetRoutesOk

func (o *Network) GetRoutesOk() (*[]Route, bool)

GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Network) GetRules

func (o *Network) GetRules() []Rule

GetRules returns the Rules field value if set, zero value otherwise.

func (*Network) GetRulesOk

func (o *Network) GetRulesOk() (*[]Rule, bool)

GetRulesOk returns a tuple with the Rules field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Network) GetUnmanaged

func (o *Network) GetUnmanaged() []Unmanaged

GetUnmanaged returns the Unmanaged field value if set, zero value otherwise.

func (*Network) GetUnmanagedOk

func (o *Network) GetUnmanagedOk() (*[]Unmanaged, bool)

GetUnmanagedOk returns a tuple with the Unmanaged field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Network) HasDhcp

func (o *Network) HasDhcp() bool

HasDhcp returns a boolean if a field has been set.

func (*Network) HasDns

func (o *Network) HasDns() bool

HasDns returns a boolean if a field has been set.

func (o *Network) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*Network) HasRoutes

func (o *Network) HasRoutes() bool

HasRoutes returns a boolean if a field has been set.

func (*Network) HasRules

func (o *Network) HasRules() bool

HasRules returns a boolean if a field has been set.

func (*Network) HasUnmanaged

func (o *Network) HasUnmanaged() bool

HasUnmanaged returns a boolean if a field has been set.

func (Network) MarshalJSON

func (o Network) MarshalJSON() ([]byte, error)

func (*Network) SetDhcp

func (o *Network) SetDhcp(v []Dhcp)

SetDhcp gets a reference to the given []Dhcp and assigns it to the Dhcp field.

func (*Network) SetDns

func (o *Network) SetDns(v []Dns)

SetDns gets a reference to the given []Dns and assigns it to the Dns field.

func (o *Network) SetLinks(v []Link)

SetLinks gets a reference to the given []Link and assigns it to the Links field.

func (*Network) SetRoutes

func (o *Network) SetRoutes(v []Route)

SetRoutes gets a reference to the given []Route and assigns it to the Routes field.

func (*Network) SetRules

func (o *Network) SetRules(v []Rule)

SetRules gets a reference to the given []Rule and assigns it to the Rules field.

func (*Network) SetUnmanaged

func (o *Network) SetUnmanaged(v []Unmanaged)

SetUnmanaged gets a reference to the given []Unmanaged and assigns it to the Unmanaged field.

type NetworkApiController

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

A NetworkApiController binds http requests to an api service and writes the service results to the http response

func (*NetworkApiController) ConfigDHCPCreate

func (c *NetworkApiController) ConfigDHCPCreate(w http.ResponseWriter, r *http.Request)

ConfigDHCPCreate - Create DHCP

func (*NetworkApiController) ConfigDHCPDel

func (c *NetworkApiController) ConfigDHCPDel(w http.ResponseWriter, r *http.Request)

ConfigDHCPDel - Delete DHCP

func (*NetworkApiController) ConfigDHCPGet

func (c *NetworkApiController) ConfigDHCPGet(w http.ResponseWriter, r *http.Request)

ConfigDHCPGet - Get DHCP

func (*NetworkApiController) ConfigDHCPsGet

func (c *NetworkApiController) ConfigDHCPsGet(w http.ResponseWriter, r *http.Request)

ConfigDHCPsGet - Get All DHCP

func (*NetworkApiController) ConfigDNSCreate

func (c *NetworkApiController) ConfigDNSCreate(w http.ResponseWriter, r *http.Request)

ConfigDNSCreate - Create DNS

func (*NetworkApiController) ConfigDNSDel

func (c *NetworkApiController) ConfigDNSDel(w http.ResponseWriter, r *http.Request)

ConfigDNSDel - Delete DNS

func (*NetworkApiController) ConfigDNSGet

func (c *NetworkApiController) ConfigDNSGet(w http.ResponseWriter, r *http.Request)

ConfigDNSGet - Get DNS

func (*NetworkApiController) ConfigDNSsGet

func (c *NetworkApiController) ConfigDNSsGet(w http.ResponseWriter, r *http.Request)

ConfigDNSsGet - Get All DNS config

func (*NetworkApiController) ConfigLinkCreate

func (c *NetworkApiController) ConfigLinkCreate(w http.ResponseWriter, r *http.Request)

ConfigLinkCreate - Create New Link

func (*NetworkApiController) ConfigLinkDel

func (c *NetworkApiController) ConfigLinkDel(w http.ResponseWriter, r *http.Request)

ConfigLinkDel - Delete Link

func (*NetworkApiController) ConfigLinkGet

func (c *NetworkApiController) ConfigLinkGet(w http.ResponseWriter, r *http.Request)

ConfigLinkGet - Get Link

func (*NetworkApiController) ConfigLinksGet

func (c *NetworkApiController) ConfigLinksGet(w http.ResponseWriter, r *http.Request)

ConfigLinksGet - Get All Links

func (*NetworkApiController) ConfigRouteCreate

func (c *NetworkApiController) ConfigRouteCreate(w http.ResponseWriter, r *http.Request)

ConfigRouteCreate - Create New Route

func (*NetworkApiController) ConfigRouteDel

func (c *NetworkApiController) ConfigRouteDel(w http.ResponseWriter, r *http.Request)

ConfigRouteDel - Delete Route

func (*NetworkApiController) ConfigRouteGet

func (c *NetworkApiController) ConfigRouteGet(w http.ResponseWriter, r *http.Request)

ConfigRouteGet - Get Route

func (*NetworkApiController) ConfigRoutesGet

func (c *NetworkApiController) ConfigRoutesGet(w http.ResponseWriter, r *http.Request)

ConfigRoutesGet - Get All Routes

func (*NetworkApiController) ConfigRuleCreate

func (c *NetworkApiController) ConfigRuleCreate(w http.ResponseWriter, r *http.Request)

ConfigRuleCreate - Configures an IP rule

func (*NetworkApiController) ConfigRuleDel

func (c *NetworkApiController) ConfigRuleDel(w http.ResponseWriter, r *http.Request)

ConfigRuleDel - Removes an IP Rule

func (*NetworkApiController) ConfigRuleGet

func (c *NetworkApiController) ConfigRuleGet(w http.ResponseWriter, r *http.Request)

ConfigRuleGet - Get an IP rule details

func (*NetworkApiController) ConfigRulesGet

func (c *NetworkApiController) ConfigRulesGet(w http.ResponseWriter, r *http.Request)

ConfigRulesGet - Get all ip rules list

func (*NetworkApiController) ConfigUnmanagedCreate

func (c *NetworkApiController) ConfigUnmanagedCreate(w http.ResponseWriter, r *http.Request)

ConfigUnmanagedCreate - Create Unmanaged

func (*NetworkApiController) ConfigUnmanagedDel

func (c *NetworkApiController) ConfigUnmanagedDel(w http.ResponseWriter, r *http.Request)

ConfigUnmanagedDel - Delete Unmanaged

func (*NetworkApiController) ConfigUnmanagedGet

func (c *NetworkApiController) ConfigUnmanagedGet(w http.ResponseWriter, r *http.Request)

ConfigUnmanagedGet - Get Unmanaged

func (*NetworkApiController) ConfigUnmanagedListGet

func (c *NetworkApiController) ConfigUnmanagedListGet(w http.ResponseWriter, r *http.Request)

ConfigUnmanagedListGet - Get All Unmanaged

func (*NetworkApiController) Routes

func (c *NetworkApiController) Routes() Routes

Routes returns all of the api route for the NetworkApiController

type NetworkApiRouter

type NetworkApiRouter interface {
	ConfigDHCPCreate(http.ResponseWriter, *http.Request)
	ConfigDHCPDel(http.ResponseWriter, *http.Request)
	ConfigDHCPGet(http.ResponseWriter, *http.Request)
	ConfigDHCPsGet(http.ResponseWriter, *http.Request)
	ConfigDNSCreate(http.ResponseWriter, *http.Request)
	ConfigDNSDel(http.ResponseWriter, *http.Request)
	ConfigDNSGet(http.ResponseWriter, *http.Request)
	ConfigDNSsGet(http.ResponseWriter, *http.Request)
	ConfigLinkCreate(http.ResponseWriter, *http.Request)
	ConfigLinkDel(http.ResponseWriter, *http.Request)
	ConfigLinkGet(http.ResponseWriter, *http.Request)
	ConfigLinksGet(http.ResponseWriter, *http.Request)
	ConfigRouteCreate(http.ResponseWriter, *http.Request)
	ConfigRouteDel(http.ResponseWriter, *http.Request)
	ConfigRouteGet(http.ResponseWriter, *http.Request)
	ConfigRoutesGet(http.ResponseWriter, *http.Request)
	ConfigRuleCreate(http.ResponseWriter, *http.Request)
	ConfigRuleDel(http.ResponseWriter, *http.Request)
	ConfigRuleGet(http.ResponseWriter, *http.Request)
	ConfigRulesGet(http.ResponseWriter, *http.Request)
	ConfigUnmanagedCreate(http.ResponseWriter, *http.Request)
	ConfigUnmanagedDel(http.ResponseWriter, *http.Request)
	ConfigUnmanagedGet(http.ResponseWriter, *http.Request)
	ConfigUnmanagedListGet(http.ResponseWriter, *http.Request)
}

NetworkApiRouter defines the required methods for binding the api requests to a responses for the NetworkApi The NetworkApiRouter implementation should parse necessary information from the http request, pass the data to a NetworkApiServicer to perform the required actions, then write the service results to the http response.

type NetworkApiService

type NetworkApiService struct {
}

NetworkApiService is a service that implents the logic for the NetworkApiServicer This service should implement the business logic for every endpoint for the NetworkApi API. Include any external packages or services that will be required by this service.

func (*NetworkApiService) ConfigDHCPCreate

func (s *NetworkApiService) ConfigDHCPCreate(ctx context.Context, dhcp Dhcp) (ImplResponse, error)

ConfigDHCPCreate - Create DHCP

func (*NetworkApiService) ConfigDHCPCreate_Impl

func (s *NetworkApiService) ConfigDHCPCreate_Impl(ctx context.Context, dhcp Dhcp) (ImplResponse, error)

ConfigDHCPCreate - Create DHCP

func (*NetworkApiService) ConfigDHCPDel

func (s *NetworkApiService) ConfigDHCPDel(ctx context.Context, ifname string) (ImplResponse, error)

ConfigDHCPDel - Delete DHCP

func (*NetworkApiService) ConfigDHCPDel_Impl

func (s *NetworkApiService) ConfigDHCPDel_Impl(ctx context.Context, ifname string) (ImplResponse, error)

ConfigDHCPDel - Delete DHCP

func (*NetworkApiService) ConfigDHCPGet

func (s *NetworkApiService) ConfigDHCPGet(ctx context.Context, ifname string) (ImplResponse, error)

ConfigDHCPGet - Get DHCP

func (*NetworkApiService) ConfigDHCPGet_Impl

func (s *NetworkApiService) ConfigDHCPGet_Impl(ctx context.Context, ifname string) (ImplResponse, error)

ConfigDHCPGet - Get DHCP

func (*NetworkApiService) ConfigDHCPsGet

func (s *NetworkApiService) ConfigDHCPsGet(ctx context.Context) (ImplResponse, error)

ConfigDHCPsGet - Get All DHCP

func (*NetworkApiService) ConfigDHCPsGet_Impl

func (s *NetworkApiService) ConfigDHCPsGet_Impl(ctx context.Context) (ImplResponse, error)

ConfigDHCPsGet - Get All DHCP

func (*NetworkApiService) ConfigDNSCreate

func (s *NetworkApiService) ConfigDNSCreate(ctx context.Context, dns Dns) (ImplResponse, error)

ConfigDNSCreate - Create DNS

func (*NetworkApiService) ConfigDNSCreate_Impl

func (s *NetworkApiService) ConfigDNSCreate_Impl(ctx context.Context, dns Dns) (ImplResponse, error)

ConfigDNSCreate - Create DNS

func (*NetworkApiService) ConfigDNSDel

func (s *NetworkApiService) ConfigDNSDel(ctx context.Context, dnsid Dnsid) (ImplResponse, error)

ConfigDNSDel - Delete DNS

func (*NetworkApiService) ConfigDNSDel_Impl

func (s *NetworkApiService) ConfigDNSDel_Impl(ctx context.Context, dnsid Dnsid) (ImplResponse, error)

ConfigDNSDel - Delete DNS

func (*NetworkApiService) ConfigDNSGet

func (s *NetworkApiService) ConfigDNSGet(ctx context.Context, dnsid Dnsid) (ImplResponse, error)

ConfigDNSGet - Get DNS

func (*NetworkApiService) ConfigDNSGet_Impl

func (s *NetworkApiService) ConfigDNSGet_Impl(ctx context.Context, dnsid Dnsid) (ImplResponse, error)

ConfigDNSGet - Get DNS

func (*NetworkApiService) ConfigDNSsGet

func (s *NetworkApiService) ConfigDNSsGet(ctx context.Context) (ImplResponse, error)

ConfigDNSsGet - Get All DNS config

func (*NetworkApiService) ConfigDNSsGet_Impl

func (s *NetworkApiService) ConfigDNSsGet_Impl(ctx context.Context) (ImplResponse, error)

ConfigDNSsGet - Get All DNS config

func (*NetworkApiService) ConfigLinkCreate

func (s *NetworkApiService) ConfigLinkCreate(ctx context.Context, link Link) (ImplResponse, error)

ConfigLinkCreate - Create New Link

func (*NetworkApiService) ConfigLinkCreate_Impl

func (s *NetworkApiService) ConfigLinkCreate_Impl(ctx context.Context, link Link) (ImplResponse, error)

ConfigLinkCreate - Create New Link

func (*NetworkApiService) ConfigLinkDel

func (s *NetworkApiService) ConfigLinkDel(ctx context.Context, ifname string) (ImplResponse, error)

ConfigLinkDel - Delete Link

func (*NetworkApiService) ConfigLinkDel_Impl

func (s *NetworkApiService) ConfigLinkDel_Impl(ctx context.Context, ifname string) (ImplResponse, error)

ConfigLinkDel - Brings down and delete a link layer interface

func (*NetworkApiService) ConfigLinkGet

func (s *NetworkApiService) ConfigLinkGet(ctx context.Context, ifname string) (ImplResponse, error)

ConfigLinkGet - Get Link

func (*NetworkApiService) ConfigLinkGet_Impl

func (s *NetworkApiService) ConfigLinkGet_Impl(ctx context.Context, ifname string) (ImplResponse, error)

ConfigLinkGet - Retrieve link layer interface information

func (*NetworkApiService) ConfigLinksGet

func (s *NetworkApiService) ConfigLinksGet(ctx context.Context) (ImplResponse, error)

ConfigLinksGet - Get All Links

func (*NetworkApiService) ConfigLinksGet_Impl

func (s *NetworkApiService) ConfigLinksGet_Impl(ctx context.Context) (ImplResponse, error)

ConfigLinksGet - Get all link layer interfaces

func (*NetworkApiService) ConfigRouteCreate

func (s *NetworkApiService) ConfigRouteCreate(ctx context.Context, route Route) (ImplResponse, error)

ConfigRouteCreate - Create New Route

func (*NetworkApiService) ConfigRouteCreate_Impl

func (s *NetworkApiService) ConfigRouteCreate_Impl(ctx context.Context, route Route) (ImplResponse, error)

ConfigRouteCreate - Configures a route

func (*NetworkApiService) ConfigRouteDel

func (s *NetworkApiService) ConfigRouteDel(ctx context.Context, routeid string) (ImplResponse, error)

ConfigRouteDel - Delete Route

func (*NetworkApiService) ConfigRouteDel_Impl

func (s *NetworkApiService) ConfigRouteDel_Impl(ctx context.Context, routeid string) (ImplResponse, error)

ConfigRouteDel - Brings down and delete an L3 IP route

func (*NetworkApiService) ConfigRouteGet

func (s *NetworkApiService) ConfigRouteGet(ctx context.Context, routeid string) (ImplResponse, error)

ConfigRouteGet - Get Route

func (*NetworkApiService) ConfigRouteGet_Impl

func (s *NetworkApiService) ConfigRouteGet_Impl(ctx context.Context, routeid string) (ImplResponse, error)

ConfigRouteGet - Get a L3 route details

func (*NetworkApiService) ConfigRoutesGet

func (s *NetworkApiService) ConfigRoutesGet(ctx context.Context) (ImplResponse, error)

ConfigRoutesGet - Get All Routes

func (*NetworkApiService) ConfigRoutesGet_Impl

func (s *NetworkApiService) ConfigRoutesGet_Impl(ctx context.Context) (ImplResponse, error)

ConfigRoutesGet - Get all routing table routes

func (*NetworkApiService) ConfigRuleCreate

func (s *NetworkApiService) ConfigRuleCreate(ctx context.Context, rule Rule) (ImplResponse, error)

ConfigRuleCreate - Configures an IP rule

func (*NetworkApiService) ConfigRuleCreate_Impl

func (s *NetworkApiService) ConfigRuleCreate_Impl(ctx context.Context, rule Rule) (ImplResponse, error)

ConfigRuleCreate - Configures a rule

func (*NetworkApiService) ConfigRuleDel

func (s *NetworkApiService) ConfigRuleDel(ctx context.Context, ruleid string) (ImplResponse, error)

ConfigRuleDel - Removes an IP Rule

func (*NetworkApiService) ConfigRuleDel_Impl

func (s *NetworkApiService) ConfigRuleDel_Impl(ctx context.Context, ruleid string) (ImplResponse, error)

ConfigRuleDel - Brings down and delete an L3 IP rule

func (*NetworkApiService) ConfigRuleGet

func (s *NetworkApiService) ConfigRuleGet(ctx context.Context, ruleid string) (ImplResponse, error)

ConfigRuleGet - Get an IP rule details

func (*NetworkApiService) ConfigRuleGet_Impl

func (s *NetworkApiService) ConfigRuleGet_Impl(ctx context.Context, ruleid string) (ImplResponse, error)

ConfigRuleGet - Get a L3 rule details

func (*NetworkApiService) ConfigRulesGet

func (s *NetworkApiService) ConfigRulesGet(ctx context.Context) (ImplResponse, error)

ConfigRulesGet - Get all ip rules list

func (*NetworkApiService) ConfigRulesGet_Impl

func (s *NetworkApiService) ConfigRulesGet_Impl(ctx context.Context) (ImplResponse, error)

ConfigRulesGet - Get all routing table rules

func (*NetworkApiService) ConfigUnmanagedCreate

func (s *NetworkApiService) ConfigUnmanagedCreate(ctx context.Context, unmanaged Unmanaged) (ImplResponse, error)

ConfigUnmanagedCreate - Create Unmanaged

func (*NetworkApiService) ConfigUnmanagedCreate_Impl

func (s *NetworkApiService) ConfigUnmanagedCreate_Impl(ctx context.Context, unmanaged Unmanaged) (ImplResponse, error)

ConfigUnmanagedCreate - Create Unmanaged

func (*NetworkApiService) ConfigUnmanagedDel

func (s *NetworkApiService) ConfigUnmanagedDel(ctx context.Context, id string) (ImplResponse, error)

ConfigUnmanagedDel - Delete Unmanaged

func (*NetworkApiService) ConfigUnmanagedDel_Impl

func (s *NetworkApiService) ConfigUnmanagedDel_Impl(ctx context.Context, id string) (ImplResponse, error)

ConfigUnmanagedDel - Delete Unmanaged

func (*NetworkApiService) ConfigUnmanagedGet

func (s *NetworkApiService) ConfigUnmanagedGet(ctx context.Context, id string) (ImplResponse, error)

ConfigUnmanagedGet - Get Unmanaged

func (*NetworkApiService) ConfigUnmanagedGet_Impl

func (s *NetworkApiService) ConfigUnmanagedGet_Impl(ctx context.Context, id string) (ImplResponse, error)

ConfigUnmanagedGet - Get Unmanaged

func (*NetworkApiService) ConfigUnmanagedListGet

func (s *NetworkApiService) ConfigUnmanagedListGet(ctx context.Context) (ImplResponse, error)

ConfigUnmanagedListGet - Get All Unmanaged

func (*NetworkApiService) ConfigUnmanagedListGet_Impl

func (s *NetworkApiService) ConfigUnmanagedListGet_Impl(ctx context.Context) (ImplResponse, error)

ConfigUnmanagedListGet - Get All Unmanaged

type NetworkApiServicer

type NetworkApiServicer interface {
	ConfigDHCPCreate(context.Context, Dhcp) (ImplResponse, error)
	ConfigDHCPDel(context.Context, string) (ImplResponse, error)
	ConfigDHCPGet(context.Context, string) (ImplResponse, error)
	ConfigDHCPsGet(context.Context) (ImplResponse, error)
	ConfigDNSCreate(context.Context, Dns) (ImplResponse, error)
	ConfigDNSDel(context.Context, Dnsid) (ImplResponse, error)
	ConfigDNSGet(context.Context, Dnsid) (ImplResponse, error)
	ConfigDNSsGet(context.Context) (ImplResponse, error)
	ConfigLinkCreate(context.Context, Link) (ImplResponse, error)
	ConfigLinkDel(context.Context, string) (ImplResponse, error)
	ConfigLinkGet(context.Context, string) (ImplResponse, error)
	ConfigLinksGet(context.Context) (ImplResponse, error)
	ConfigRouteCreate(context.Context, Route) (ImplResponse, error)
	ConfigRouteDel(context.Context, string) (ImplResponse, error)
	ConfigRouteGet(context.Context, string) (ImplResponse, error)
	ConfigRoutesGet(context.Context) (ImplResponse, error)
	ConfigRuleCreate(context.Context, Rule) (ImplResponse, error)
	ConfigRuleDel(context.Context, string) (ImplResponse, error)
	ConfigRuleGet(context.Context, string) (ImplResponse, error)
	ConfigRulesGet(context.Context) (ImplResponse, error)
	ConfigUnmanagedCreate(context.Context, Unmanaged) (ImplResponse, error)
	ConfigUnmanagedDel(context.Context, string) (ImplResponse, error)
	ConfigUnmanagedGet(context.Context, string) (ImplResponse, error)
	ConfigUnmanagedListGet(context.Context) (ImplResponse, error)
}

NetworkApiServicer defines the api actions for the NetworkApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.

func NewNetworkApiService

func NewNetworkApiService() NetworkApiServicer

NewNetworkApiService creates a default api service

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableConfig

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

func NewNullableConfig

func NewNullableConfig(val *Config) *NullableConfig

func (NullableConfig) Get

func (v NullableConfig) Get() *Config

func (NullableConfig) IsSet

func (v NullableConfig) IsSet() bool

func (NullableConfig) MarshalJSON

func (v NullableConfig) MarshalJSON() ([]byte, error)

func (*NullableConfig) Set

func (v *NullableConfig) Set(val *Config)

func (*NullableConfig) UnmarshalJSON

func (v *NullableConfig) UnmarshalJSON(src []byte) error

func (*NullableConfig) Unset

func (v *NullableConfig) Unset()

type NullableDhcp

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

func NewNullableDhcp

func NewNullableDhcp(val *Dhcp) *NullableDhcp

func (NullableDhcp) Get

func (v NullableDhcp) Get() *Dhcp

func (NullableDhcp) IsSet

func (v NullableDhcp) IsSet() bool

func (NullableDhcp) MarshalJSON

func (v NullableDhcp) MarshalJSON() ([]byte, error)

func (*NullableDhcp) Set

func (v *NullableDhcp) Set(val *Dhcp)

func (*NullableDhcp) UnmarshalJSON

func (v *NullableDhcp) UnmarshalJSON(src []byte) error

func (*NullableDhcp) Unset

func (v *NullableDhcp) Unset()

type NullableDns

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

func NewNullableDns

func NewNullableDns(val *Dns) *NullableDns

func (NullableDns) Get

func (v NullableDns) Get() *Dns

func (NullableDns) IsSet

func (v NullableDns) IsSet() bool

func (NullableDns) MarshalJSON

func (v NullableDns) MarshalJSON() ([]byte, error)

func (*NullableDns) Set

func (v *NullableDns) Set(val *Dns)

func (*NullableDns) UnmarshalJSON

func (v *NullableDns) UnmarshalJSON(src []byte) error

func (*NullableDns) Unset

func (v *NullableDns) Unset()

type NullableDnsid

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

func NewNullableDnsid

func NewNullableDnsid(val *Dnsid) *NullableDnsid

func (NullableDnsid) Get

func (v NullableDnsid) Get() *Dnsid

func (NullableDnsid) IsSet

func (v NullableDnsid) IsSet() bool

func (NullableDnsid) MarshalJSON

func (v NullableDnsid) MarshalJSON() ([]byte, error)

func (*NullableDnsid) Set

func (v *NullableDnsid) Set(val *Dnsid)

func (*NullableDnsid) UnmarshalJSON

func (v *NullableDnsid) UnmarshalJSON(src []byte) error

func (*NullableDnsid) Unset

func (v *NullableDnsid) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGlobal

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

func NewNullableGlobal

func NewNullableGlobal(val *Global) *NullableGlobal

func (NullableGlobal) Get

func (v NullableGlobal) Get() *Global

func (NullableGlobal) IsSet

func (v NullableGlobal) IsSet() bool

func (NullableGlobal) MarshalJSON

func (v NullableGlobal) MarshalJSON() ([]byte, error)

func (*NullableGlobal) Set

func (v *NullableGlobal) Set(val *Global)

func (*NullableGlobal) UnmarshalJSON

func (v *NullableGlobal) UnmarshalJSON(src []byte) error

func (*NullableGlobal) Unset

func (v *NullableGlobal) Unset()

type NullableGlobalMgmt

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

func NewNullableGlobalMgmt

func NewNullableGlobalMgmt(val *GlobalMgmt) *NullableGlobalMgmt

func (NullableGlobalMgmt) Get

func (v NullableGlobalMgmt) Get() *GlobalMgmt

func (NullableGlobalMgmt) IsSet

func (v NullableGlobalMgmt) IsSet() bool

func (NullableGlobalMgmt) MarshalJSON

func (v NullableGlobalMgmt) MarshalJSON() ([]byte, error)

func (*NullableGlobalMgmt) Set

func (v *NullableGlobalMgmt) Set(val *GlobalMgmt)

func (*NullableGlobalMgmt) UnmarshalJSON

func (v *NullableGlobalMgmt) UnmarshalJSON(src []byte) error

func (*NullableGlobalMgmt) Unset

func (v *NullableGlobalMgmt) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()
type NullableLink struct {
	// contains filtered or unexported fields
}
func NewNullableLink(val *Link) *NullableLink

func (NullableLink) Get

func (v NullableLink) Get() *Link

func (NullableLink) IsSet

func (v NullableLink) IsSet() bool

func (NullableLink) MarshalJSON

func (v NullableLink) MarshalJSON() ([]byte, error)

func (*NullableLink) Set

func (v *NullableLink) Set(val *Link)

func (*NullableLink) UnmarshalJSON

func (v *NullableLink) UnmarshalJSON(src []byte) error

func (*NullableLink) Unset

func (v *NullableLink) Unset()

type NullableLinkAddrInfo

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

func NewNullableLinkAddrInfo

func NewNullableLinkAddrInfo(val *LinkAddrInfo) *NullableLinkAddrInfo

func (NullableLinkAddrInfo) Get

func (NullableLinkAddrInfo) IsSet

func (v NullableLinkAddrInfo) IsSet() bool

func (NullableLinkAddrInfo) MarshalJSON

func (v NullableLinkAddrInfo) MarshalJSON() ([]byte, error)

func (*NullableLinkAddrInfo) Set

func (v *NullableLinkAddrInfo) Set(val *LinkAddrInfo)

func (*NullableLinkAddrInfo) UnmarshalJSON

func (v *NullableLinkAddrInfo) UnmarshalJSON(src []byte) error

func (*NullableLinkAddrInfo) Unset

func (v *NullableLinkAddrInfo) Unset()

type NullableLinkFlag

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

func NewNullableLinkFlag

func NewNullableLinkFlag(val *LinkFlag) *NullableLinkFlag

func (NullableLinkFlag) Get

func (v NullableLinkFlag) Get() *LinkFlag

func (NullableLinkFlag) IsSet

func (v NullableLinkFlag) IsSet() bool

func (NullableLinkFlag) MarshalJSON

func (v NullableLinkFlag) MarshalJSON() ([]byte, error)

func (*NullableLinkFlag) Set

func (v *NullableLinkFlag) Set(val *LinkFlag)

func (*NullableLinkFlag) UnmarshalJSON

func (v *NullableLinkFlag) UnmarshalJSON(src []byte) error

func (*NullableLinkFlag) Unset

func (v *NullableLinkFlag) Unset()

type NullableLinkLinkinfo

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

func NewNullableLinkLinkinfo

func NewNullableLinkLinkinfo(val *LinkLinkinfo) *NullableLinkLinkinfo

func (NullableLinkLinkinfo) Get

func (NullableLinkLinkinfo) IsSet

func (v NullableLinkLinkinfo) IsSet() bool

func (NullableLinkLinkinfo) MarshalJSON

func (v NullableLinkLinkinfo) MarshalJSON() ([]byte, error)

func (*NullableLinkLinkinfo) Set

func (v *NullableLinkLinkinfo) Set(val *LinkLinkinfo)

func (*NullableLinkLinkinfo) UnmarshalJSON

func (v *NullableLinkLinkinfo) UnmarshalJSON(src []byte) error

func (*NullableLinkLinkinfo) Unset

func (v *NullableLinkLinkinfo) Unset()

type NullableLinkLinkinfoInfoData

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

func NewNullableLinkLinkinfoInfoData

func NewNullableLinkLinkinfoInfoData(val *LinkLinkinfoInfoData) *NullableLinkLinkinfoInfoData

func (NullableLinkLinkinfoInfoData) Get

func (NullableLinkLinkinfoInfoData) IsSet

func (NullableLinkLinkinfoInfoData) MarshalJSON

func (v NullableLinkLinkinfoInfoData) MarshalJSON() ([]byte, error)

func (*NullableLinkLinkinfoInfoData) Set

func (*NullableLinkLinkinfoInfoData) UnmarshalJSON

func (v *NullableLinkLinkinfoInfoData) UnmarshalJSON(src []byte) error

func (*NullableLinkLinkinfoInfoData) Unset

func (v *NullableLinkLinkinfoInfoData) Unset()

type NullableLinkLinkinfoInfoSlaveData

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

func (NullableLinkLinkinfoInfoSlaveData) Get

func (NullableLinkLinkinfoInfoSlaveData) IsSet

func (NullableLinkLinkinfoInfoSlaveData) MarshalJSON

func (v NullableLinkLinkinfoInfoSlaveData) MarshalJSON() ([]byte, error)

func (*NullableLinkLinkinfoInfoSlaveData) Set

func (*NullableLinkLinkinfoInfoSlaveData) UnmarshalJSON

func (v *NullableLinkLinkinfoInfoSlaveData) UnmarshalJSON(src []byte) error

func (*NullableLinkLinkinfoInfoSlaveData) Unset

type NullableNetns

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

func NewNullableNetns

func NewNullableNetns(val *Netns) *NullableNetns

func (NullableNetns) Get

func (v NullableNetns) Get() *Netns

func (NullableNetns) IsSet

func (v NullableNetns) IsSet() bool

func (NullableNetns) MarshalJSON

func (v NullableNetns) MarshalJSON() ([]byte, error)

func (*NullableNetns) Set

func (v *NullableNetns) Set(val *Netns)

func (*NullableNetns) UnmarshalJSON

func (v *NullableNetns) UnmarshalJSON(src []byte) error

func (*NullableNetns) Unset

func (v *NullableNetns) Unset()

type NullableNetwork

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

func NewNullableNetwork

func NewNullableNetwork(val *Network) *NullableNetwork

func (NullableNetwork) Get

func (v NullableNetwork) Get() *Network

func (NullableNetwork) IsSet

func (v NullableNetwork) IsSet() bool

func (NullableNetwork) MarshalJSON

func (v NullableNetwork) MarshalJSON() ([]byte, error)

func (*NullableNetwork) Set

func (v *NullableNetwork) Set(val *Network)

func (*NullableNetwork) UnmarshalJSON

func (v *NullableNetwork) UnmarshalJSON(src []byte) error

func (*NullableNetwork) Unset

func (v *NullableNetwork) Unset()

type NullableRoute

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

func NewNullableRoute

func NewNullableRoute(val *Route) *NullableRoute

func (NullableRoute) Get

func (v NullableRoute) Get() *Route

func (NullableRoute) IsSet

func (v NullableRoute) IsSet() bool

func (NullableRoute) MarshalJSON

func (v NullableRoute) MarshalJSON() ([]byte, error)

func (*NullableRoute) Set

func (v *NullableRoute) Set(val *Route)

func (*NullableRoute) UnmarshalJSON

func (v *NullableRoute) UnmarshalJSON(src []byte) error

func (*NullableRoute) Unset

func (v *NullableRoute) Unset()

type NullableRule

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

func NewNullableRule

func NewNullableRule(val *Rule) *NullableRule

func (NullableRule) Get

func (v NullableRule) Get() *Rule

func (NullableRule) IsSet

func (v NullableRule) IsSet() bool

func (NullableRule) MarshalJSON

func (v NullableRule) MarshalJSON() ([]byte, error)

func (*NullableRule) Set

func (v *NullableRule) Set(val *Rule)

func (*NullableRule) UnmarshalJSON

func (v *NullableRule) UnmarshalJSON(src []byte) error

func (*NullableRule) Unset

func (v *NullableRule) Unset()

type NullableScope

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

func NewNullableScope

func NewNullableScope(val *Scope) *NullableScope

func (NullableScope) Get

func (v NullableScope) Get() *Scope

func (NullableScope) IsSet

func (v NullableScope) IsSet() bool

func (NullableScope) MarshalJSON

func (v NullableScope) MarshalJSON() ([]byte, error)

func (*NullableScope) Set

func (v *NullableScope) Set(val *Scope)

func (*NullableScope) UnmarshalJSON

func (v *NullableScope) UnmarshalJSON(src []byte) error

func (*NullableScope) Unset

func (v *NullableScope) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableUnmanaged

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

func NewNullableUnmanaged

func NewNullableUnmanaged(val *Unmanaged) *NullableUnmanaged

func (NullableUnmanaged) Get

func (v NullableUnmanaged) Get() *Unmanaged

func (NullableUnmanaged) IsSet

func (v NullableUnmanaged) IsSet() bool

func (NullableUnmanaged) MarshalJSON

func (v NullableUnmanaged) MarshalJSON() ([]byte, error)

func (*NullableUnmanaged) Set

func (v *NullableUnmanaged) Set(val *Unmanaged)

func (*NullableUnmanaged) UnmarshalJSON

func (v *NullableUnmanaged) UnmarshalJSON(src []byte) error

func (*NullableUnmanaged) Unset

func (v *NullableUnmanaged) Unset()

type Route

type Route struct {
	//  MD5 hash based on route relevant context (dst, gw, dev)  Ignored in creation (readonly), it is only used to identify a route to get or delete
	Id  *string     `json:"__id,omitempty"`
	Dst nc.CIDRAddr `json:"dst"`
	// IPv4 or IPv6 address
	Gateway *net.IP `json:"gateway,omitempty"`
	// Interface name
	Dev *string `json:"dev,omitempty"`
	// Tells the origin of a route.  Refs:   * [Netlink](https://github.com/torvalds/linux/blob/master/include/uapi/linux/rtnetlink.h)   * [Go Unix constants](https://pkg.go.dev/golang.org/x/sys/unix?utm_source=gopls#pkg-constants)  Typical values types:      * `redirect`   * `kernel`   * `boot`   * `static`   * `dhcp`   * `bgp`   * `bird`   * `ospf`   * `rip`   * `zebra`
	Protocol *string `json:"protocol,omitempty"`
	// priority of the route
	Metric *int32 `json:"metric,omitempty"`
	Scope  *Scope `json:"scope,omitempty"`
	// IPv4 or IPv6 address
	Prefsrc *net.IP `json:"prefsrc,omitempty"`
	// Route flags
	Flags *[]string `json:"flags,omitempty"`
	// Route table ID. Typical values for table IDs  mapping can be found in `/etc/iproute2/rt_tables`:      255 local     254 main     253 default     0 unspec  Reference: [IP Route manpage](https://man7.org/linux/man-pages/man8/ip-route.8.html)
	Table *uint32 `json:"table,omitempty"`
}

Route IP L3 Ruote entry

func NewRoute

func NewRoute(dst string) *Route

NewRoute instantiates a new Route object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRouteWithDefaults

func NewRouteWithDefaults() *Route

NewRouteWithDefaults instantiates a new Route object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Route) GetDev

func (o *Route) GetDev() string

GetDev returns the Dev field value if set, zero value otherwise.

func (*Route) GetDevOk

func (o *Route) GetDevOk() (*string, bool)

GetDevOk returns a tuple with the Dev field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Route) GetDst

func (o *Route) GetDst() string

GetDst returns the Dst field value

func (*Route) GetDstOk

func (o *Route) GetDstOk() (*string, bool)

GetDstOk returns a tuple with the Dst field value and a boolean to check if the value has been set.

func (*Route) GetFlags

func (o *Route) GetFlags() []string

GetFlags returns the Flags field value if set, zero value otherwise.

func (*Route) GetFlagsOk

func (o *Route) GetFlagsOk() (*[]string, bool)

GetFlagsOk returns a tuple with the Flags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Route) GetGateway

func (o *Route) GetGateway() string

GetGateway returns the Gateway field value if set, zero value otherwise.

func (*Route) GetGatewayOk

func (o *Route) GetGatewayOk() (*string, bool)

GetGatewayOk returns a tuple with the Gateway field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Route) GetId

func (o *Route) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Route) GetIdOk

func (o *Route) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Route) GetMetric

func (o *Route) GetMetric() int32

GetMetric returns the Metric field value if set, -1 otherwise.

func (*Route) GetMetricOk

func (o *Route) GetMetricOk() (*int32, bool)

GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Route) GetPrefsrc

func (o *Route) GetPrefsrc() string

GetPrefsrc returns the Prefsrc field value if set, zero value otherwise.

func (*Route) GetPrefsrcOk

func (o *Route) GetPrefsrcOk() (*string, bool)

GetPrefsrcOk returns a tuple with the Prefsrc field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Route) GetProtocol

func (o *Route) GetProtocol() string

GetProtocol returns the Protocol field value if set, zero value otherwise.

func (*Route) GetProtocolOk

func (o *Route) GetProtocolOk() (*string, bool)

GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Route) GetScope

func (o *Route) GetScope() Scope

GetScope returns the Scope field value if set, zero value otherwise.

func (*Route) GetScopeOk

func (o *Route) GetScopeOk() (*Scope, bool)

GetScopeOk returns a tuple with the Scope field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Route) GetTable

func (o *Route) GetTable() uint32

GetTable returns the Table field value if set, 254 (main) otherwise.

func (*Route) GetTableOk

func (o *Route) GetTableOk() (*uint32, bool)

GetTableOk returns a tuple with the Table field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Route) HasDev

func (o *Route) HasDev() bool

HasDev returns a boolean if a field has been set.

func (*Route) HasFlags

func (o *Route) HasFlags() bool

HasFlags returns a boolean if a field has been set.

func (*Route) HasGateway

func (o *Route) HasGateway() bool

HasGateway returns a boolean if a field has been set.

func (*Route) HasId

func (o *Route) HasId() bool

HasId returns a boolean if a field has been set.

func (*Route) HasMetric

func (o *Route) HasMetric() bool

HasMetric returns a boolean if a field has been set.

func (*Route) HasPrefsrc

func (o *Route) HasPrefsrc() bool

HasPrefsrc returns a boolean if a field has been set.

func (*Route) HasProtocol

func (o *Route) HasProtocol() bool

HasProtocol returns a boolean if a field has been set.

func (*Route) HasScope

func (o *Route) HasScope() bool

HasScope returns a boolean if a field has been set.

func (*Route) HasTable

func (o *Route) HasTable() bool

HasTable returns a boolean if a field has been set.

func (Route) MarshalJSON

func (o Route) MarshalJSON() ([]byte, error)

func (*Route) SetDev

func (o *Route) SetDev(v string)

SetDev gets a reference to the given string and assigns it to the Dev field.

func (*Route) SetDst

func (o *Route) SetDst(v string)

SetDst sets field value

func (*Route) SetFlags

func (o *Route) SetFlags(v []string)

SetFlags gets a reference to the given []string and assigns it to the Flags field.

func (*Route) SetGateway

func (o *Route) SetGateway(v string)

SetGateway gets a reference to the given string and assigns it to the Gateway field.

func (*Route) SetId

func (o *Route) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Route) SetMetric

func (o *Route) SetMetric(v int32)

SetMetric gets a reference to the given int32 and assigns it to the Metric field.

func (*Route) SetPrefsrc

func (o *Route) SetPrefsrc(v string)

SetPrefsrc gets a reference to the given string and assigns it to the Prefsrc field.

func (*Route) SetProtocol

func (o *Route) SetProtocol(v string)

SetProtocol gets a reference to the given string and assigns it to the Protocol field.

func (*Route) SetScope

func (o *Route) SetScope(v Scope)

SetScope gets a reference to the given Scope and assigns it to the Scope field.

func (*Route) SetTable

func (o *Route) SetTable(v uint32)

SetTable gets a reference to the given uint32 and assigns it to the Table field.

type Router

type Router interface {
	Routes() Routes
}

Router defines the required methods for retrieving api routes

func NewNetworkApiController

func NewNetworkApiController(s NetworkApiServicer) Router

NewNetworkApiController creates a default api controller

func NewSystemApiController

func NewSystemApiController(s SystemApiServicer) Router

NewSystemApiController creates a default api controller

type Routes

type Routes []HTTPRoute

Routes are a collection of defined api endpoints

type Rule

type Rule struct {
	Priority          *int    `json:"priority,omitempty"`
	Family            *int    `json:"family,omitempty"`
	Not               *bool   `json:"not,omitempty"`
	Src               *string `json:"src,omitempty"`
	Srclen            *int    `json:"srclen,omitempty"`
	Dst               *string `json:"dst,omitempty"`
	Dstlen            *int    `json:"dstlen,omitempty"`
	Tos               *int    `json:"tos,omitempty"`
	Iif               *string `json:"iif,omitempty"`
	Oif               *string `json:"oif,omitempty"`
	Ipproto           *string `json:"ipproto,omitempty"`
	Sport             *int    `json:"sport,omitempty"`
	Dport             *int    `json:"dport,omitempty"`
	SportStart        *int    `json:"sport_start,omitempty"`
	DportStart        *int    `json:"dport_start,omitempty"`
	SportEnd          *int    `json:"sport_end,omitempty"`
	DportEnd          *int    `json:"dport_end,omitempty"`
	Table             *int    `json:"table,omitempty"`
	SuppressPrefixlen *int    `json:"suppress_prefixlen,omitempty"`
	SuppressIfgroup   *int    `json:"suppress_ifgroup,omitempty"`
	Masquerade        *string `json:"masquerade,omitempty"`
	Protocol          *string `json:"protocol,omitempty"`
	Mark              *int    `json:"mark,omitempty"`
	Mask              *int    `json:"mask,omitempty"`
	Tunid             *uint   `json:"tunid,omitempty"`
	Goto              *int    `json:"goto,omitempty"`
	Flow              *int    `json:"flow,omitempty"`
}

Rule IP Rule

func NewRule

func NewRule() *Rule

NewRule instantiates a new Rule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRuleWithDefaults

func NewRuleWithDefaults() *Rule

NewRuleWithDefaults instantiates a new Rule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Rule) GetDport

func (o *Rule) GetDport() int

GetDport returns the Dport field value if set, -1 otherwise.

func (*Rule) GetDportEnd

func (o *Rule) GetDportEnd() int

GetDportEnd returns the DportEnd field value if set, -1 otherwise.

func (*Rule) GetDportEndOk

func (o *Rule) GetDportEndOk() (*int, bool)

GetDportEndOk returns a tuple with the DportEnd field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetDportOk

func (o *Rule) GetDportOk() (*int, bool)

GetDportOk returns a tuple with the Dport field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetDportStart

func (o *Rule) GetDportStart() int

GetDportStart returns the DportStart field value if set, -1 otherwise.

func (*Rule) GetDportStartOk

func (o *Rule) GetDportStartOk() (*int, bool)

GetDportStartOk returns a tuple with the DportStart field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetDst

func (o *Rule) GetDst() string

GetDst returns the Dst field value if set, zero value otherwise.

func (*Rule) GetDstOk

func (o *Rule) GetDstOk() (*string, bool)

GetDstOk returns a tuple with the Dst field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetDstlen

func (o *Rule) GetDstlen() int

GetDstlen returns the Dstlen field value if set, -1 otherwise.

func (*Rule) GetDstlenOk

func (o *Rule) GetDstlenOk() (*int, bool)

GetDstlenOk returns a tuple with the Dstlen field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetFamily

func (o *Rule) GetFamily() int

GetFamily returns the Family field value if set, -1 otherwise.

func (*Rule) GetFamilyOk

func (o *Rule) GetFamilyOk() (*int, bool)

GetFamilyOk returns a tuple with the Family field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetFlow

func (o *Rule) GetFlow() int

GetFlow returns the Flow field value if set, -1 otherwise.

func (*Rule) GetFlowOk

func (o *Rule) GetFlowOk() (*int, bool)

GetFlowOk returns a tuple with the Flow field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetGoto

func (o *Rule) GetGoto() int

GetGoto returns the Goto field value if set, -1 otherwise.

func (*Rule) GetGotoOk

func (o *Rule) GetGotoOk() (*int, bool)

GetGotoOk returns a tuple with the Goto field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetIif

func (o *Rule) GetIif() string

GetIif returns the Iif field value if set, zero value otherwise.

func (*Rule) GetIifOk

func (o *Rule) GetIifOk() (*string, bool)

GetIifOk returns a tuple with the Iif field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetIpproto

func (o *Rule) GetIpproto() string

GetIpproto returns the Ipproto field value if set, zero value otherwise.

func (*Rule) GetIpprotoOk

func (o *Rule) GetIpprotoOk() (*string, bool)

GetIpprotoOk returns a tuple with the Ipproto field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetMark

func (o *Rule) GetMark() int

GetMark returns the Mark field value if set, -1 otherwise.

func (*Rule) GetMarkOk

func (o *Rule) GetMarkOk() (*int, bool)

GetMarkOk returns a tuple with the Mark field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetMask

func (o *Rule) GetMask() int

GetMask returns the Mask field value if set, -1 otherwise.

func (*Rule) GetMaskOk

func (o *Rule) GetMaskOk() (*int, bool)

GetMaskOk returns a tuple with the Mask field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetMasquerade

func (o *Rule) GetMasquerade() string

GetMasquerade returns the Masquerade field value if set, zero value otherwise.

func (*Rule) GetMasqueradeOk

func (o *Rule) GetMasqueradeOk() (*string, bool)

GetMasqueradeOk returns a tuple with the Masquerade field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetNot

func (o *Rule) GetNot() bool

GetNot returns the Not field value if set, zero value otherwise.

func (*Rule) GetNotOk

func (o *Rule) GetNotOk() (*bool, bool)

GetNotOk returns a tuple with the Not field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetOif

func (o *Rule) GetOif() string

GetOif returns the Oif field value if set, zero value otherwise.

func (*Rule) GetOifOk

func (o *Rule) GetOifOk() (*string, bool)

GetOifOk returns a tuple with the Oif field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetPriority

func (o *Rule) GetPriority() int

GetPriority returns the Priority field value if set, -1 otherwise.

func (*Rule) GetPriorityOk

func (o *Rule) GetPriorityOk() (*int, bool)

GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetProtocol

func (o *Rule) GetProtocol() string

GetProtocol returns the Protocol field value if set, zero value otherwise.

func (*Rule) GetProtocolOk

func (o *Rule) GetProtocolOk() (*string, bool)

GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetSport

func (o *Rule) GetSport() int

GetSport returns the Sport field value if set, -1 otherwise.

func (*Rule) GetSportEnd

func (o *Rule) GetSportEnd() int

GetSportEnd returns the SportEnd field value if set, -1 otherwise.

func (*Rule) GetSportEndOk

func (o *Rule) GetSportEndOk() (*int, bool)

GetSportEndOk returns a tuple with the SportEnd field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetSportOk

func (o *Rule) GetSportOk() (*int, bool)

GetSportOk returns a tuple with the Sport field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetSportStart

func (o *Rule) GetSportStart() int

GetSportStart returns the SportStart field value if set, -1 otherwise.

func (*Rule) GetSportStartOk

func (o *Rule) GetSportStartOk() (*int, bool)

GetSportStartOk returns a tuple with the SportStart field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetSrc

func (o *Rule) GetSrc() string

GetSrc returns the Src field value if set, zero value otherwise.

func (*Rule) GetSrcOk

func (o *Rule) GetSrcOk() (*string, bool)

GetSrcOk returns a tuple with the Src field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetSrclen

func (o *Rule) GetSrclen() int

GetSrclen returns the Srclen field value if set, -1 otherwise.

func (*Rule) GetSrclenOk

func (o *Rule) GetSrclenOk() (*int, bool)

GetSrclenOk returns a tuple with the Srclen field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetSuppressIfgroup

func (o *Rule) GetSuppressIfgroup() int

GetSuppressIfgroup returns the SuppressIfgroup field value if set, -1 otherwise.

func (*Rule) GetSuppressIfgroupOk

func (o *Rule) GetSuppressIfgroupOk() (*int, bool)

GetSuppressIfgroupOk returns a tuple with the SuppressIfgroup field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetSuppressPrefixlen

func (o *Rule) GetSuppressPrefixlen() int

GetSuppressPrefixlen returns the SuppressPrefixlen field value if set, -1 otherwise.

func (*Rule) GetSuppressPrefixlenOk

func (o *Rule) GetSuppressPrefixlenOk() (*int, bool)

GetSuppressPrefixlenOk returns a tuple with the SuppressPrefixlen field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetTable

func (o *Rule) GetTable() int

GetTable returns the Table field value if set, -1 otherwise.

func (*Rule) GetTableOk

func (o *Rule) GetTableOk() (*int, bool)

GetTableOk returns a tuple with the Table field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetTos

func (o *Rule) GetTos() int

GetTos returns the Tos field value if set, -1 otherwise.

func (*Rule) GetTosOk

func (o *Rule) GetTosOk() (*int, bool)

GetTosOk returns a tuple with the Tos field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) GetTunid

func (o *Rule) GetTunid() uint

GetTunid returns the Tunid field value if set, -1 otherwise.

func (*Rule) GetTunidOk

func (o *Rule) GetTunidOk() (*uint, bool)

GetTunidOk returns a tuple with the Tunid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Rule) HasDport

func (o *Rule) HasDport() bool

HasDport returns a boolean if a field has been set.

func (*Rule) HasDportEnd

func (o *Rule) HasDportEnd() bool

HasDportEnd returns a boolean if a field has been set.

func (*Rule) HasDportStart

func (o *Rule) HasDportStart() bool

HasDportStart returns a boolean if a field has been set.

func (*Rule) HasDst

func (o *Rule) HasDst() bool

HasDst returns a boolean if a field has been set.

func (*Rule) HasDstlen

func (o *Rule) HasDstlen() bool

HasDstlen returns a boolean if a field has been set.

func (*Rule) HasFamily

func (o *Rule) HasFamily() bool

HasFamily returns a boolean if a field has been set.

func (*Rule) HasFlow

func (o *Rule) HasFlow() bool

HasFlow returns a boolean if a field has been set.

func (*Rule) HasGoto

func (o *Rule) HasGoto() bool

HasGoto returns a boolean if a field has been set.

func (*Rule) HasIif

func (o *Rule) HasIif() bool

HasIif returns a boolean if a field has been set.

func (*Rule) HasIpproto

func (o *Rule) HasIpproto() bool

HasIpproto returns a boolean if a field has been set.

func (*Rule) HasMark

func (o *Rule) HasMark() bool

HasMark returns a boolean if a field has been set.

func (*Rule) HasMask

func (o *Rule) HasMask() bool

HasMask returns a boolean if a field has been set.

func (*Rule) HasMasquerade

func (o *Rule) HasMasquerade() bool

HasMasquerade returns a boolean if a field has been set.

func (*Rule) HasNot

func (o *Rule) HasNot() bool

HasNot returns a boolean if a field has been set.

func (*Rule) HasOif

func (o *Rule) HasOif() bool

HasOif returns a boolean if a field has been set.

func (*Rule) HasPriority

func (o *Rule) HasPriority() bool

HasPriority returns a boolean if a field has been set.

func (*Rule) HasProtocol

func (o *Rule) HasProtocol() bool

HasProtocol returns a boolean if a field has been set.

func (*Rule) HasSport

func (o *Rule) HasSport() bool

HasSport returns a boolean if a field has been set.

func (*Rule) HasSportEnd

func (o *Rule) HasSportEnd() bool

HasSportEnd returns a boolean if a field has been set.

func (*Rule) HasSportStart

func (o *Rule) HasSportStart() bool

HasSportStart returns a boolean if a field has been set.

func (*Rule) HasSrc

func (o *Rule) HasSrc() bool

HasSrc returns a boolean if a field has been set.

func (*Rule) HasSrclen

func (o *Rule) HasSrclen() bool

HasSrclen returns a boolean if a field has been set.

func (*Rule) HasSuppressIfgroup

func (o *Rule) HasSuppressIfgroup() bool

HasSuppressIfgroup returns a boolean if a field has been set.

func (*Rule) HasSuppressPrefixlen

func (o *Rule) HasSuppressPrefixlen() bool

HasSuppressPrefixlen returns a boolean if a field has been set.

func (*Rule) HasTable

func (o *Rule) HasTable() bool

HasTable returns a boolean if a field has been set.

func (*Rule) HasTos

func (o *Rule) HasTos() bool

HasTos returns a boolean if a field has been set.

func (*Rule) HasTunid

func (o *Rule) HasTunid() bool

HasTunid returns a boolean if a field has been set.

func (Rule) MarshalJSON

func (o Rule) MarshalJSON() ([]byte, error)

func (*Rule) SetDport

func (o *Rule) SetDport(v int)

SetDport gets a reference to the given int and assigns it to the Dport field.

func (*Rule) SetDportEnd

func (o *Rule) SetDportEnd(v int)

SetDportEnd gets a reference to the given int and assigns it to the DportEnd field.

func (*Rule) SetDportStart

func (o *Rule) SetDportStart(v int)

SetDportStart gets a reference to the given int and assigns it to the DportStart field.

func (*Rule) SetDst

func (o *Rule) SetDst(v string)

SetDst gets a reference to the given string and assigns it to the Dst field.

func (*Rule) SetDstlen

func (o *Rule) SetDstlen(v int)

SetDstlen gets a reference to the given int and assigns it to the Dstlen field.

func (*Rule) SetFamily

func (o *Rule) SetFamily(v int)

SetFamily gets a reference to the given int and assigns it to the Family field.

func (*Rule) SetFlow

func (o *Rule) SetFlow(v int)

SetFlow gets a reference to the given int and assigns it to the Flow field.

func (*Rule) SetGoto

func (o *Rule) SetGoto(v int)

SetGoto gets a reference to the given int and assigns it to the Goto field.

func (*Rule) SetIif

func (o *Rule) SetIif(v string)

SetIif gets a reference to the given string and assigns it to the Iif field.

func (*Rule) SetIpproto

func (o *Rule) SetIpproto(v string)

SetIpproto gets a reference to the given string and assigns it to the Ipproto field.

func (*Rule) SetMark

func (o *Rule) SetMark(v int)

SetMark gets a reference to the given int and assigns it to the Mark field.

func (*Rule) SetMask

func (o *Rule) SetMask(v int)

SetMask gets a reference to the given int and assigns it to the Mask field.

func (*Rule) SetMasquerade

func (o *Rule) SetMasquerade(v string)

SetMasquerade gets a reference to the given string and assigns it to the Masquerade field.

func (*Rule) SetNot

func (o *Rule) SetNot(v bool)

SetNot gets a reference to the given bool and assigns it to the Not field.

func (*Rule) SetOif

func (o *Rule) SetOif(v string)

SetOif gets a reference to the given string and assigns it to the Oif field.

func (*Rule) SetPriority

func (o *Rule) SetPriority(v int)

SetPriority gets a reference to the given int and assigns it to the Priority field.

func (*Rule) SetProtocol

func (o *Rule) SetProtocol(v string)

SetProtocol gets a reference to the given string and assigns it to the Protocol field.

func (*Rule) SetSport

func (o *Rule) SetSport(v int)

SetSport gets a reference to the given int and assigns it to the Sport field.

func (*Rule) SetSportEnd

func (o *Rule) SetSportEnd(v int)

SetSportEnd gets a reference to the given int and assigns it to the SportEnd field.

func (*Rule) SetSportStart

func (o *Rule) SetSportStart(v int)

SetSportStart gets a reference to the given int and assigns it to the SportStart field.

func (*Rule) SetSrc

func (o *Rule) SetSrc(v string)

SetSrc gets a reference to the given string and assigns it to the Src field.

func (*Rule) SetSrclen

func (o *Rule) SetSrclen(v int)

SetSrclen gets a reference to the given int and assigns it to the Srclen field.

func (*Rule) SetSuppressIfgroup

func (o *Rule) SetSuppressIfgroup(v int)

SetSuppressIfgroup gets a reference to the given int and assigns it to the SuppressIfgroup field.

func (*Rule) SetSuppressPrefixlen

func (o *Rule) SetSuppressPrefixlen(v int)

SetSuppressPrefixlen gets a reference to the given int and assigns it to the SuppressPrefixlen field.

func (*Rule) SetTable

func (o *Rule) SetTable(v int)

SetTable gets a reference to the given int and assigns it to the Table field.

func (*Rule) SetTos

func (o *Rule) SetTos(v int)

SetTos gets a reference to the given int and assigns it to the Tos field.

func (*Rule) SetTunid

func (o *Rule) SetTunid(v uint)

SetTunid gets a reference to the given int and assigns it to the Tunid field.

type Scope

type Scope string

Scope scope of the object

const (
	LINK     Scope = "link"
	GLOBAL   Scope = "global"
	UNIVERSE Scope = "universe"
	SITE     Scope = "site"
	NOWHERE  Scope = "nowhere"
)

List of scope

func (Scope) Ptr

func (v Scope) Ptr() *Scope

Ptr returns reference to scope value

func (*Scope) UnmarshalJSON

func (v *Scope) UnmarshalJSON(src []byte) error

type SystemApiController

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

A SystemApiController binds http requests to an api service and writes the service results to the http response

func (*SystemApiController) ConfigGet

func (c *SystemApiController) ConfigGet(w http.ResponseWriter, r *http.Request)

ConfigGet - Get current live configuration

func (*SystemApiController) ConfigPatch

func (c *SystemApiController) ConfigPatch(w http.ResponseWriter, r *http.Request)

ConfigPatch - Patch existing configuration with new one

func (*SystemApiController) ConfigSet

func (c *SystemApiController) ConfigSet(w http.ResponseWriter, r *http.Request)

ConfigSet - Replace existing configuration with new one

func (*SystemApiController) PersistConfig

func (c *SystemApiController) PersistConfig(w http.ResponseWriter, r *http.Request)

PersistConfig - Persist live configuration

func (*SystemApiController) ResetConfig

func (c *SystemApiController) ResetConfig(w http.ResponseWriter, r *http.Request)

ResetConfig - Reload persisted configuration back

func (*SystemApiController) Routes

func (c *SystemApiController) Routes() Routes

Routes returns all of the api route for the SystemApiController

type SystemApiRouter

type SystemApiRouter interface {
	ConfigGet(http.ResponseWriter, *http.Request)
	ConfigPatch(http.ResponseWriter, *http.Request)
	ConfigSet(http.ResponseWriter, *http.Request)
	PersistConfig(http.ResponseWriter, *http.Request)
	ResetConfig(http.ResponseWriter, *http.Request)
}

SystemApiRouter defines the required methods for binding the api requests to a responses for the SystemApi The SystemApiRouter implementation should parse necessary information from the http request, pass the data to a SystemApiServicer to perform the required actions, then write the service results to the http response.

type SystemApiService

type SystemApiService struct {
	Conf Config
}

SystemApiService is a service that implents the logic for the SystemApiServicer This service should implement the business logic for every endpoint for the SystemApi API. Include any external packages or services that will be required by this service.

func (*SystemApiService) ConfigGet

func (s *SystemApiService) ConfigGet(ctx context.Context) (ImplResponse, error)

ConfigGet - Get current live configuration

func (*SystemApiService) ConfigGet_Impl

func (s *SystemApiService) ConfigGet_Impl(ctx context.Context) (ImplResponse, error)

ConfigGet - Get current live configuration

func (*SystemApiService) ConfigPatch

func (s *SystemApiService) ConfigPatch(ctx context.Context, config Config) (ImplResponse, error)

ConfigPatch - Patch existing configuration with new one

func (*SystemApiService) ConfigPatch_Impl

func (s *SystemApiService) ConfigPatch_Impl(ctx context.Context, config Config) (ImplResponse, error)

ConfigPatch - Patch existing configuration with new one

func (*SystemApiService) ConfigSet

func (s *SystemApiService) ConfigSet(ctx context.Context, config Config) (ImplResponse, error)

ConfigSet - Replace existing configuration with new one

func (*SystemApiService) ConfigSet_Impl

func (s *SystemApiService) ConfigSet_Impl(ctx context.Context, config Config) (ImplResponse, error)

ConfigSet - Replace existing configuration with new one

func (*SystemApiService) PersistConfig

func (s *SystemApiService) PersistConfig(ctx context.Context) (ImplResponse, error)

PersistConfig - Persist live configuration

func (*SystemApiService) PersistConfig_Impl

func (s *SystemApiService) PersistConfig_Impl(ctx context.Context) (ImplResponse, error)

PersistConfig - Persist live configuration

func (*SystemApiService) ResetConfig

func (s *SystemApiService) ResetConfig(ctx context.Context) (ImplResponse, error)

ResetConfig - Reload persisted configuration back

func (*SystemApiService) ResetConfig_Impl

func (s *SystemApiService) ResetConfig_Impl(ctx context.Context) (ImplResponse, error)

ResetConfig - Reload persisted configuration back

type SystemApiServicer

type SystemApiServicer interface {
	ConfigGet(context.Context) (ImplResponse, error)
	ConfigPatch(context.Context, Config) (ImplResponse, error)
	ConfigSet(context.Context, Config) (ImplResponse, error)
	PersistConfig(context.Context) (ImplResponse, error)
	ResetConfig(context.Context) (ImplResponse, error)
}

SystemApiServicer defines the api actions for the SystemApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.

func NewSystemApiService

func NewSystemApiService() SystemApiServicer

NewSystemApiService creates a default api service

type Unmanaged

type Unmanaged struct {
	// Resource type
	Type *string `json:"type,omitempty"`
	// ID of the resource to ignore
	Id *string `json:"id,omitempty"`
}

Unmanaged Unmanaged Resource For link type resources, the related context (routes or DHCP) are also unmanaged

func NewUnmanaged

func NewUnmanaged() *Unmanaged

NewUnmanaged instantiates a new Unmanaged object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUnmanagedWithDefaults

func NewUnmanagedWithDefaults() *Unmanaged

NewUnmanagedWithDefaults instantiates a new Unmanaged object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Unmanaged) GetId

func (o *Unmanaged) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Unmanaged) GetIdOk

func (o *Unmanaged) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Unmanaged) GetType

func (o *Unmanaged) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*Unmanaged) GetTypeOk

func (o *Unmanaged) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Unmanaged) HasId

func (o *Unmanaged) HasId() bool

HasId returns a boolean if a field has been set.

func (*Unmanaged) HasType

func (o *Unmanaged) HasType() bool

HasType returns a boolean if a field has been set.

func (Unmanaged) MarshalJSON

func (o Unmanaged) MarshalJSON() ([]byte, error)

func (*Unmanaged) SetId

func (o *Unmanaged) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Unmanaged) SetType

func (o *Unmanaged) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

Jump to

Keyboard shortcuts

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