rpcpb

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package rpcpb provides RPC client and server interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGenericServer added in v0.7.0

func RegisterGenericServer(s *grpc.Server, srv GenericServer)

func RegisterGroupsServer

func RegisterGroupsServer(s *grpc.Server, srv GroupsServer)

func RegisterIgnitionServer

func RegisterIgnitionServer(s *grpc.Server, srv IgnitionServer)

func RegisterProfilesServer

func RegisterProfilesServer(s *grpc.Server, srv ProfilesServer)

func RegisterSelectServer

func RegisterSelectServer(s *grpc.Server, srv SelectServer)

Types

type GenericClient added in v0.7.0

type GenericClient interface {
	// Create or update a Generic template.
	GenericPut(ctx context.Context, in *serverpb.GenericPutRequest, opts ...grpc.CallOption) (*serverpb.GenericPutResponse, error)
	// Get a Generic template by name.
	GenericGet(ctx context.Context, in *serverpb.GenericGetRequest, opts ...grpc.CallOption) (*serverpb.GenericGetResponse, error)
	// Delete a Generic template by name.
	GenericDelete(ctx context.Context, in *serverpb.GenericDeleteRequest, opts ...grpc.CallOption) (*serverpb.GenericDeleteResponse, error)
}

GenericClient is the client API for Generic service.

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

func NewGenericClient added in v0.7.0

func NewGenericClient(cc *grpc.ClientConn) GenericClient

type GenericServer added in v0.7.0

type GenericServer interface {
	// Create or update a Generic template.
	GenericPut(context.Context, *serverpb.GenericPutRequest) (*serverpb.GenericPutResponse, error)
	// Get a Generic template by name.
	GenericGet(context.Context, *serverpb.GenericGetRequest) (*serverpb.GenericGetResponse, error)
	// Delete a Generic template by name.
	GenericDelete(context.Context, *serverpb.GenericDeleteRequest) (*serverpb.GenericDeleteResponse, error)
}

GenericServer is the server API for Generic service.

type GroupsClient

type GroupsClient interface {
	// Create a Group.
	GroupPut(ctx context.Context, in *serverpb.GroupPutRequest, opts ...grpc.CallOption) (*serverpb.GroupPutResponse, error)
	// Get a machine Group by id.
	GroupGet(ctx context.Context, in *serverpb.GroupGetRequest, opts ...grpc.CallOption) (*serverpb.GroupGetResponse, error)
	// Delete a machine Group by id.
	GroupDelete(ctx context.Context, in *serverpb.GroupDeleteRequest, opts ...grpc.CallOption) (*serverpb.GroupDeleteResponse, error)
	// List all machine Groups.
	GroupList(ctx context.Context, in *serverpb.GroupListRequest, opts ...grpc.CallOption) (*serverpb.GroupListResponse, error)
}

GroupsClient is the client API for Groups service.

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

func NewGroupsClient

func NewGroupsClient(cc *grpc.ClientConn) GroupsClient

type GroupsServer

type GroupsServer interface {
	// Create a Group.
	GroupPut(context.Context, *serverpb.GroupPutRequest) (*serverpb.GroupPutResponse, error)
	// Get a machine Group by id.
	GroupGet(context.Context, *serverpb.GroupGetRequest) (*serverpb.GroupGetResponse, error)
	// Delete a machine Group by id.
	GroupDelete(context.Context, *serverpb.GroupDeleteRequest) (*serverpb.GroupDeleteResponse, error)
	// List all machine Groups.
	GroupList(context.Context, *serverpb.GroupListRequest) (*serverpb.GroupListResponse, error)
}

GroupsServer is the server API for Groups service.

type IgnitionClient

type IgnitionClient interface {
	// Create or update a Container Linux Config template.
	IgnitionPut(ctx context.Context, in *serverpb.IgnitionPutRequest, opts ...grpc.CallOption) (*serverpb.IgnitionPutResponse, error)
	// Get a Container Linux Config template by name.
	IgnitionGet(ctx context.Context, in *serverpb.IgnitionGetRequest, opts ...grpc.CallOption) (*serverpb.IgnitionGetResponse, error)
	// Delete a Container Linux Config template by name.
	IgnitionDelete(ctx context.Context, in *serverpb.IgnitionDeleteRequest, opts ...grpc.CallOption) (*serverpb.IgnitionDeleteResponse, error)
}

IgnitionClient is the client API for Ignition service.

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

func NewIgnitionClient

func NewIgnitionClient(cc *grpc.ClientConn) IgnitionClient

type IgnitionServer

type IgnitionServer interface {
	// Create or update a Container Linux Config template.
	IgnitionPut(context.Context, *serverpb.IgnitionPutRequest) (*serverpb.IgnitionPutResponse, error)
	// Get a Container Linux Config template by name.
	IgnitionGet(context.Context, *serverpb.IgnitionGetRequest) (*serverpb.IgnitionGetResponse, error)
	// Delete a Container Linux Config template by name.
	IgnitionDelete(context.Context, *serverpb.IgnitionDeleteRequest) (*serverpb.IgnitionDeleteResponse, error)
}

