netextra

package
v2.0.0-beta.21 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthExtra        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowExtra          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupExtra = fmt.Errorf("proto: unexpected end of group")
)

Functions

func MarshalStatus

func MarshalStatus(status *network.Status) (*types.Any, error)

func StatusFrom

func StatusFrom(extra *types.Any) (*network.Status, error)

Types

type Extra

type Extra struct {
	IPAMStatus []*IPAMStatus `protobuf:"bytes,1,rep,name=IPAMStatus,proto3" json:"IPAMStatus,omitempty"`
}

func (*Extra) Descriptor

func (*Extra) Descriptor() ([]byte, []int)

func (*Extra) GetIPAMStatus

func (m *Extra) GetIPAMStatus() []*IPAMStatus

func (*Extra) Marshal

func (m *Extra) Marshal() (dAtA []byte, err error)

func (*Extra) MarshalTo

func (m *Extra) MarshalTo(dAtA []byte) (int, error)

func (*Extra) MarshalToSizedBuffer

func (m *Extra) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Extra) ProtoMessage

func (*Extra) ProtoMessage()

func (*Extra) Reset

func (m *Extra) Reset()

func (*Extra) Size

func (m *Extra) Size() (n int)

func (*Extra) String

func (m *Extra) String() string

func (*Extra) Unmarshal

func (m *Extra) Unmarshal(dAtA []byte) error

func (*Extra) XXX_DiscardUnknown

func (m *Extra) XXX_DiscardUnknown()

func (*Extra) XXX_Marshal

func (m *Extra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Extra) XXX_Merge

func (m *Extra) XXX_Merge(src proto.Message)

func (*Extra) XXX_Size

func (m *Extra) XXX_Size() int

func (*Extra) XXX_Unmarshal

func (m *Extra) XXX_Unmarshal(b []byte) error

type GetNetworkExtraOptions

type GetNetworkExtraOptions struct {
	WithIPAMStatus bool `protobuf:"varint,1,opt,name=WithIPAMStatus,proto3" json:"WithIPAMStatus,omitempty"`
}

func OptionsFrom

func OptionsFrom(typeurl string, value []byte) (GetNetworkExtraOptions, error)

func (*GetNetworkExtraOptions) Descriptor

func (*GetNetworkExtraOptions) Descriptor() ([]byte, []int)

func (*GetNetworkExtraOptions) GetWithIPAMStatus

func (m *GetNetworkExtraOptions) GetWithIPAMStatus() bool

func (*GetNetworkExtraOptions) Marshal

func (m *GetNetworkExtraOptions) Marshal() (dAtA []byte, err error)

func (*GetNetworkExtraOptions) MarshalTo

func (m *GetNetworkExtraOptions) MarshalTo(dAtA []byte) (int, error)

func (*GetNetworkExtraOptions) MarshalToSizedBuffer

func (m *GetNetworkExtraOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetNetworkExtraOptions) ProtoMessage

func (*GetNetworkExtraOptions) ProtoMessage()

func (*GetNetworkExtraOptions) Reset

func (m *GetNetworkExtraOptions) Reset()

func (*GetNetworkExtraOptions) Size

func (m *GetNetworkExtraOptions) Size() (n int)

func (*GetNetworkExtraOptions) String

func (m *GetNetworkExtraOptions) String() string

func (*GetNetworkExtraOptions) Unmarshal

func (m *GetNetworkExtraOptions) Unmarshal(dAtA []byte) error

func (*GetNetworkExtraOptions) XXX_DiscardUnknown

func (m *GetNetworkExtraOptions) XXX_DiscardUnknown()

func (*GetNetworkExtraOptions) XXX_Marshal

func (m *GetNetworkExtraOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetNetworkExtraOptions) XXX_Merge

func (m *GetNetworkExtraOptions) XXX_Merge(src proto.Message)

func (*GetNetworkExtraOptions) XXX_Size

func (m *GetNetworkExtraOptions) XXX_Size() int

func (*GetNetworkExtraOptions) XXX_Unmarshal

func (m *GetNetworkExtraOptions) XXX_Unmarshal(b []byte) error

type IPAMStatus

type IPAMStatus struct {
	Subnet              []byte `protobuf:"bytes,1,opt,name=Subnet,proto3" json:"Subnet,omitempty"`
	IPsInUse            uint64 `protobuf:"varint,2,opt,name=IPsInUse,proto3" json:"IPsInUse,omitempty"`
	DynamicIPsAvailable uint64 `protobuf:"varint,3,opt,name=DynamicIPsAvailable,proto3" json:"DynamicIPsAvailable,omitempty"`
}

func (*IPAMStatus) Descriptor

func (*IPAMStatus) Descriptor() ([]byte, []int)

func (*IPAMStatus) GetDynamicIPsAvailable

func (m *IPAMStatus) GetDynamicIPsAvailable() uint64

func (*IPAMStatus) GetIPsInUse

func (m *IPAMStatus) GetIPsInUse() uint64

func (*IPAMStatus) GetSubnet

func (m *IPAMStatus) GetSubnet() []byte

func (*IPAMStatus) Marshal

func (m *IPAMStatus) Marshal() (dAtA []byte, err error)

func (*IPAMStatus) MarshalTo

func (m *IPAMStatus) MarshalTo(dAtA []byte) (int, error)

func (*IPAMStatus) MarshalToSizedBuffer

func (m *IPAMStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IPAMStatus) ProtoMessage

func (*IPAMStatus) ProtoMessage()

func (*IPAMStatus) Reset

func (m *IPAMStatus) Reset()

func (*IPAMStatus) Size

func (m *IPAMStatus) Size() (n int)

func (*IPAMStatus) String

func (m *IPAMStatus) String() string

func (*IPAMStatus) Unmarshal

func (m *IPAMStatus) Unmarshal(dAtA []byte) error

func (*IPAMStatus) XXX_DiscardUnknown

func (m *IPAMStatus) XXX_DiscardUnknown()

func (*IPAMStatus) XXX_Marshal

func (m *IPAMStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IPAMStatus) XXX_Merge

func (m *IPAMStatus) XXX_Merge(src proto.Message)

func (*IPAMStatus) XXX_Size

func (m *IPAMStatus) XXX_Size() int

func (*IPAMStatus) XXX_Unmarshal

func (m *IPAMStatus) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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