Versions in this module Expand all Collapse all v0 v0.1.0 Sep 15, 2018 Changes in this version + func RegisterNetworkServer(s *grpc.Server, srv NetworkServer) + type AddRouteRequest struct + CIDR string + Target string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AddRouteRequest) Descriptor() ([]byte, []int) + func (*AddRouteRequest) ProtoMessage() + func (dst *AddRouteRequest) XXX_Merge(src proto.Message) + func (m *AddRouteRequest) GetCIDR() string + func (m *AddRouteRequest) GetTarget() string + func (m *AddRouteRequest) Reset() + func (m *AddRouteRequest) String() string + func (m *AddRouteRequest) XXX_DiscardUnknown() + func (m *AddRouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AddRouteRequest) XXX_Size() int + func (m *AddRouteRequest) XXX_Unmarshal(b []byte) error + type AllocateIPRequest struct + ID string + Node string + SubnetCIDR string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AllocateIPRequest) Descriptor() ([]byte, []int) + func (*AllocateIPRequest) ProtoMessage() + func (dst *AllocateIPRequest) XXX_Merge(src proto.Message) + func (m *AllocateIPRequest) GetID() string + func (m *AllocateIPRequest) GetNode() string + func (m *AllocateIPRequest) GetSubnetCIDR() string + func (m *AllocateIPRequest) Reset() + func (m *AllocateIPRequest) String() string + func (m *AllocateIPRequest) XXX_DiscardUnknown() + func (m *AllocateIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AllocateIPRequest) XXX_Size() int + func (m *AllocateIPRequest) XXX_Unmarshal(b []byte) error + type AllocateIPResponse struct + IP string + Node string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AllocateIPResponse) Descriptor() ([]byte, []int) + func (*AllocateIPResponse) ProtoMessage() + func (dst *AllocateIPResponse) XXX_Merge(src proto.Message) + func (m *AllocateIPResponse) GetIP() string + func (m *AllocateIPResponse) GetNode() string + func (m *AllocateIPResponse) Reset() + func (m *AllocateIPResponse) String() string + func (m *AllocateIPResponse) XXX_DiscardUnknown() + func (m *AllocateIPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AllocateIPResponse) XXX_Size() int + func (m *AllocateIPResponse) XXX_Unmarshal(b []byte) error + type AllocateSubnetRequest struct + Node string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AllocateSubnetRequest) Descriptor() ([]byte, []int) + func (*AllocateSubnetRequest) ProtoMessage() + func (dst *AllocateSubnetRequest) XXX_Merge(src proto.Message) + func (m *AllocateSubnetRequest) GetNode() string + func (m *AllocateSubnetRequest) Reset() + func (m *AllocateSubnetRequest) String() string + func (m *AllocateSubnetRequest) XXX_DiscardUnknown() + func (m *AllocateSubnetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AllocateSubnetRequest) XXX_Size() int + func (m *AllocateSubnetRequest) XXX_Unmarshal(b []byte) error + type AllocateSubnetResponse struct + Node string + SubnetCIDR string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AllocateSubnetResponse) Descriptor() ([]byte, []int) + func (*AllocateSubnetResponse) ProtoMessage() + func (dst *AllocateSubnetResponse) XXX_Merge(src proto.Message) + func (m *AllocateSubnetResponse) GetNode() string + func (m *AllocateSubnetResponse) GetSubnetCIDR() string + func (m *AllocateSubnetResponse) Reset() + func (m *AllocateSubnetResponse) String() string + func (m *AllocateSubnetResponse) XXX_DiscardUnknown() + func (m *AllocateSubnetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AllocateSubnetResponse) XXX_Size() int + func (m *AllocateSubnetResponse) XXX_Unmarshal(b []byte) error + type ConfigureRequest struct + Subnet *Subnet + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ConfigureRequest) Descriptor() ([]byte, []int) + func (*ConfigureRequest) ProtoMessage() + func (dst *ConfigureRequest) XXX_Merge(src proto.Message) + func (m *ConfigureRequest) GetSubnet() *Subnet + func (m *ConfigureRequest) Reset() + func (m *ConfigureRequest) String() string + func (m *ConfigureRequest) XXX_DiscardUnknown() + func (m *ConfigureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ConfigureRequest) XXX_Size() int + func (m *ConfigureRequest) XXX_Unmarshal(b []byte) error + type DeallocateSubnetRequest struct + Node string + SubnetCIDR string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DeallocateSubnetRequest) Descriptor() ([]byte, []int) + func (*DeallocateSubnetRequest) ProtoMessage() + func (dst *DeallocateSubnetRequest) XXX_Merge(src proto.Message) + func (m *DeallocateSubnetRequest) GetNode() string + func (m *DeallocateSubnetRequest) GetSubnetCIDR() string + func (m *DeallocateSubnetRequest) Reset() + func (m *DeallocateSubnetRequest) String() string + func (m *DeallocateSubnetRequest) XXX_DiscardUnknown() + func (m *DeallocateSubnetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DeallocateSubnetRequest) XXX_Size() int + func (m *DeallocateSubnetRequest) XXX_Unmarshal(b []byte) error + type DeleteRouteRequest struct + CIDR string + Target string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DeleteRouteRequest) Descriptor() ([]byte, []int) + func (*DeleteRouteRequest) ProtoMessage() + func (dst *DeleteRouteRequest) XXX_Merge(src proto.Message) + func (m *DeleteRouteRequest) GetCIDR() string + func (m *DeleteRouteRequest) GetTarget() string + func (m *DeleteRouteRequest) Reset() + func (m *DeleteRouteRequest) String() string + func (m *DeleteRouteRequest) XXX_DiscardUnknown() + func (m *DeleteRouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DeleteRouteRequest) XXX_Size() int + func (m *DeleteRouteRequest) XXX_Unmarshal(b []byte) error + type GetIPRequest struct + ID string + Node string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GetIPRequest) Descriptor() ([]byte, []int) + func (*GetIPRequest) ProtoMessage() + func (dst *GetIPRequest) XXX_Merge(src proto.Message) + func (m *GetIPRequest) GetID() string + func (m *GetIPRequest) GetNode() string + func (m *GetIPRequest) Reset() + func (m *GetIPRequest) String() string + func (m *GetIPRequest) XXX_DiscardUnknown() + func (m *GetIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetIPRequest) XXX_Size() int + func (m *GetIPRequest) XXX_Unmarshal(b []byte) error + type GetIPResponse struct + IP string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GetIPResponse) Descriptor() ([]byte, []int) + func (*GetIPResponse) ProtoMessage() + func (dst *GetIPResponse) XXX_Merge(src proto.Message) + func (m *GetIPResponse) GetIP() string + func (m *GetIPResponse) Reset() + func (m *GetIPResponse) String() string + func (m *GetIPResponse) XXX_DiscardUnknown() + func (m *GetIPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetIPResponse) XXX_Size() int + func (m *GetIPResponse) XXX_Unmarshal(b []byte) error + type GetSubnetRequest struct + Node string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GetSubnetRequest) Descriptor() ([]byte, []int) + func (*GetSubnetRequest) ProtoMessage() + func (dst *GetSubnetRequest) XXX_Merge(src proto.Message) + func (m *GetSubnetRequest) GetNode() string + func (m *GetSubnetRequest) Reset() + func (m *GetSubnetRequest) String() string + func (m *GetSubnetRequest) XXX_DiscardUnknown() + func (m *GetSubnetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetSubnetRequest) XXX_Size() int + func (m *GetSubnetRequest) XXX_Unmarshal(b []byte) error + type GetSubnetResponse struct + SubnetCIDR string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GetSubnetResponse) Descriptor() ([]byte, []int) + func (*GetSubnetResponse) ProtoMessage() + func (dst *GetSubnetResponse) XXX_Merge(src proto.Message) + func (m *GetSubnetResponse) GetSubnetCIDR() string + func (m *GetSubnetResponse) Reset() + func (m *GetSubnetResponse) String() string + func (m *GetSubnetResponse) XXX_DiscardUnknown() + func (m *GetSubnetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetSubnetResponse) XXX_Size() int + func (m *GetSubnetResponse) XXX_Unmarshal(b []byte) error + type NetworkClient interface + AddRoute func(ctx context.Context, in *AddRouteRequest, opts ...grpc.CallOption) (*types.Empty, error) + AllocateIP func(ctx context.Context, in *AllocateIPRequest, opts ...grpc.CallOption) (*AllocateIPResponse, error) + AllocateSubnet func(ctx context.Context, in *AllocateSubnetRequest, opts ...grpc.CallOption) (*AllocateSubnetResponse, error) + Configure func(ctx context.Context, in *ConfigureRequest, opts ...grpc.CallOption) (*types.Empty, error) + DeallocateSubnet func(ctx context.Context, in *DeallocateSubnetRequest, opts ...grpc.CallOption) (*types.Empty, error) + DeleteRoute func(ctx context.Context, in *DeleteRouteRequest, opts ...grpc.CallOption) (*types.Empty, error) + GetIP func(ctx context.Context, in *GetIPRequest, opts ...grpc.CallOption) (*GetIPResponse, error) + GetSubnet func(ctx context.Context, in *GetSubnetRequest, opts ...grpc.CallOption) (*GetSubnetResponse, error) + ReleaseIP func(ctx context.Context, in *ReleaseIPRequest, opts ...grpc.CallOption) (*types.Empty, error) + Routes func(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*RoutesResponse, error) + Subnets func(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*SubnetsResponse, error) + func NewNetworkClient(cc *grpc.ClientConn) NetworkClient + type NetworkServer interface + AddRoute func(context.Context, *AddRouteRequest) (*types.Empty, error) + AllocateIP func(context.Context, *AllocateIPRequest) (*AllocateIPResponse, error) + AllocateSubnet func(context.Context, *AllocateSubnetRequest) (*AllocateSubnetResponse, error) + Configure func(context.Context, *ConfigureRequest) (*types.Empty, error) + DeallocateSubnet func(context.Context, *DeallocateSubnetRequest) (*types.Empty, error) + DeleteRoute func(context.Context, *DeleteRouteRequest) (*types.Empty, error) + GetIP func(context.Context, *GetIPRequest) (*GetIPResponse, error) + GetSubnet func(context.Context, *GetSubnetRequest) (*GetSubnetResponse, error) + ReleaseIP func(context.Context, *ReleaseIPRequest) (*types.Empty, error) + Routes func(context.Context, *types.Empty) (*RoutesResponse, error) + Subnets func(context.Context, *types.Empty) (*SubnetsResponse, error) + type ReleaseIPRequest struct + ID string + IP string + Node string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ReleaseIPRequest) Descriptor() ([]byte, []int) + func (*ReleaseIPRequest) ProtoMessage() + func (dst *ReleaseIPRequest) XXX_Merge(src proto.Message) + func (m *ReleaseIPRequest) GetID() string + func (m *ReleaseIPRequest) GetIP() string + func (m *ReleaseIPRequest) GetNode() string + func (m *ReleaseIPRequest) Reset() + func (m *ReleaseIPRequest) String() string + func (m *ReleaseIPRequest) XXX_DiscardUnknown() + func (m *ReleaseIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ReleaseIPRequest) XXX_Size() int + func (m *ReleaseIPRequest) XXX_Unmarshal(b []byte) error + type Route struct + CIDR string + Target string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Route) Descriptor() ([]byte, []int) + func (*Route) ProtoMessage() + func (dst *Route) XXX_Merge(src proto.Message) + func (m *Route) GetCIDR() string + func (m *Route) GetTarget() string + func (m *Route) Reset() + func (m *Route) String() string + func (m *Route) XXX_DiscardUnknown() + func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Route) XXX_Size() int + func (m *Route) XXX_Unmarshal(b []byte) error + type RoutesResponse struct + Routes []*Route + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RoutesResponse) Descriptor() ([]byte, []int) + func (*RoutesResponse) ProtoMessage() + func (dst *RoutesResponse) XXX_Merge(src proto.Message) + func (m *RoutesResponse) GetRoutes() []*Route + func (m *RoutesResponse) Reset() + func (m *RoutesResponse) String() string + func (m *RoutesResponse) XXX_DiscardUnknown() + func (m *RoutesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RoutesResponse) XXX_Size() int + func (m *RoutesResponse) XXX_Unmarshal(b []byte) error + type Subnet struct + CIDR string + Gateway string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Subnet) Descriptor() ([]byte, []int) + func (*Subnet) ProtoMessage() + func (dst *Subnet) XXX_Merge(src proto.Message) + func (m *Subnet) GetCIDR() string + func (m *Subnet) GetGateway() string + func (m *Subnet) Reset() + func (m *Subnet) String() string + func (m *Subnet) XXX_DiscardUnknown() + func (m *Subnet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Subnet) XXX_Size() int + func (m *Subnet) XXX_Unmarshal(b []byte) error + type SubnetsResponse struct + Subnets []*Subnet + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SubnetsResponse) Descriptor() ([]byte, []int) + func (*SubnetsResponse) ProtoMessage() + func (dst *SubnetsResponse) XXX_Merge(src proto.Message) + func (m *SubnetsResponse) GetSubnets() []*Subnet + func (m *SubnetsResponse) Reset() + func (m *SubnetsResponse) String() string + func (m *SubnetsResponse) XXX_DiscardUnknown() + func (m *SubnetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SubnetsResponse) XXX_Size() int + func (m *SubnetsResponse) XXX_Unmarshal(b []byte) error