network

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2018 License: MIT Imports: 6 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNetworkServer

func RegisterNetworkServer(s *grpc.Server, srv NetworkServer)

Types

type AddRouteRequest

type AddRouteRequest struct {
	CIDR                 string   `protobuf:"bytes,1,opt,name=cidr,proto3" json:"cidr,omitempty"`
	Target               string   `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddRouteRequest) Descriptor

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

func (*AddRouteRequest) GetCIDR

func (m *AddRouteRequest) GetCIDR() string

func (*AddRouteRequest) GetTarget

func (m *AddRouteRequest) GetTarget() string

func (*AddRouteRequest) ProtoMessage

func (*AddRouteRequest) ProtoMessage()

func (*AddRouteRequest) Reset

func (m *AddRouteRequest) Reset()

func (*AddRouteRequest) String

func (m *AddRouteRequest) String() string

func (*AddRouteRequest) XXX_DiscardUnknown

func (m *AddRouteRequest) XXX_DiscardUnknown()

func (*AddRouteRequest) XXX_Marshal

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

func (*AddRouteRequest) XXX_Merge

func (dst *AddRouteRequest) XXX_Merge(src proto.Message)

func (*AddRouteRequest) XXX_Size

func (m *AddRouteRequest) XXX_Size() int

func (*AddRouteRequest) XXX_Unmarshal

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

type AllocateIPRequest

type AllocateIPRequest struct {
	ID                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	SubnetCIDR           string   `protobuf:"bytes,2,opt,name=subnet_cidr,json=subnetCidr,proto3" json:"subnet_cidr,omitempty"`
	Node                 string   `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AllocateIPRequest) Descriptor

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

func (*AllocateIPRequest) GetID

func (m *AllocateIPRequest) GetID() string

func (*AllocateIPRequest) GetNode

func (m *AllocateIPRequest) GetNode() string

func (*AllocateIPRequest) GetSubnetCIDR

func (m *AllocateIPRequest) GetSubnetCIDR() string

func (*AllocateIPRequest) ProtoMessage

func (*AllocateIPRequest) ProtoMessage()

func (*AllocateIPRequest) Reset

func (m *AllocateIPRequest) Reset()

func (*AllocateIPRequest) String

func (m *AllocateIPRequest) String() string

func (*AllocateIPRequest) XXX_DiscardUnknown

func (m *AllocateIPRequest) XXX_DiscardUnknown()

func (*AllocateIPRequest) XXX_Marshal

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

func (*AllocateIPRequest) XXX_Merge

func (dst *AllocateIPRequest) XXX_Merge(src proto.Message)

func (*AllocateIPRequest) XXX_Size

func (m *AllocateIPRequest) XXX_Size() int

func (*AllocateIPRequest) XXX_Unmarshal

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

type AllocateIPResponse

type AllocateIPResponse struct {
	IP                   string   `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Node                 string   `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AllocateIPResponse) Descriptor

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

func (*AllocateIPResponse) GetIP

func (m *AllocateIPResponse) GetIP() string

func (*AllocateIPResponse) GetNode

func (m *AllocateIPResponse) GetNode() string

func (*AllocateIPResponse) ProtoMessage

func (*AllocateIPResponse) ProtoMessage()

func (*AllocateIPResponse) Reset

func (m *AllocateIPResponse) Reset()

func (*AllocateIPResponse) String

func (m *AllocateIPResponse) String() string

func (*AllocateIPResponse) XXX_DiscardUnknown

func (m *AllocateIPResponse) XXX_DiscardUnknown()

func (*AllocateIPResponse) XXX_Marshal

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

func (*AllocateIPResponse) XXX_Merge

func (dst *AllocateIPResponse) XXX_Merge(src proto.Message)

func (*AllocateIPResponse) XXX_Size

func (m *AllocateIPResponse) XXX_Size() int

func (*AllocateIPResponse) XXX_Unmarshal

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

type AllocateSubnetRequest