IgnitionServer is the server API for Ignition service.

type ProfilesClient

type ProfilesClient interface {
	// Create a Profile.
	ProfilePut(ctx context.Context, in *serverpb.ProfilePutRequest, opts ...grpc.CallOption) (*serverpb.ProfilePutResponse, error)
	// Get a Profile by id.
	ProfileGet(ctx context.Context, in *serverpb.ProfileGetRequest, opts ...grpc.CallOption) (*serverpb.ProfileGetResponse, error)
	// Delete a Profile by id.
	ProfileDelete(ctx context.Context, in *serverpb.ProfileDeleteRequest, opts ...grpc.CallOption) (*serverpb.ProfileDeleteResponse, error)
	// List all Profiles.
	ProfileList(ctx context.Context, in *serverpb.ProfileListRequest, opts ...grpc.CallOption) (*serverpb.ProfileListResponse, error)
}

ProfilesClient is the client API for Profiles service.

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

func NewProfilesClient

func NewProfilesClient(cc *grpc.ClientConn) ProfilesClient

type ProfilesServer

type ProfilesServer interface {
	// Create a Profile.
	ProfilePut(context.Context, *serverpb.ProfilePutRequest) (*serverpb.ProfilePutResponse, error)
	// Get a Profile by id.
	ProfileGet(context.Context, *serverpb.ProfileGetRequest) (*serverpb.ProfileGetResponse, error)
	// Delete a Profile by id.
	ProfileDelete(context.Context, *serverpb.ProfileDeleteRequest) (*serverpb.ProfileDeleteResponse, error)
	// List all Profiles.
	ProfileList(context.Context, *serverpb.ProfileListRequest) (*serverpb.ProfileListResponse, error)
}

ProfilesServer is the server API for Profiles service.

type SelectClient

type SelectClient interface {
	// SelectGroup returns the Group matching the given labels.
	SelectGroup(ctx context.Context, in *serverpb.SelectGroupRequest, opts ...grpc.CallOption) (*serverpb.SelectGroupResponse, error)
	// SelectProfile returns the Profile matching the given labels.
	SelectProfile(ctx context.Context, in *serverpb.SelectProfileRequest, opts ...grpc.CallOption) (*serverpb.SelectProfileResponse, error)
}

SelectClient is the client API for Select service.

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

func NewSelectClient

func NewSelectClient(cc *grpc.ClientConn) SelectClient

type SelectServer

type SelectServer interface {
	// SelectGroup returns the Group matching the given labels.
	SelectGroup(context.Context, *serverpb.SelectGroupRequest) (*serverpb.SelectGroupResponse, error)
	// SelectProfile returns the Profile matching the given labels.
	SelectProfile(context.Context, *serverpb.SelectProfileRequest) (*serverpb.SelectProfileResponse, error)
}

SelectServer is the server API for Select service.

type UnimplementedGenericServer added in v0.9.0

type UnimplementedGenericServer struct {
}

UnimplementedGenericServer can be embedded to have forward compatible implementations.

func (*UnimplementedGenericServer) GenericDelete added in v0.9.0

func (*UnimplementedGenericServer) GenericGet added in v0.9.0

func (*UnimplementedGenericServer) GenericPut added in v0.9.0

type UnimplementedGroupsServer added in v0.9.0

type UnimplementedGroupsServer struct {
}

UnimplementedGroupsServer can be embedded to have forward compatible implementations.

func (*UnimplementedGroupsServer) GroupDelete added in v0.9.0

func (*UnimplementedGroupsServer) GroupGet added in v0.9.0

func (*UnimplementedGroupsServer) GroupList added in v0.9.0

func (*UnimplementedGroupsServer) GroupPut added in v0.9.0

type UnimplementedIgnitionServer added in v0.9.0

type UnimplementedIgnitionServer struct {
}

UnimplementedIgnitionServer can be embedded to have forward compatible implementations.

func (*UnimplementedIgnitionServer) IgnitionDelete added in v0.9.0

func (*UnimplementedIgnitionServer) IgnitionGet added in v0.9.0

func (*UnimplementedIgnitionServer) IgnitionPut added in v0.9.0

type UnimplementedProfilesServer added in v0.9.0

type UnimplementedProfilesServer struct {
}

UnimplementedProfilesServer can be embedded to have forward compatible implementations.

func (*UnimplementedProfilesServer) ProfileDelete added in v0.9.0

func (*UnimplementedProfilesServer) ProfileGet added in v0.9.0

func (*UnimplementedProfilesServer) ProfileList added in v0.9.0

func (*UnimplementedProfilesServer) ProfilePut added in v0.9.0

type UnimplementedSelectServer added in v0.9.0

type UnimplementedSelectServer struct {
}

UnimplementedSelectServer can be embedded to have forward compatible implementations.

func (*UnimplementedSelectServer) SelectGroup added in v0.9.0

func (*UnimplementedSelectServer) SelectProfile added in v0.9.0

Jump to

Keyboard shortcuts

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