Documentation ¶
Index ¶
- Variables
- func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error
- func Logger(inner http.Handler, name string) http.Handler
- func NewAttributeDoesntBelongToLinkKindSemanticError(attribKey string, infoKind string) error
- func NewMissingRequiredAttributeForLinkKindSemanticError(attribKey string, infoKind string) error
- func NewRouter(routers ...Router) *mux.Router
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error)
- type Config
- func (o *Config) GetGlobal() Global
- func (o *Config) GetGlobalOk() (*Global, bool)
- func (o *Config) GetNetwork() Network
- func (o *Config) GetNetworkOk() (*Network, bool)
- func (o *Config) HasGlobal() bool
- func (o *Config) HasNetwork() bool
- func (c *Config) LoadConfig(conffile *string) error
- func (o Config) MarshalJSON() ([]byte, error)
- func (c *Config) Persist() error
- func (o *Config) SetGlobal(v Global)
- func (o *Config) SetNetwork(v Network)
- type Dhcp
- type DiscriminatedInfoData
- type DiscriminatedLinkInfo
- type Dns
- type Dnsid
- type Global
- func (o *Global) GetCfgPath() string
- func (o *Global) GetCfgPathOk() (*string, bool)
- func (o *Global) GetLogLev() string
- func (o *Global) GetLogLevOk() (*string, bool)
- func (o *Global) GetMgmt() GlobalMgmt
- func (o *Global) GetMgmtOk() (*GlobalMgmt, bool)
- func (o *Global) HasCfgPath() bool
- func (o *Global) HasLogLev() bool
- func (o *Global) HasMgmt() bool
- func (o Global) MarshalJSON() ([]byte, error)
- func (o *Global) SetCfgPath(v string)
- func (o *Global) SetLogLev(v string)
- func (o *Global) SetMgmt(v GlobalMgmt)
- type GlobalMgmt
- func (o *GlobalMgmt) GetHost() string
- func (o *GlobalMgmt) GetHostOk() (*string, bool)
- func (o *GlobalMgmt) GetPort() int32
- func (o *GlobalMgmt) GetPortOk() (*int32, bool)
- func (o *GlobalMgmt) HasHost() bool
- func (o *GlobalMgmt) HasPort() bool
- func (o GlobalMgmt) MarshalJSON() ([]byte, error)
- func (o *GlobalMgmt) SetHost(v string)
- func (o *GlobalMgmt) SetPort(v int32)
- type HTTPRoute
- type ImplResponse
- func DeleteErrorResponse(err error, body interface{}) (ImplResponse, error)
- func GetErrorResponse(err error, body interface{}) (ImplResponse, error)
- func PatchErrorResponse(err error, body interface{}) (ImplResponse, error)
- func PostErrorResponse(err error, body interface{}) (ImplResponse, error)
- func PutErrorResponse(err error, body interface{}) (ImplResponse, error)
- func Response(code int, body interface{}) ImplResponse
- type Link
- func (o *Link) GetAddrInfo() []LinkAddrInfo
- func (o *Link) GetAddrInfoOk() (*[]LinkAddrInfo, bool)
- func (o *Link) GetAddress() string
- func (o *Link) GetAddressOk() (*string, bool)
- func (o *Link) GetFlags() []LinkFlag
- func (o *Link) GetFlagsOk() (*[]LinkFlag, bool)
- func (o *Link) GetGroup() string
- func (o *Link) GetGroupOk() (*string, bool)
- func (o *Link) GetIfindex() int32
- func (o *Link) GetIfindexOk() (*int32, bool)
- func (o *Link) GetIfname() string
- func (o *Link) GetIfnameOk() (*string, bool)
- func (o *Link) GetLink() string
- func (o *Link) GetLinkOk() (*string, bool)
- func (o *Link) GetLinkType() string
- func (o *Link) GetLinkTypeOk() (*string, bool)
- func (o *Link) GetLinkinfo() LinkLinkinfo
- func (o *Link) GetLinkinfoOk() (*LinkLinkinfo, bool)
- func (o *Link) GetLinkmode() string
- func (o *Link) GetLinkmodeOk() (*string, bool)
- func (o *Link) GetMaster() string
- func (o *Link) GetMasterOk() (*string, bool)
- func (o *Link) GetMtu() int32
- func (o *Link) GetMtuOk() (*int32, bool)
- func (o *Link) GetOperstate() string
- func (o *Link) GetOperstateOk() (*string, bool)
- func (o *Link) GetPromiscuity() int32
- func (o *Link) GetPromiscuityOk() (*int32, bool)
- func (o *Link) HasAddrInfo() bool
- func (o *Link) HasAddress() bool
- func (o *Link) HasFlags() bool
- func (o *Link) HasGroup() bool
- func (o *Link) HasIfindex() bool
- func (o *Link) HasLink() bool
- func (o *Link) HasLinkinfo() bool
- func (o *Link) HasLinkmode() bool
- func (o *Link) HasMaster() bool
- func (o *Link) HasMtu() bool
- func (o *Link) HasOperstate() bool
- func (o *Link) HasPromiscuity() bool
- func (o Link) MarshalJSON() ([]byte, error)
- func (o *Link) SetAddrInfo(v []LinkAddrInfo)
- func (o *Link) SetAddress(v string)
- func (o *Link) SetFlags(v []LinkFlag)
- func (o *Link) SetGroup(v string)
- func (o *Link) SetIfindex(v int32)
- func (o *Link) SetIfname(v string)
- func (o *Link) SetLink(v string)
- func (o *Link) SetLinkType(v string)
- func (o *Link) SetLinkinfo(v LinkLinkinfo)
- func (o *Link) SetLinkmode(v string)
- func (o *Link) SetMaster(v string)
- func (o *Link) SetMtu(v int32)
- func (o *Link) SetOperstate(v string)
- func (o *Link) SetPromiscuity(v int32)
- type LinkAddrInfo
- func (o *LinkAddrInfo) GetAddress() string
- func (o *LinkAddrInfo) GetAddressOk() (*string, bool)
- func (o *LinkAddrInfo) GetBroadcast() string
- func (o *LinkAddrInfo) GetBroadcastOk() (*string, bool)
- func (o *LinkAddrInfo) GetLocal() string
- func (o *LinkAddrInfo) GetLocalOk() (*string, bool)
- func (o *LinkAddrInfo) GetPrefixlen() int32
- func (o *LinkAddrInfo) GetPrefixlenOk() (*int32, bool)
- func (o *LinkAddrInfo) HasAddress() bool
- func (o *LinkAddrInfo) HasBroadcast() bool
- func (o LinkAddrInfo) MarshalJSON() ([]byte, error)
- func (o *LinkAddrInfo) SetAddress(v string)
- func (o *LinkAddrInfo) SetBroadcast(v string)
- func (o *LinkAddrInfo) SetLocal(v string)
- func (o *LinkAddrInfo) SetPrefixlen(v int32)
- type LinkFlag
- type LinkLinkinfo
- func (o *LinkLinkinfo) GetInfoData() LinkLinkinfoInfoData
- func (o *LinkLinkinfo) GetInfoDataOk() (*LinkLinkinfoInfoData, bool)
- func (o *LinkLinkinfo) GetInfoKind() string
- func (o *LinkLinkinfo) GetInfoKindOk() (*string, bool)
- func (o *LinkLinkinfo) GetInfoSlaveData() LinkLinkinfoInfoSlaveData
- func (o *LinkLinkinfo) GetInfoSlaveDataOk() (*LinkLinkinfoInfoSlaveData, bool)
- func (o *LinkLinkinfo) GetInfoSlaveKind() string
- func (o *LinkLinkinfo) GetInfoSlaveKindOk() (*string, bool)
- func (o *LinkLinkinfo) HasInfoData() bool
- func (o *LinkLinkinfo) HasInfoKind() bool
- func (o *LinkLinkinfo) HasInfoSlaveData() bool
- func (o *LinkLinkinfo) HasInfoSlaveKind() bool
- func (o LinkLinkinfo) MarshalJSON() ([]byte, error)
- func (o *LinkLinkinfo) SetInfoData(v LinkLinkinfoInfoData)
- func (o *LinkLinkinfo) SetInfoKind(v string)
- func (o *LinkLinkinfo) SetInfoSlaveData(v LinkLinkinfoInfoSlaveData)
- func (o *LinkLinkinfo) SetInfoSlaveKind(v string)
- func (v *LinkLinkinfo) Validate() error
- type LinkLinkinfoInfoData
- func (o *LinkLinkinfoInfoData) GetAdLacpRate() string
- func (o *LinkLinkinfoInfoData) GetAdLacpRateOk() (*string, bool)
- func (o *LinkLinkinfoInfoData) GetAdSelect() string
- func (o *LinkLinkinfoInfoData) GetAdSelectOk() (*string, bool)
- func (o *LinkLinkinfoInfoData) GetAllSlavesActive() int32
- func (o *LinkLinkinfoInfoData) GetAllSlavesActiveOk() (*int32, bool)
- func (o *LinkLinkinfoInfoData) GetArpAllTargets() string
- func (o *LinkLinkinfoInfoData) GetArpAllTargetsOk() (*string, bool)
- func (o *LinkLinkinfoInfoData) GetArpInterval() int32
- func (o *LinkLinkinfoInfoData) GetArpIntervalOk() (*int32, bool)
- func (o *LinkLinkinfoInfoData) GetArpValidate() string
- func (o *LinkLinkinfoInfoData) GetArpValidateOk() (*string, bool)
- func (o *LinkLinkinfoInfoData) GetDowndelay() int32
- func (o *LinkLinkinfoInfoData) GetDowndelayOk() (*int32, bool)
- func (o *LinkLinkinfoInfoData) GetFailOverMac() string
- func (o *LinkLinkinfoInfoData) GetFailOverMacOk() (*string, bool)
- func (o *LinkLinkinfoInfoData) GetFlags() []string
- func (o *LinkLinkinfoInfoData) GetFlagsOk() (*[]string, bool)
- func (o *LinkLinkinfoInfoData) GetId() int32
- func (o *LinkLinkinfoInfoData) GetIdOk() (*int32, bool)
- func (o *LinkLinkinfoInfoData) GetLocal() string
- func (o *LinkLinkinfoInfoData) GetLocalOk() (*string, bool)
- func (o *LinkLinkinfoInfoData) GetLpInterval() int32
- func (o *LinkLinkinfoInfoData) GetLpIntervalOk() (*int32, bool)
- func (o *LinkLinkinfoInfoData) GetMiimon() int32
- func (o *LinkLinkinfoInfoData) GetMiimonOk() (*int32, bool)
- func (o *LinkLinkinfoInfoData) GetMinLinks() int32
- func (o *LinkLinkinfoInfoData) GetMinLinksOk() (*int32, bool)
- func (o *LinkLinkinfoInfoData) GetMode() string
- func (o *LinkLinkinfoInfoData) GetModeOk() (*string, bool)
- func (o *LinkLinkinfoInfoData) GetPacketsPerSlave() int32
- func (o *LinkLinkinfoInfoData) GetPacketsPerSlaveOk() (*int32, bool)
- func (o *LinkLinkinfoInfoData) GetPeerNotifyDelay() int32
- func (o *LinkLinkinfoInfoData) GetPeerNotifyDelayOk() (*int32, bool)
- func (o *LinkLinkinfoInfoData) GetPrimaryReselect() string
- func (o *LinkLinkinfoInfoData) GetPrimaryReselectOk() (*string, bool)
- func (o *LinkLinkinfoInfoData) GetProtocol() string
- func (o *LinkLinkinfoInfoData) GetProtocolOk() (*string, bool)
- func (o *LinkLinkinfoInfoData) GetRemote() string
- func (o *LinkLinkinfoInfoData) GetRemoteOk() (*string, bool)
- func (o *LinkLinkinfoInfoData) GetResendIgmp() int32
- func (o *LinkLinkinfoInfoData) GetResendIgmpOk() (*int32, bool)
- func (o *LinkLinkinfoInfoData) GetTable() uint32
- func (o *LinkLinkinfoInfoData) GetTableOk() (*uint32, bool)
- func (o *LinkLinkinfoInfoData) GetTlbDynamicLb() int32
- func (o *LinkLinkinfoInfoData) GetTlbDynamicLbOk() (*int32, bool)
- func (o *LinkLinkinfoInfoData) GetUpdelay() int32
- func (o *LinkLinkinfoInfoData) GetUpdelayOk() (*int32, bool)
- func (o *LinkLinkinfoInfoData) GetUseCarrier() int32
- func (o *LinkLinkinfoInfoData) GetUseCarrierOk() (*int32, bool)
- func (o *LinkLinkinfoInfoData) GetXmitHashPolicy() string
- func (o *LinkLinkinfoInfoData) GetXmitHashPolicyOk() (*string, bool)
- func (o *LinkLinkinfoInfoData) HasAdLacpRate() bool
- func (o *LinkLinkinfoInfoData) HasAdSelect() bool
- func (o *LinkLinkinfoInfoData) HasAllSlavesActive() bool
- func (o *LinkLinkinfoInfoData) HasArpAllTargets() bool
- func (o *LinkLinkinfoInfoData) HasArpInterval() bool
- func (o *LinkLinkinfoInfoData) HasArpValidate() bool
- func (o *LinkLinkinfoInfoData) HasDowndelay() bool
- func (o *LinkLinkinfoInfoData) HasFailOverMac() bool
- func (o *LinkLinkinfoInfoData) HasFlags() bool
- func (o *LinkLinkinfoInfoData) HasId() bool
- func (o *LinkLinkinfoInfoData) HasLocal() bool
- func (o *LinkLinkinfoInfoData) HasLpInterval() bool
- func (o *LinkLinkinfoInfoData) HasMiimon() bool
- func (o *LinkLinkinfoInfoData) HasMinLinks() bool
- func (o *LinkLinkinfoInfoData) HasMode() bool
- func (o *LinkLinkinfoInfoData) HasPacketsPerSlave() bool
- func (o *LinkLinkinfoInfoData) HasPeerNotifyDelay() bool
- func (o *LinkLinkinfoInfoData) HasPrimaryReselect() bool
- func (o *LinkLinkinfoInfoData) HasProtocol() bool
- func (o *LinkLinkinfoInfoData) HasRemote() bool
- func (o *LinkLinkinfoInfoData) HasResendIgmp() bool
- func (o *LinkLinkinfoInfoData) HasTable() bool
- func (o *LinkLinkinfoInfoData) HasTlbDynamicLb() bool
- func (o *LinkLinkinfoInfoData) HasUpdelay() bool
- func (o *LinkLinkinfoInfoData) HasUseCarrier() bool
- func (o *LinkLinkinfoInfoData) HasXmitHashPolicy() bool
- func (o LinkLinkinfoInfoData) MarshalJSON() ([]byte, error)
- func (o *LinkLinkinfoInfoData) SetAdLacpRate(v string)
- func (o *LinkLinkinfoInfoData) SetAdSelect(v string)
- func (o *LinkLinkinfoInfoData) SetAllSlavesActive(v int32)
- func (o *LinkLinkinfoInfoData) SetArpAllTargets(v string)
- func (o *LinkLinkinfoInfoData) SetArpInterval(v int32)
- func (o *LinkLinkinfoInfoData) SetArpValidate(v string)
- func (o *LinkLinkinfoInfoData) SetDowndelay(v int32)
- func (o *LinkLinkinfoInfoData) SetFailOverMac(v string)
- func (o *LinkLinkinfoInfoData) SetFlags(v []string)
- func (o *LinkLinkinfoInfoData) SetId(v int32)
- func (o *LinkLinkinfoInfoData) SetLocal(v string)
- func (o *LinkLinkinfoInfoData) SetLpInterval(v int32)
- func (o *LinkLinkinfoInfoData) SetMiimon(v int32)
- func (o *LinkLinkinfoInfoData) SetMinLinks(v int32)
- func (o *LinkLinkinfoInfoData) SetMode(v string)
- func (o *LinkLinkinfoInfoData) SetPacketsPerSlave(v int32)
- func (o *LinkLinkinfoInfoData) SetPeerNotifyDelay(v int32)
- func (o *LinkLinkinfoInfoData) SetPrimaryReselect(v string)
- func (o *LinkLinkinfoInfoData) SetProtocol(v string)
- func (o *LinkLinkinfoInfoData) SetRemote(v string)
- func (o *LinkLinkinfoInfoData) SetResendIgmp(v int32)
- func (o *LinkLinkinfoInfoData) SetTable(v uint32)
- func (o *LinkLinkinfoInfoData) SetTlbDynamicLb(v int32)
- func (o *LinkLinkinfoInfoData) SetUpdelay(v int32)
- func (o *LinkLinkinfoInfoData) SetUseCarrier(v int32)
- func (o *LinkLinkinfoInfoData) SetXmitHashPolicy(v string)
- type LinkLinkinfoInfoSlaveData
- func (o *LinkLinkinfoInfoSlaveData) GetLinkFailureCount() int32
- func (o *LinkLinkinfoInfoSlaveData) GetLinkFailureCountOk() (*int32, bool)
- func (o *LinkLinkinfoInfoSlaveData) GetMiiStatus() string
- func (o *LinkLinkinfoInfoSlaveData) GetMiiStatusOk() (*string, bool)
- func (o *LinkLinkinfoInfoSlaveData) GetPermHwaddr() string
- func (o *LinkLinkinfoInfoSlaveData) GetPermHwaddrOk() (*string, bool)
- func (o *LinkLinkinfoInfoSlaveData) GetQueueId() int32
- func (o *LinkLinkinfoInfoSlaveData) GetQueueIdOk() (*int32, bool)
- func (o *LinkLinkinfoInfoSlaveData) GetState() string
- func (o *LinkLinkinfoInfoSlaveData) GetStateOk() (*string, bool)
- func (o *LinkLinkinfoInfoSlaveData) GetTable() uint32
- func (o *LinkLinkinfoInfoSlaveData) GetTableOk() (*uint32, bool)
- func (o *LinkLinkinfoInfoSlaveData) HasLinkFailureCount() bool
- func (o *LinkLinkinfoInfoSlaveData) HasMiiStatus() bool
- func (o *LinkLinkinfoInfoSlaveData) HasPermHwaddr() bool
- func (o *LinkLinkinfoInfoSlaveData) HasQueueId() bool
- func (o *LinkLinkinfoInfoSlaveData) HasState() bool
- func (o *LinkLinkinfoInfoSlaveData) HasTable() bool
- func (o LinkLinkinfoInfoSlaveData) MarshalJSON() ([]byte, error)
- func (o *LinkLinkinfoInfoSlaveData) SetLinkFailureCount(v int32)
- func (o *LinkLinkinfoInfoSlaveData) SetMiiStatus(v string)
- func (o *LinkLinkinfoInfoSlaveData) SetPermHwaddr(v string)
- func (o *LinkLinkinfoInfoSlaveData) SetQueueId(v int32)
- func (o *LinkLinkinfoInfoSlaveData) SetState(v string)
- func (o *LinkLinkinfoInfoSlaveData) SetTable(v uint32)
- type Netns
- type Network
- func (o *Network) GetDhcp() []Dhcp
- func (o *Network) GetDhcpOk() (*[]Dhcp, bool)
- func (o *Network) GetDns() []Dns
- func (o *Network) GetDnsOk() (*[]Dns, bool)
- func (o *Network) GetLinks() []Link
- func (o *Network) GetLinksOk() (*[]Link, bool)
- func (o *Network) GetRoutes() []Route
- func (o *Network) GetRoutesOk() (*[]Route, bool)
- func (o *Network) GetRules() []Rule
- func (o *Network) GetRulesOk() (*[]Rule, bool)
- func (o *Network) GetUnmanaged() []Unmanaged
- func (o *Network) GetUnmanagedOk() (*[]Unmanaged, bool)
- func (o *Network) HasDhcp() bool
- func (o *Network) HasDns() bool
- func (o *Network) HasLinks() bool
- func (o *Network) HasRoutes() bool
- func (o *Network) HasRules() bool
- func (o *Network) HasUnmanaged() bool
- func (o Network) MarshalJSON() ([]byte, error)
- func (o *Network) SetDhcp(v []Dhcp)
- func (o *Network) SetDns(v []Dns)
- func (o *Network) SetLinks(v []Link)
- func (o *Network) SetRoutes(v []Route)
- func (o *Network) SetRules(v []Rule)
- func (o *Network) SetUnmanaged(v []Unmanaged)
- type NetworkApiController
- func (c *NetworkApiController) ConfigDHCPCreate(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigDHCPDel(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigDHCPGet(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigDHCPsGet(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigDNSCreate(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigDNSDel(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigDNSGet(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigDNSsGet(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigLinkCreate(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigLinkDel(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigLinkGet(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigLinksGet(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigRouteCreate(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigRouteDel(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigRouteGet(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigRoutesGet(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigRuleCreate(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigRuleDel(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigRuleGet(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigRulesGet(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigUnmanagedCreate(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigUnmanagedDel(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigUnmanagedGet(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) ConfigUnmanagedListGet(w http.ResponseWriter, r *http.Request)
- func (c *NetworkApiController) Routes() Routes
- type NetworkApiRouter
- type NetworkApiService
- func (s *NetworkApiService) ConfigDHCPCreate(ctx context.Context, dhcp Dhcp) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDHCPCreate_Impl(ctx context.Context, dhcp Dhcp) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDHCPDel(ctx context.Context, ifname string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDHCPDel_Impl(ctx context.Context, ifname string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDHCPGet(ctx context.Context, ifname string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDHCPGet_Impl(ctx context.Context, ifname string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDHCPsGet(ctx context.Context) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDHCPsGet_Impl(ctx context.Context) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDNSCreate(ctx context.Context, dns Dns) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDNSCreate_Impl(ctx context.Context, dns Dns) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDNSDel(ctx context.Context, dnsid Dnsid) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDNSDel_Impl(ctx context.Context, dnsid Dnsid) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDNSGet(ctx context.Context, dnsid Dnsid) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDNSGet_Impl(ctx context.Context, dnsid Dnsid) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDNSsGet(ctx context.Context) (ImplResponse, error)
- func (s *NetworkApiService) ConfigDNSsGet_Impl(ctx context.Context) (ImplResponse, error)
- func (s *NetworkApiService) ConfigLinkCreate(ctx context.Context, link Link) (ImplResponse, error)
- func (s *NetworkApiService) ConfigLinkCreate_Impl(ctx context.Context, link Link) (ImplResponse, error)
- func (s *NetworkApiService) ConfigLinkDel(ctx context.Context, ifname string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigLinkDel_Impl(ctx context.Context, ifname string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigLinkGet(ctx context.Context, ifname string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigLinkGet_Impl(ctx context.Context, ifname string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigLinksGet(ctx context.Context) (ImplResponse, error)
- func (s *NetworkApiService) ConfigLinksGet_Impl(ctx context.Context) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRouteCreate(ctx context.Context, route Route) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRouteCreate_Impl(ctx context.Context, route Route) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRouteDel(ctx context.Context, routeid string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRouteDel_Impl(ctx context.Context, routeid string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRouteGet(ctx context.Context, routeid string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRouteGet_Impl(ctx context.Context, routeid string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRoutesGet(ctx context.Context) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRoutesGet_Impl(ctx context.Context) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRuleCreate(ctx context.Context, rule Rule) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRuleCreate_Impl(ctx context.Context, rule Rule) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRuleDel(ctx context.Context, ruleid string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRuleDel_Impl(ctx context.Context, ruleid string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRuleGet(ctx context.Context, ruleid string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRuleGet_Impl(ctx context.Context, ruleid string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRulesGet(ctx context.Context) (ImplResponse, error)
- func (s *NetworkApiService) ConfigRulesGet_Impl(ctx context.Context) (ImplResponse, error)
- func (s *NetworkApiService) ConfigUnmanagedCreate(ctx context.Context, unmanaged Unmanaged) (ImplResponse, error)
- func (s *NetworkApiService) ConfigUnmanagedCreate_Impl(ctx context.Context, unmanaged Unmanaged) (ImplResponse, error)
- func (s *NetworkApiService) ConfigUnmanagedDel(ctx context.Context, id string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigUnmanagedDel_Impl(ctx context.Context, id string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigUnmanagedGet(ctx context.Context, id string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigUnmanagedGet_Impl(ctx context.Context, id string) (ImplResponse, error)
- func (s *NetworkApiService) ConfigUnmanagedListGet(ctx context.Context) (ImplResponse, error)
- func (s *NetworkApiService) ConfigUnmanagedListGet_Impl(ctx context.Context) (ImplResponse, error)
- type NetworkApiServicer
- type NullableBool
- type NullableConfig
- type NullableDhcp
- type NullableDns
- type NullableDnsid
- type NullableFloat32
- type NullableFloat64
- type NullableGlobal
- type NullableGlobalMgmt
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableLink
- type NullableLinkAddrInfo
- func (v NullableLinkAddrInfo) Get() *LinkAddrInfo
- func (v NullableLinkAddrInfo) IsSet() bool
- func (v NullableLinkAddrInfo) MarshalJSON() ([]byte, error)
- func (v *NullableLinkAddrInfo) Set(val *LinkAddrInfo)
- func (v *NullableLinkAddrInfo) UnmarshalJSON(src []byte) error
- func (v *NullableLinkAddrInfo) Unset()
- type NullableLinkFlag
- type NullableLinkLinkinfo
- func (v NullableLinkLinkinfo) Get() *LinkLinkinfo
- func (v NullableLinkLinkinfo) IsSet() bool
- func (v NullableLinkLinkinfo) MarshalJSON() ([]byte, error)
- func (v *NullableLinkLinkinfo) Set(val *LinkLinkinfo)
- func (v *NullableLinkLinkinfo) UnmarshalJSON(src []byte) error
- func (v *NullableLinkLinkinfo) Unset()
- type NullableLinkLinkinfoInfoData
- func (v NullableLinkLinkinfoInfoData) Get() *LinkLinkinfoInfoData
- func (v NullableLinkLinkinfoInfoData) IsSet() bool
- func (v NullableLinkLinkinfoInfoData) MarshalJSON() ([]byte, error)
- func (v *NullableLinkLinkinfoInfoData) Set(val *LinkLinkinfoInfoData)
- func (v *NullableLinkLinkinfoInfoData) UnmarshalJSON(src []byte) error
- func (v *NullableLinkLinkinfoInfoData) Unset()
- type NullableLinkLinkinfoInfoSlaveData
- func (v NullableLinkLinkinfoInfoSlaveData) Get() *LinkLinkinfoInfoSlaveData
- func (v NullableLinkLinkinfoInfoSlaveData) IsSet() bool
- func (v NullableLinkLinkinfoInfoSlaveData) MarshalJSON() ([]byte, error)
- func (v *NullableLinkLinkinfoInfoSlaveData) Set(val *LinkLinkinfoInfoSlaveData)
- func (v *NullableLinkLinkinfoInfoSlaveData) UnmarshalJSON(src []byte) error
- func (v *NullableLinkLinkinfoInfoSlaveData) Unset()
- type NullableNetns
- type NullableNetwork
- type NullableRoute
- type NullableRule
- type NullableScope
- type NullableString
- type NullableTime
- type NullableUnmanaged
- type Route
- func (o *Route) GetDev() string
- func (o *Route) GetDevOk() (*string, bool)
- func (o *Route) GetDst() string
- func (o *Route) GetDstOk() (*string, bool)
- func (o *Route) GetFlags() []string
- func (o *Route) GetFlagsOk() (*[]string, bool)
- func (o *Route) GetGateway() string
- func (o *Route) GetGatewayOk() (*string, bool)
- func (o *Route) GetId() string
- func (o *Route) GetIdOk() (*string, bool)
- func (o *Route) GetMetric() int32
- func (o *Route) GetMetricOk() (*int32, bool)
- func (o *Route) GetPrefsrc() string
- func (o *Route) GetPrefsrcOk() (*string, bool)
- func (o *Route) GetProtocol() string
- func (o *Route) GetProtocolOk() (*string, bool)
- func (o *Route) GetScope() Scope
- func (o *Route) GetScopeOk() (*Scope, bool)
- func (o *Route) GetTable() uint32
- func (o *Route) GetTableOk() (*uint32, bool)
- func (o *Route) HasDev() bool
- func (o *Route) HasFlags() bool
- func (o *Route) HasGateway() bool
- func (o *Route) HasId() bool
- func (o *Route) HasMetric() bool
- func (o *Route) HasPrefsrc() bool
- func (o *Route) HasProtocol() bool
- func (o *Route) HasScope() bool
- func (o *Route) HasTable() bool
- func (o Route) MarshalJSON() ([]byte, error)
- func (o *Route) SetDev(v string)
- func (o *Route) SetDst(v string)
- func (o *Route) SetFlags(v []string)
- func (o *Route) SetGateway(v string)
- func (o *Route) SetId(v string)
- func (o *Route) SetMetric(v int32)
- func (o *Route) SetPrefsrc(v string)
- func (o *Route) SetProtocol(v string)
- func (o *Route) SetScope(v Scope)
- func (o *Route) SetTable(v uint32)
- type Router
- type Routes
- type Rule
- func (o *Rule) GetDport() int
- func (o *Rule) GetDportEnd() int
- func (o *Rule) GetDportEndOk() (*int, bool)
- func (o *Rule) GetDportOk() (*int, bool)
- func (o *Rule) GetDportStart() int
- func (o *Rule) GetDportStartOk() (*int, bool)
- func (o *Rule) GetDst() string
- func (o *Rule) GetDstOk() (*string, bool)
- func (o *Rule) GetDstlen() int
- func (o *Rule) GetDstlenOk() (*int, bool)
- func (o *Rule) GetFamily() int
- func (o *Rule) GetFamilyOk() (*int, bool)
- func (o *Rule) GetFlow() int
- func (o *Rule) GetFlowOk() (*int, bool)
- func (o *Rule) GetGoto() int
- func (o *Rule) GetGotoOk() (*int, bool)
- func (o *Rule) GetIif() string
- func (o *Rule) GetIifOk() (*string, bool)
- func (o *Rule) GetIpproto() string
- func (o *Rule) GetIpprotoOk() (*string, bool)
- func (o *Rule) GetMark() int
- func (o *Rule) GetMarkOk() (*int, bool)
- func (o *Rule) GetMask() int
- func (o *Rule) GetMaskOk() (*int, bool)
- func (o *Rule) GetMasquerade() string
- func (o *Rule) GetMasqueradeOk() (*string, bool)
- func (o *Rule) GetNot() bool
- func (o *Rule) GetNotOk() (*bool, bool)
- func (o *Rule) GetOif() string
- func (o *Rule) GetOifOk() (*string, bool)
- func (o *Rule) GetPriority() int
- func (o *Rule) GetPriorityOk() (*int, bool)
- func (o *Rule) GetProtocol() string
- func (o *Rule) GetProtocolOk() (*string, bool)
- func (o *Rule) GetSport() int
- func (o *Rule) GetSportEnd() int
- func (o *Rule) GetSportEndOk() (*int, bool)
- func (o *Rule) GetSportOk() (*int, bool)
- func (o *Rule) GetSportStart() int
- func (o *Rule) GetSportStartOk() (*int, bool)
- func (o *Rule) GetSrc() string
- func (o *Rule) GetSrcOk() (*string, bool)
- func (o *Rule) GetSrclen() int
- func (o *Rule) GetSrclenOk() (*int, bool)
- func (o *Rule) GetSuppressIfgroup() int
- func (o *Rule) GetSuppressIfgroupOk() (*int, bool)
- func (o *Rule) GetSuppressPrefixlen() int
- func (o *Rule) GetSuppressPrefixlenOk() (*int, bool)
- func (o *Rule) GetTable() int
- func (o *Rule) GetTableOk() (*int, bool)
- func (o *Rule) GetTos() int
- func (o *Rule) GetTosOk() (*int, bool)
- func (o *Rule) GetTunid() uint
- func (o *Rule) GetTunidOk() (*uint, bool)
- func (o *Rule) HasDport() bool
- func (o *Rule) HasDportEnd() bool
- func (o *Rule) HasDportStart() bool
- func (o *Rule) HasDst() bool
- func (o *Rule) HasDstlen() bool
- func (o *Rule) HasFamily() bool
- func (o *Rule) HasFlow() bool
- func (o *Rule) HasGoto() bool
- func (o *Rule) HasIif() bool
- func (o *Rule) HasIpproto() bool
- func (o *Rule) HasMark() bool
- func (o *Rule) HasMask() bool
- func (o *Rule) HasMasquerade() bool
- func (o *Rule) HasNot() bool
- func (o *Rule) HasOif() bool
- func (o *Rule) HasPriority() bool
- func (o *Rule) HasProtocol() bool
- func (o *Rule) HasSport() bool
- func (o *Rule) HasSportEnd() bool
- func (o *Rule) HasSportStart() bool
- func (o *Rule) HasSrc() bool
- func (o *Rule) HasSrclen() bool
- func (o *Rule) HasSuppressIfgroup() bool
- func (o *Rule) HasSuppressPrefixlen() bool
- func (o *Rule) HasTable() bool
- func (o *Rule) HasTos() bool
- func (o *Rule) HasTunid() bool
- func (o Rule) MarshalJSON() ([]byte, error)
- func (o *Rule) SetDport(v int)
- func (o *Rule) SetDportEnd(v int)
- func (o *Rule) SetDportStart(v int)
- func (o *Rule) SetDst(v string)
- func (o *Rule) SetDstlen(v int)
- func (o *Rule) SetFamily(v int)
- func (o *Rule) SetFlow(v int)
- func (o *Rule) SetGoto(v int)
- func (o *Rule) SetIif(v string)
- func (o *Rule) SetIpproto(v string)
- func (o *Rule) SetMark(v int)
- func (o *Rule) SetMask(v int)
- func (o *Rule) SetMasquerade(v string)
- func (o *Rule) SetNot(v bool)
- func (o *Rule) SetOif(v string)
- func (o *Rule) SetPriority(v int)
- func (o *Rule) SetProtocol(v string)
- func (o *Rule) SetSport(v int)
- func (o *Rule) SetSportEnd(v int)
- func (o *Rule) SetSportStart(v int)
- func (o *Rule) SetSrc(v string)
- func (o *Rule) SetSrclen(v int)
- func (o *Rule) SetSuppressIfgroup(v int)
- func (o *Rule) SetSuppressPrefixlen(v int)
- func (o *Rule) SetTable(v int)
- func (o *Rule) SetTos(v int)
- func (o *Rule) SetTunid(v uint)
- type Scope
- type SystemApiController
- func (c *SystemApiController) ConfigGet(w http.ResponseWriter, r *http.Request)
- func (c *SystemApiController) ConfigPatch(w http.ResponseWriter, r *http.Request)
- func (c *SystemApiController) ConfigSet(w http.ResponseWriter, r *http.Request)
- func (c *SystemApiController) PersistConfig(w http.ResponseWriter, r *http.Request)
- func (c *SystemApiController) ResetConfig(w http.ResponseWriter, r *http.Request)
- func (c *SystemApiController) Routes() Routes
- type SystemApiRouter
- type SystemApiService
- func (s *SystemApiService) ConfigGet(ctx context.Context) (ImplResponse, error)
- func (s *SystemApiService) ConfigGet_Impl(ctx context.Context) (ImplResponse, error)
- func (s *SystemApiService) ConfigPatch(ctx context.Context, config Config) (ImplResponse, error)
- func (s *SystemApiService) ConfigPatch_Impl(ctx context.Context, config Config) (ImplResponse, error)
- func (s *SystemApiService) ConfigSet(ctx context.Context, config Config) (ImplResponse, error)
- func (s *SystemApiService) ConfigSet_Impl(ctx context.Context, config Config) (ImplResponse, error)
- func (s *SystemApiService) PersistConfig(ctx context.Context) (ImplResponse, error)
- func (s *SystemApiService) PersistConfig_Impl(ctx context.Context) (ImplResponse, error)
- func (s *SystemApiService) ResetConfig(ctx context.Context) (ImplResponse, error)
- func (s *SystemApiService) ResetConfig_Impl(ctx context.Context) (ImplResponse, error)
- type SystemApiServicer
- type Unmanaged
- func (o *Unmanaged) GetId() string
- func (o *Unmanaged) GetIdOk() (*string, bool)
- func (o *Unmanaged) GetType() string
- func (o *Unmanaged) GetTypeOk() (*string, bool)
- func (o *Unmanaged) HasId() bool
- func (o *Unmanaged) HasType() bool
- func (o Unmanaged) MarshalJSON() ([]byte, error)
- func (o *Unmanaged) SetId(v string)
- func (o *Unmanaged) SetType(v string)
Constants ¶
This section is empty.
Variables ¶
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 NewAttributeDoesntBelongToLinkKindSemanticError ¶
NewAttributeDoesntBelongToLinkKindSemanticError returns an error for an attribute not belonging to the discriminated object
func NewMissingRequiredAttributeForLinkKindSemanticError ¶
NewMissingRequiredAttributeForLinkKindSemanticError returns an error for a missing attribute
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
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) GetGlobalOk ¶
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 ¶
GetNetwork returns the Network field value if set, zero value otherwise.
func (*Config) GetNetworkOk ¶
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) HasNetwork ¶
HasNetwork returns a boolean if a field has been set.
func (*Config) LoadConfig ¶
LoadConfig loads configs.
func (Config) MarshalJSON ¶
func (*Config) SetGlobal ¶
SetGlobal gets a reference to the given Global and assigns it to the Global field.
func (*Config) SetNetwork ¶
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 ¶
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) GetIfnameOk ¶
GetIfnameOk returns a tuple with the Ifname field value and a boolean to check if the value has been set.
func (Dhcp) MarshalJSON ¶
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 ¶
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) GetIdOk ¶
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*Dns) GetNameserver ¶
GetNameserver returns the Nameserver field value
func (*Dns) GetNameserverOk ¶
GetNameserverOk returns a tuple with the Nameserver field value and a boolean to check if the value has been set.
func (Dns) MarshalJSON ¶
type Dnsid ¶
type Dnsid string
Dnsid ID of the DNS servers, defining their priority
func (*Dnsid) UnmarshalJSON ¶
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 ¶
GetCfgPath returns the CfgPath field value if set, zero value otherwise.
func (*Global) GetCfgPathOk ¶
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) GetLogLevOk ¶
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 ¶
HasCfgPath returns a boolean if a field has been set.
func (Global) MarshalJSON ¶
func (*Global) SetCfgPath ¶
SetCfgPath gets a reference to the given string and assigns it to the CfgPath field.
func (*Global) SetLogLev ¶
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 ¶
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 ¶
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 ¶
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 ¶
GetAddress returns the Address field value if set, zero value otherwise.
func (*Link) GetAddressOk ¶
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) GetFlagsOk ¶
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) GetGroupOk ¶
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 ¶
GetIfindex returns the Ifindex field value if set, -1 otherwise.
func (*Link) GetIfindexOk ¶
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) GetIfnameOk ¶
GetIfnameOk returns a tuple with the Ifname field value and a boolean to check if the value has been set.
func (*Link) GetLinkOk ¶
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 ¶
GetLinkType returns the LinkType field value
func (*Link) GetLinkTypeOk ¶
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 ¶
GetLinkmode returns the Linkmode field value if set, zero value otherwise.
func (*Link) GetLinkmodeOk ¶
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) GetMasterOk ¶
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) GetMtuOk ¶
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 ¶
GetOperstate returns the Operstate field value if set, zero value otherwise.
func (*Link) GetOperstateOk ¶
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 ¶
GetPromiscuity returns the Promiscuity field value if set, -1 otherwise.
func (*Link) GetPromiscuityOk ¶
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 ¶
HasAddrInfo returns a boolean if a field has been set.
func (*Link) HasAddress ¶
HasAddress returns a boolean if a field has been set.
func (*Link) HasIfindex ¶
HasIfindex returns a boolean if a field has been set.
func (*Link) HasLinkinfo ¶
HasLinkinfo returns a boolean if a field has been set.
func (*Link) HasLinkmode ¶
HasLinkmode returns a boolean if a field has been set.
func (*Link) HasOperstate ¶
HasOperstate returns a boolean if a field has been set.
func (*Link) HasPromiscuity ¶
HasPromiscuity returns a boolean if a field has been set.
func (Link) MarshalJSON ¶
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 ¶
SetAddress gets a reference to the given string and assigns it to the Address field.
func (*Link) SetFlags ¶
SetFlags gets a reference to the given []LinkFlag and assigns it to the Flags field.
func (*Link) SetGroup ¶
SetGroup gets a reference to the given string and assigns it to the Group field.
func (*Link) SetIfindex ¶
SetIfindex gets a reference to the given int32 and assigns it to the Ifindex field.
func (*Link) SetLink ¶
SetLink gets a reference to the given string and assigns it to the Link field.
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 ¶
SetLinkmode gets a reference to the given string and assigns it to the Linkmode field.
func (*Link) SetMaster ¶
SetMaster gets a reference to the given string and assigns it to the Master field.
func (*Link) SetOperstate ¶
SetOperstate gets a reference to the given string and assigns it to the Operstate field.
func (*Link) SetPromiscuity ¶
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) 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) UnmarshalJSON ¶
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 (*LinkLinkinfoInfoData) GetMinLinks ¶
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 (*LinkLinkinfoInfoData) HasMinLinks ¶
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 (*LinkLinkinfoInfoData) SetMinLinks ¶
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) GetNameOk ¶
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) MarshalJSON ¶
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) GetDhcpOk ¶
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) GetDnsOk ¶
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 (*Network) GetLinksOk ¶
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) GetRoutesOk ¶
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) GetRulesOk ¶
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 ¶
GetUnmanaged returns the Unmanaged field value if set, zero value otherwise.
func (*Network) GetUnmanagedOk ¶
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) HasUnmanaged ¶
HasUnmanaged returns a boolean if a field has been set.
func (Network) MarshalJSON ¶
func (*Network) SetDhcp ¶
SetDhcp gets a reference to the given []Dhcp and assigns it to the Dhcp field.
func (*Network) SetDns ¶
SetDns gets a reference to the given []Dns and assigns it to the Dns field.
func (*Network) SetLinks ¶
SetLinks gets a reference to the given []Link and assigns it to the Links field.
func (*Network) SetRoutes ¶
SetRoutes gets a reference to the given []Route and assigns it to the Routes field.
func (*Network) SetRules ¶
SetRules gets a reference to the given []Rule and assigns it to the Rules field.
func (*Network) SetUnmanaged ¶
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 ¶
type NullableLink struct {
// contains filtered or unexported fields
}
func NewNullableLink ¶
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 (v NullableLinkAddrInfo) Get() *LinkAddrInfo
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 (v NullableLinkLinkinfo) Get() *LinkLinkinfo
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 (v NullableLinkLinkinfoInfoData) Get() *LinkLinkinfoInfoData
func (NullableLinkLinkinfoInfoData) IsSet ¶
func (v NullableLinkLinkinfoInfoData) IsSet() bool
func (NullableLinkLinkinfoInfoData) MarshalJSON ¶
func (v NullableLinkLinkinfoInfoData) MarshalJSON() ([]byte, error)
func (*NullableLinkLinkinfoInfoData) Set ¶
func (v *NullableLinkLinkinfoInfoData) Set(val *LinkLinkinfoInfoData)
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 NewNullableLinkLinkinfoInfoSlaveData ¶
func NewNullableLinkLinkinfoInfoSlaveData(val *LinkLinkinfoInfoSlaveData) *NullableLinkLinkinfoInfoSlaveData
func (NullableLinkLinkinfoInfoSlaveData) Get ¶
func (v NullableLinkLinkinfoInfoSlaveData) Get() *LinkLinkinfoInfoSlaveData
func (NullableLinkLinkinfoInfoSlaveData) IsSet ¶
func (v NullableLinkLinkinfoInfoSlaveData) IsSet() bool
func (NullableLinkLinkinfoInfoSlaveData) MarshalJSON ¶
func (v NullableLinkLinkinfoInfoSlaveData) MarshalJSON() ([]byte, error)
func (*NullableLinkLinkinfoInfoSlaveData) Set ¶
func (v *NullableLinkLinkinfoInfoSlaveData) Set(val *LinkLinkinfoInfoSlaveData)
func (*NullableLinkLinkinfoInfoSlaveData) UnmarshalJSON ¶
func (v *NullableLinkLinkinfoInfoSlaveData) UnmarshalJSON(src []byte) error
func (*NullableLinkLinkinfoInfoSlaveData) Unset ¶
func (v *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 ¶
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) GetDevOk ¶
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) GetDstOk ¶
GetDstOk returns a tuple with the Dst field value and a boolean to check if the value has been set.
func (*Route) GetFlagsOk ¶
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 ¶
GetGateway returns the Gateway field value if set, zero value otherwise.
func (*Route) GetGatewayOk ¶
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) GetIdOk ¶
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) GetMetricOk ¶
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 ¶
GetPrefsrc returns the Prefsrc field value if set, zero value otherwise.
func (*Route) GetPrefsrcOk ¶
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 ¶
GetProtocol returns the Protocol field value if set, zero value otherwise.
func (*Route) GetProtocolOk ¶
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) GetScopeOk ¶
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) GetTableOk ¶
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) HasGateway ¶
HasGateway returns a boolean if a field has been set.
func (*Route) HasPrefsrc ¶
HasPrefsrc returns a boolean if a field has been set.
func (*Route) HasProtocol ¶
HasProtocol returns a boolean if a field has been set.
func (Route) MarshalJSON ¶
func (*Route) SetFlags ¶
SetFlags gets a reference to the given []string and assigns it to the Flags field.
func (*Route) SetGateway ¶
SetGateway gets a reference to the given string and assigns it to the Gateway field.
func (*Route) SetMetric ¶
SetMetric gets a reference to the given int32 and assigns it to the Metric field.
func (*Route) SetPrefsrc ¶
SetPrefsrc gets a reference to the given string and assigns it to the Prefsrc field.
func (*Route) SetProtocol ¶
SetProtocol gets a reference to the given string and assigns it to the Protocol 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 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) GetDportEnd ¶
GetDportEnd returns the DportEnd field value if set, -1 otherwise.
func (*Rule) GetDportEndOk ¶
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 ¶
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 ¶
GetDportStart returns the DportStart field value if set, -1 otherwise.
func (*Rule) GetDportStartOk ¶
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) GetDstOk ¶
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) GetDstlenOk ¶
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) GetFamilyOk ¶
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) GetFlowOk ¶
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) GetGotoOk ¶
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) GetIifOk ¶
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 ¶
GetIpproto returns the Ipproto field value if set, zero value otherwise.
func (*Rule) GetIpprotoOk ¶
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) GetMarkOk ¶
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) GetMaskOk ¶
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 ¶
GetMasquerade returns the Masquerade field value if set, zero value otherwise.
func (*Rule) GetMasqueradeOk ¶
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) GetNotOk ¶
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) GetOifOk ¶
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 ¶
GetPriority returns the Priority field value if set, -1 otherwise.
func (*Rule) GetPriorityOk ¶
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 ¶
GetProtocol returns the Protocol field value if set, zero value otherwise.
func (*Rule) GetProtocolOk ¶
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) GetSportEnd ¶
GetSportEnd returns the SportEnd field value if set, -1 otherwise.
func (*Rule) GetSportEndOk ¶
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 ¶
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 ¶
GetSportStart returns the SportStart field value if set, -1 otherwise.
func (*Rule) GetSportStartOk ¶
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) GetSrcOk ¶
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) GetSrclenOk ¶
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 ¶
GetSuppressIfgroup returns the SuppressIfgroup field value if set, -1 otherwise.
func (*Rule) GetSuppressIfgroupOk ¶
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 ¶
GetSuppressPrefixlen returns the SuppressPrefixlen field value if set, -1 otherwise.
func (*Rule) GetSuppressPrefixlenOk ¶
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) GetTableOk ¶
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) GetTosOk ¶
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) GetTunidOk ¶
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) HasDportEnd ¶
HasDportEnd returns a boolean if a field has been set.
func (*Rule) HasDportStart ¶
HasDportStart returns a boolean if a field has been set.
func (*Rule) HasIpproto ¶
HasIpproto returns a boolean if a field has been set.
func (*Rule) HasMasquerade ¶
HasMasquerade returns a boolean if a field has been set.
func (*Rule) HasPriority ¶
HasPriority returns a boolean if a field has been set.
func (*Rule) HasProtocol ¶
HasProtocol returns a boolean if a field has been set.
func (*Rule) HasSportEnd ¶
HasSportEnd returns a boolean if a field has been set.
func (*Rule) HasSportStart ¶
HasSportStart returns a boolean if a field has been set.
func (*Rule) HasSuppressIfgroup ¶
HasSuppressIfgroup returns a boolean if a field has been set.
func (*Rule) HasSuppressPrefixlen ¶
HasSuppressPrefixlen returns a boolean if a field has been set.
func (Rule) MarshalJSON ¶
func (*Rule) SetDport ¶
SetDport gets a reference to the given int and assigns it to the Dport field.
func (*Rule) SetDportEnd ¶
SetDportEnd gets a reference to the given int and assigns it to the DportEnd field.
func (*Rule) SetDportStart ¶
SetDportStart gets a reference to the given int and assigns it to the DportStart field.
func (*Rule) SetDstlen ¶
SetDstlen gets a reference to the given int and assigns it to the Dstlen field.
func (*Rule) SetFamily ¶
SetFamily gets a reference to the given int and assigns it to the Family field.
func (*Rule) SetIpproto ¶
SetIpproto gets a reference to the given string and assigns it to the Ipproto field.
func (*Rule) SetMasquerade ¶
SetMasquerade gets a reference to the given string and assigns it to the Masquerade field.
func (*Rule) SetPriority ¶
SetPriority gets a reference to the given int and assigns it to the Priority field.
func (*Rule) SetProtocol ¶
SetProtocol gets a reference to the given string and assigns it to the Protocol field.
func (*Rule) SetSport ¶
SetSport gets a reference to the given int and assigns it to the Sport field.
func (*Rule) SetSportEnd ¶
SetSportEnd gets a reference to the given int and assigns it to the SportEnd field.
func (*Rule) SetSportStart ¶
SetSportStart gets a reference to the given int and assigns it to the SportStart field.
func (*Rule) SetSrclen ¶
SetSrclen gets a reference to the given int and assigns it to the Srclen field.
func (*Rule) SetSuppressIfgroup ¶
SetSuppressIfgroup gets a reference to the given int and assigns it to the SuppressIfgroup field.
func (*Rule) SetSuppressPrefixlen ¶
SetSuppressPrefixlen gets a reference to the given int and assigns it to the SuppressPrefixlen field.
func (*Rule) SetTable ¶
SetTable gets a reference to the given int and assigns it to the Table 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) UnmarshalJSON ¶
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) GetIdOk ¶
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) GetTypeOk ¶
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) MarshalJSON ¶
Source Files ¶
- api.go
- api_network.go
- api_network_service.go
- api_network_service_impl.go
- api_system.go
- api_system_service.go
- api_system_service_impl.go
- common.go
- errors.go
- helpers.go
- impl.go
- logger.go
- model_config.go
- model_config_impl.go
- model_dhcp.go
- model_dns.go
- model_dnsid.go
- model_global.go
- model_global_mgmt.go
- model_link.go
- model_link_addr_info.go
- model_link_flag.go
- model_link_linkinfo.go
- model_link_linkinfo_impl.go
- model_link_linkinfo_info_data.go
- model_link_linkinfo_info_data_impl.go
- model_link_linkinfo_info_slave_data.go
- model_netns.go
- model_network.go
- model_route.go
- model_rule.go
- model_scope.go
- model_unmanaged.go
- routers.go
- utils.go