api

package
v0.0.0-...-8fd779a Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Networks_CreateOrUpdate_FullMethodName = "/networks.Networks/CreateOrUpdate"
	Networks_List_FullMethodName           = "/networks.Networks/List"
	Networks_Get_FullMethodName            = "/networks.Networks/Get"
	Networks_Delete_FullMethodName         = "/networks.Networks/Delete"
)

Variables

View Source
var File_plugin_pkg_services_networks_api_networks_proto protoreflect.FileDescriptor
View Source
var Networks_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "networks.Networks",
	HandlerType: (*NetworksServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOrUpdate",
			Handler:    _Networks_CreateOrUpdate_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Networks_List_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _Networks_Get_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Networks_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin/pkg/services/networks/api/networks.proto",
}

Networks_ServiceDesc is the grpc.ServiceDesc for Networks service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterNetworksServer

func RegisterNetworksServer(s grpc.ServiceRegistrar, srv NetworksServer)

Types

type NetworksClient

type NetworksClient interface {
	CreateOrUpdate(ctx context.Context, in *api.CreateOrUpdateRequest, opts ...grpc.CallOption) (*api.CreateOrUpdateResponse, error)
	List(ctx context.Context, in *api.ListRequest, opts ...grpc.CallOption) (*api.ListResponse, error)
	Get(ctx context.Context, in *api.GetRequest, opts ...grpc.CallOption) (*api.GetResponse, error)
	Delete(ctx context.Context, in *api.DeleteRequest, opts ...grpc.CallOption) (*api.DeleteResponse, error)
}

NetworksClient is the client API for Networks service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewNetworksClient

func NewNetworksClient(cc grpc.ClientConnInterface) NetworksClient

type NetworksServer

type NetworksServer interface {
	CreateOrUpdate(context.Context, *api.CreateOrUpdateRequest) (*api.CreateOrUpdateResponse, error)
	List(context.Context, *api.ListRequest) (*api.ListResponse, error)
	Get(context.Context, *api.GetRequest) (*api.GetResponse, error)
	Delete(context.Context, *api.DeleteRequest) (*api.DeleteResponse, error)
	// contains filtered or unexported methods
}

NetworksServer is the server API for Networks service. All implementations must embed UnimplementedNetworksServer for forward compatibility.

type UnimplementedNetworksServer

type UnimplementedNetworksServer struct{}

UnimplementedNetworksServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedNetworksServer) CreateOrUpdate

func (UnimplementedNetworksServer) Delete

func (UnimplementedNetworksServer) Get

func (UnimplementedNetworksServer) List

type UnsafeNetworksServer

type UnsafeNetworksServer interface {
	// contains filtered or unexported methods
}

UnsafeNetworksServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NetworksServer will result in compilation errors.

Directories

Path Synopsis
features

Jump to

Keyboard shortcuts

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