type AllocateSubnetRequest struct {
	Node                 string   `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AllocateSubnetRequest) Descriptor

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

func (*AllocateSubnetRequest) GetNode

func (m *AllocateSubnetRequest) GetNode() string

func (*AllocateSubnetRequest) ProtoMessage

func (*AllocateSubnetRequest) ProtoMessage()

func (*AllocateSubnetRequest) Reset

func (m *AllocateSubnetRequest) Reset()

func (*AllocateSubnetRequest) String

func (m *AllocateSubnetRequest) String() string

func (*AllocateSubnetRequest) XXX_DiscardUnknown

func (m *AllocateSubnetRequest) XXX_DiscardUnknown()

func (*AllocateSubnetRequest) XXX_Marshal

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

func (*AllocateSubnetRequest) XXX_Merge

func (dst *AllocateSubnetRequest) XXX_Merge(src proto.Message)

func (*AllocateSubnetRequest) XXX_Size

func (m *AllocateSubnetRequest) XXX_Size() int

func (*AllocateSubnetRequest) XXX_Unmarshal

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

type AllocateSubnetResponse

type AllocateSubnetResponse struct {
	SubnetCIDR           string   `protobuf:"bytes,1,opt,name=subnet_cidr,json=subnetCidr,proto3" json:"subnet_cidr,omitempty"`
	Node                 string   `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AllocateSubnetResponse) Descriptor

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

func (*AllocateSubnetResponse) GetNode

func (m *AllocateSubnetResponse) GetNode() string

func (*AllocateSubnetResponse) GetSubnetCIDR

func (m *AllocateSubnetResponse) GetSubnetCIDR() string

func (*AllocateSubnetResponse) ProtoMessage

func (*AllocateSubnetResponse) ProtoMessage()

func (*AllocateSubnetResponse) Reset

func (m *AllocateSubnetResponse) Reset()

func (*AllocateSubnetResponse) String

func (m *AllocateSubnetResponse) String() string

func (*AllocateSubnetResponse) XXX_DiscardUnknown

func (m *AllocateSubnetResponse) XXX_DiscardUnknown()

func (*AllocateSubnetResponse) XXX_Marshal

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

func (*AllocateSubnetResponse) XXX_Merge

func (dst *AllocateSubnetResponse) XXX_Merge(src proto.Message)

func (*AllocateSubnetResponse) XXX_Size

func (m *AllocateSubnetResponse) XXX_Size() int

func (*AllocateSubnetResponse) XXX_Unmarshal

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

type ConfigureRequest

type ConfigureRequest struct {
	Subnet               *Subnet  `protobuf:"bytes,1,opt,name=subnet" json:"subnet,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ConfigureRequest) Descriptor

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

func (*ConfigureRequest) GetSubnet

func (m *ConfigureRequest) GetSubnet() *Subnet

func (*ConfigureRequest) ProtoMessage

func (*ConfigureRequest) ProtoMessage()

func (*ConfigureRequest) Reset

func (m *ConfigureRequest) Reset()

func (*ConfigureRequest) String

func (m *ConfigureRequest) String() string

func (*ConfigureRequest) XXX_DiscardUnknown

func (m *ConfigureRequest) XXX_DiscardUnknown()

func (*ConfigureRequest) XXX_Marshal

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

func (*ConfigureRequest) XXX_Merge

func (dst *ConfigureRequest) XXX_Merge(src proto.Message)

func (*ConfigureRequest) XXX_Size

func (m *ConfigureRequest) XXX_Size() int

func (*ConfigureRequest) XXX_Unmarshal

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

type DeallocateSubnetRequest

type DeallocateSubnetRequest struct {
	SubnetCIDR           string   `protobuf:"bytes,1,opt,name=subnet_cidr,json=subnetCidr,proto3" json:"subnet_cidr,omitempty"`
	Node                 string   `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeallocateSubnetRequest) Descriptor

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

func (*DeallocateSubnetRequest) GetNode

func (m *DeallocateSubnetRequest) GetNode() string

func (*DeallocateSubnetRequest) GetSubnetCIDR

func (m *DeallocateSubnetRequest) GetSubnetCIDR() string

func (*DeallocateSubnetRequest) ProtoMessage

func (*DeallocateSubnetRequest) ProtoMessage()

func (*DeallocateSubnetRequest) Reset

func (m *DeallocateSubnetRequest) Reset()

func (*DeallocateSubnetRequest) String

func (m *DeallocateSubnetRequest) String() string

func (*DeallocateSubnetRequest) XXX_DiscardUnknown

func (m *DeallocateSubnetRequest) XXX_DiscardUnknown()

func (*DeallocateSubnetRequest) XXX_Marshal

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

func (*DeallocateSubnetRequest) XXX_Merge

func (dst *DeallocateSubnetRequest) XXX_Merge(src proto.Message)

func (*DeallocateSubnetRequest) XXX_Size

func (m *DeallocateSubnetRequest) XXX_Size() int

func (*DeallocateSubnetRequest) XXX_Unmarshal

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

type DeleteRouteRequest

