Documentation ¶
Index ¶
- type EdgenetworkV1
- func (s *EdgenetworkV1) CreateNetwork(ctx context.Context, req *pb.CreateNetworkRequest) (*longrunning.Operation, error)
- func (s *EdgenetworkV1) CreateSubnet(ctx context.Context, req *pb.CreateSubnetRequest) (*longrunning.Operation, error)
- func (s *EdgenetworkV1) DeleteNetwork(ctx context.Context, req *pb.DeleteNetworkRequest) (*longrunning.Operation, error)
- func (s *EdgenetworkV1) DeleteSubnet(ctx context.Context, req *pb.DeleteSubnetRequest) (*longrunning.Operation, error)
- func (s *EdgenetworkV1) GetNetwork(ctx context.Context, req *pb.GetNetworkRequest) (*pb.Network, error)
- func (s *EdgenetworkV1) GetSubnet(ctx context.Context, req *pb.GetSubnetRequest) (*pb.Subnet, error)
- type MockService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EdgenetworkV1 ¶
type EdgenetworkV1 struct { *MockService pb.UnimplementedEdgeNetworkServer }
func (*EdgenetworkV1) CreateNetwork ¶
func (s *EdgenetworkV1) CreateNetwork(ctx context.Context, req *pb.CreateNetworkRequest) (*longrunning.Operation, error)
func (*EdgenetworkV1) CreateSubnet ¶
func (s *EdgenetworkV1) CreateSubnet(ctx context.Context, req *pb.CreateSubnetRequest) (*longrunning.Operation, error)
func (*EdgenetworkV1) DeleteNetwork ¶
func (s *EdgenetworkV1) DeleteNetwork(ctx context.Context, req *pb.DeleteNetworkRequest) (*longrunning.Operation, error)
func (*EdgenetworkV1) DeleteSubnet ¶
func (s *EdgenetworkV1) DeleteSubnet(ctx context.Context, req *pb.DeleteSubnetRequest) (*longrunning.Operation, error)
func (*EdgenetworkV1) GetNetwork ¶
func (s *EdgenetworkV1) GetNetwork(ctx context.Context, req *pb.GetNetworkRequest) (*pb.Network, error)
func (*EdgenetworkV1) GetSubnet ¶
func (s *EdgenetworkV1) GetSubnet(ctx context.Context, req *pb.GetSubnetRequest) (*pb.Subnet, error)
type MockService ¶
type MockService struct { *common.MockEnvironment // contains filtered or unexported fields }
MockService represents a mocked edgenetwork service.
func New ¶
func New(env *common.MockEnvironment, storage storage.Storage) *MockService
New creates a MockService.
func (*MockService) ExpectedHosts ¶
func (s *MockService) ExpectedHosts() []string
func (*MockService) NewHTTPMux ¶
func (s *MockService) NewHTTPMux(ctx context.Context, conn *grpc.ClientConn) (http.Handler, error)
func (*MockService) Register ¶
func (s *MockService) Register(grpcServer *grpc.Server)
Click to show internal directories.
Click to hide internal directories.