type DeleteRouteRequest struct {
	CIDR                 string   `protobuf:"bytes,1,opt,name=cidr,proto3" json:"cidr,omitempty"`
	Target               string   `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteRouteRequest) Descriptor

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

func (*DeleteRouteRequest) GetCIDR

func (m *DeleteRouteRequest) GetCIDR() string

func (*DeleteRouteRequest) GetTarget

func (m *DeleteRouteRequest) GetTarget() string

func (*DeleteRouteRequest) ProtoMessage

func (*DeleteRouteRequest) ProtoMessage()

func (*DeleteRouteRequest) Reset

func (m *DeleteRouteRequest) Reset()

func (*DeleteRouteRequest) String

func (m *DeleteRouteRequest) String() string

func (*DeleteRouteRequest) XXX_DiscardUnknown

func (m *DeleteRouteRequest) XXX_DiscardUnknown()

func (*DeleteRouteRequest) XXX_Marshal

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

func (*DeleteRouteRequest) XXX_Merge

func (dst *DeleteRouteRequest) XXX_Merge(src proto.Message)

func (*DeleteRouteRequest) XXX_Size

func (m *DeleteRouteRequest) XXX_Size() int

func (*DeleteRouteRequest) XXX_Unmarshal

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

type GetIPRequest

type GetIPRequest struct {
	ID                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Node                 string   `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetIPRequest) Descriptor

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

func (*GetIPRequest) GetID

func (m *GetIPRequest) GetID() string

func (*GetIPRequest) GetNode

func (m *GetIPRequest) GetNode() string

func (*GetIPRequest) ProtoMessage

func (*GetIPRequest) ProtoMessage()

func (*GetIPRequest) Reset

func (m *GetIPRequest) Reset()

func (*GetIPRequest) String

func (m *GetIPRequest) String() string

func (*GetIPRequest) XXX_DiscardUnknown

func (m *GetIPRequest) XXX_DiscardUnknown()

func (*GetIPRequest) XXX_Marshal

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

func (*GetIPRequest) XXX_Merge

func (dst *GetIPRequest) XXX_Merge(src proto.Message)

func (*GetIPRequest) XXX_Size

func (m *GetIPRequest) XXX_Size() int

func (*GetIPRequest) XXX_Unmarshal

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

type GetIPResponse

type GetIPResponse struct {
	IP                   string   `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetIPResponse) Descriptor

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

func (*GetIPResponse) GetIP

func (m *GetIPResponse) GetIP() string

func (*GetIPResponse) ProtoMessage

func (*GetIPResponse) ProtoMessage()

func (*GetIPResponse) Reset

func (m *GetIPResponse) Reset()

func (*GetIPResponse) String

func (m *GetIPResponse) String() string

func (*GetIPResponse) XXX_DiscardUnknown

func (m *GetIPResponse) XXX_DiscardUnknown()

func (*GetIPResponse) XXX_Marshal

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

func (*GetIPResponse) XXX_Merge

func (dst *GetIPResponse) XXX_Merge(src proto.Message)

func (*GetIPResponse) XXX_Size

func (m *GetIPResponse) XXX_Size() int

func (*GetIPResponse) XXX_Unmarshal

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

type GetSubnetRequest

type GetSubnetRequest struct {
	Node                 string   `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetSubnetRequest) Descriptor

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

func (*GetSubnetRequest) GetNode

func (m *GetSubnetRequest) GetNode() string

func (*GetSubnetRequest) ProtoMessage

func (*GetSubnetRequest) ProtoMessage()

func (*GetSubnetRequest) Reset

func (m *GetSubnetRequest) Reset()

func (*GetSubnetRequest) String

func (m *GetSubnetRequest) String() string

func (*GetSubnetRequest) XXX_DiscardUnknown

func (m *GetSubnetRequest) XXX_DiscardUnknown()

func (*GetSubnetRequest) XXX_Marshal

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

func (*GetSubnetRequest) XXX_Merge

func (dst *GetSubnetRequest) XXX_Merge(src proto.Message)

func (*GetSubnetRequest) XXX_Size

func (m *GetSubnetRequest) XXX_Size() int

func (*GetSubnetRequest) XXX_Unmarshal

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

type GetSubnetResponse

type GetSubnetResponse struct {
	SubnetCIDR           string   `protobuf:"bytes,1,opt,name=subnet_cidr,json=subnetCidr,proto3" json:"subnet_cidr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetSubnetResponse) Descriptor

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

func (*GetSubnetResponse) GetSubnetCIDR

func (m *GetSubnetResponse) GetSubnetCIDR() string

func (*GetSubnetResponse) ProtoMessage

func (*GetSubnetResponse) ProtoMessage()

func (*GetSubnetResponse) Reset

func (m *GetSubnetResponse) Reset()

func (*GetSubnetResponse) String

func (m *GetSubnetResponse) String() string

func (*GetSubnetResponse) XXX_DiscardUnknown

func (m *GetSubnetResponse) XXX_DiscardUnknown()

func (*GetSubnetResponse) XXX_Marshal

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

func (*GetSubnetResponse) XXX_Merge

func (dst *GetSubnetResponse) XXX_Merge(src proto.Message)

func (*GetSubnetResponse) XXX_Size

func (m *GetSubnetResponse) XXX_Size() int

func (*GetSubnetResponse) XXX_Unmarshal

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

type InfoRequest added in v0.2.0

type InfoRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InfoRequest) Descriptor added in v0.2.0

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

func (*InfoRequest) ProtoMessage added in v0.2.0

func (*InfoRequest) ProtoMessage()

func (*InfoRequest) Reset added in v0.2.0

func (m *InfoRequest) Reset()

func (*InfoRequest) String added in v0.2.0

func (m *InfoRequest) String() string

func (*InfoRequest) XXX_DiscardUnknown added in v0.2.0

func (m *InfoRequest) XXX_DiscardUnknown()

func (*InfoRequest) XXX_Marshal added in v0.2.0

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

func (*InfoRequest) XXX_Merge added in v0.2.0

func (dst *InfoRequest) XXX_Merge(src proto.Message)

func (*InfoRequest) XXX_Size added in v0.2.0

func (m *InfoRequest) XXX_Size() int

func (*InfoRequest) XXX_Unmarshal added in v0.2.0

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

type InfoResponse added in v0.2.0

type InfoResponse struct {
	ID                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InfoResponse) Descriptor added in v0.2.0

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

func (*InfoResponse) GetID added in v0.2.0

func (m *InfoResponse) GetID() string

func (*InfoResponse) ProtoMessage added in v0.2.0

func (*InfoResponse) ProtoMessage()

func (*InfoResponse) Reset added in v0.2.0

func (m *InfoResponse) Reset()

func (*InfoResponse) String added in v0.2.0

func (m *InfoResponse) String() string

func (*InfoResponse) XXX_DiscardUnknown added in v0.2.0

func (m *InfoResponse) XXX_DiscardUnknown()

func (*InfoResponse) XXX_Marshal added in v0.2.0

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

func (*InfoResponse) XXX_Merge added in v0.2.0

func (dst *InfoResponse) XXX_Merge(src proto.Message)

func (*InfoResponse) XXX_Size added in v0.2.0

func (m *InfoResponse) XXX_Size() int

func (*InfoResponse) XXX_Unmarshal added in v0.2.0

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

type NetworkClient

type NetworkClient interface {
	Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
	AllocateSubnet(ctx context.Context, in *AllocateSubnetRequest, opts ...grpc.CallOption) (*AllocateSubnetResponse, error)
	GetSubnet(ctx context.Context, in *GetSubnetRequest, opts ...grpc.CallOption) (*GetSubnetResponse, error)
	DeallocateSubnet(ctx context.Context, in *DeallocateSubnetRequest, opts ...grpc.CallOption) (*types.Empty, error)
	Subnets(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*SubnetsResponse, error)
	AllocateIP(ctx context.Context, in *AllocateIPRequest, opts ...grpc.CallOption) (*AllocateIPResponse, error)
	GetIP(ctx context.Context, in *GetIPRequest, opts ...grpc.CallOption) (*GetIPResponse, error)
	ReleaseIP(ctx context.Context, in *ReleaseIPRequest, opts ...grpc.CallOption) (*types.Empty, error)
	Configure(ctx context.Context, in *ConfigureRequest, opts ...grpc.CallOption) (*types.Empty, error)
	AddRoute(ctx context.Context, in *AddRouteRequest, opts ...grpc.CallOption) (*types.Empty, error)
	DeleteRoute(ctx context.Context, in *DeleteRouteRequest, opts ...grpc.CallOption) (*types.Empty, error)
	Routes(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*RoutesResponse, error)
}

NetworkClient is the client API for Network service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewNetworkClient

func NewNetworkClient(cc *grpc.ClientConn) NetworkClient

type ReleaseIPRequest

type ReleaseIPRequest struct {
	ID                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	IP                   string   `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	Node                 string   `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReleaseIPRequest) Descriptor

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

func (*ReleaseIPRequest) GetID

func (m *ReleaseIPRequest) GetID() string

func (*ReleaseIPRequest) GetIP

func (m *ReleaseIPRequest) GetIP() string

func (*ReleaseIPRequest) GetNode

func (m *ReleaseIPRequest) GetNode() string

func (*ReleaseIPRequest) ProtoMessage

func (*ReleaseIPRequest) ProtoMessage()

func (*ReleaseIPRequest) Reset

func (m *ReleaseIPRequest) Reset()

func (*ReleaseIPRequest) String

func (m *ReleaseIPRequest) String() string

func (*ReleaseIPRequest) XXX_DiscardUnknown

func (m *ReleaseIPRequest) XXX_DiscardUnknown()

func (*ReleaseIPRequest) XXX_Marshal

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

func (*ReleaseIPRequest) XXX_Merge

func (dst *ReleaseIPRequest) XXX_Merge(src proto.Message)

func (*ReleaseIPRequest) XXX_Size

func (m *ReleaseIPRequest) XXX_Size() int

func (*ReleaseIPRequest) XXX_Unmarshal

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

type Route

type Route struct {
	CIDR                 string   `protobuf:"bytes,1,opt,name=cidr,proto3" json:"cidr,omitempty"`
	Target               string   `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Route) Descriptor

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

func (*Route) GetCIDR

func (m *Route) GetCIDR() string

func (*Route) GetTarget

func (m *Route) GetTarget() string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) String

func (m *Route) String() string

func (*Route) XXX_DiscardUnknown

func (m *Route) XXX_DiscardUnknown()

func (*Route) XXX_Marshal

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

func (*Route) XXX_Merge

func (dst *Route) XXX_Merge(src proto.Message)

func (*Route) XXX_Size

func (m *Route) XXX_Size() int

func (*Route) XXX_Unmarshal

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

type RoutesResponse

type RoutesResponse struct {
	Routes               []*Route `protobuf:"bytes,1,rep,name=routes" json:"routes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RoutesResponse) Descriptor

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

func (*RoutesResponse) GetRoutes

func (m *RoutesResponse) GetRoutes() []*Route

func (*RoutesResponse) ProtoMessage

func (*RoutesResponse) ProtoMessage()

func (*RoutesResponse) Reset

func (m *RoutesResponse) Reset()

func (*RoutesResponse) String

func (m *RoutesResponse) String() string

func (*RoutesResponse) XXX_DiscardUnknown

func (m *RoutesResponse) XXX_DiscardUnknown()

func (*RoutesResponse) XXX_Marshal

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

func (*RoutesResponse) XXX_Merge

func (dst *RoutesResponse) XXX_Merge(src proto.Message)

func (*RoutesResponse) XXX_Size

func (m *RoutesResponse) XXX_Size() int

func (*RoutesResponse) XXX_Unmarshal

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

type Subnet

type Subnet struct {
	CIDR                 string   `protobuf:"bytes,1,opt,name=cidr,proto3" json:"cidr,omitempty"`
	Gateway              string   `protobuf:"bytes,2,opt,name=gateway,proto3" json:"gateway,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Subnet) Descriptor

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

func (*Subnet) GetCIDR

func (m *Subnet) GetCIDR() string

func (*Subnet) GetGateway

func (m *Subnet) GetGateway() string

func (*Subnet) ProtoMessage

func (*Subnet) ProtoMessage()

func (*Subnet) Reset

func (m *Subnet) Reset()

func (*Subnet) String

func (m *Subnet) String() string

func (*Subnet) XXX_DiscardUnknown

func (m *Subnet) XXX_DiscardUnknown()

func (*Subnet) XXX_Marshal

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

func (*Subnet) XXX_Merge

func (dst *Subnet) XXX_Merge(src proto.Message)

func (*Subnet) XXX_Size

func (m *Subnet) XXX_Size() int

func (*Subnet) XXX_Unmarshal

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

type SubnetsResponse

type SubnetsResponse struct {
	Subnets              []*Subnet `protobuf:"bytes,1,rep,name=subnets" json:"subnets,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*SubnetsResponse) Descriptor

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

func (*SubnetsResponse) GetSubnets

func (m *SubnetsResponse) GetSubnets() []*Subnet

func (*SubnetsResponse) ProtoMessage

func (*SubnetsResponse) ProtoMessage()

func (*SubnetsResponse) Reset

func (m *SubnetsResponse) Reset()

func (*SubnetsResponse) String

func (m *SubnetsResponse) String() string

func (*SubnetsResponse) XXX_DiscardUnknown

func (m *SubnetsResponse) XXX_DiscardUnknown()

func (*SubnetsResponse) XXX_Marshal

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

func (*SubnetsResponse) XXX_Merge

func (dst *SubnetsResponse) XXX_Merge(src proto.Message)

func (*SubnetsResponse) XXX_Size

func (m *SubnetsResponse) XXX_Size() int

func (*SubnetsResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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