pluginv2

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pluginv2_proto protoreflect.FileDescriptor
View Source
var Plugin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pluginv2.Plugin",
	HandlerType: (*PluginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Initialize",
			Handler:    _Plugin_Initialize_Handler,
		},
		{
			MethodName: "SetLeader",
			Handler:    _Plugin_SetLeader_Handler,
		},
		{
			MethodName: "GetPluginConfig",
			Handler:    _Plugin_GetPluginConfig_Handler,
		},
		{
			MethodName: "Mutate",
			Handler:    _Plugin_Mutate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pluginv2.proto",
}

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

Functions

func RegisterPluginServer

func RegisterPluginServer(s grpc.ServiceRegistrar, srv PluginServer)

Types

type GetPluginConfig

type GetPluginConfig struct {
	// contains filtered or unexported fields
}

func (*GetPluginConfig) Descriptor deprecated

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

Deprecated: Use GetPluginConfig.ProtoReflect.Descriptor instead.

func (*GetPluginConfig) ProtoMessage

func (*GetPluginConfig) ProtoMessage()

func (*GetPluginConfig) ProtoReflect

func (x *GetPluginConfig) ProtoReflect() protoreflect.Message

func (*GetPluginConfig) Reset

func (x *GetPluginConfig) Reset()

func (*GetPluginConfig) String

func (x *GetPluginConfig) String() string

type GetPluginConfig_Request

type GetPluginConfig_Request struct {
	// contains filtered or unexported fields
}

func (*GetPluginConfig_Request) Descriptor deprecated

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

Deprecated: Use GetPluginConfig_Request.ProtoReflect.Descriptor instead.

func (*GetPluginConfig_Request) ProtoMessage

func (*GetPluginConfig_Request) ProtoMessage()

func (*GetPluginConfig_Request) ProtoReflect

func (x *GetPluginConfig_Request) ProtoReflect() protoreflect.Message

func (*GetPluginConfig_Request) Reset

func (x *GetPluginConfig_Request) Reset()

func (*GetPluginConfig_Request) String

func (x *GetPluginConfig_Request) String() string

type GetPluginConfig_Response

type GetPluginConfig_Response struct {
	Config string `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPluginConfig_Response) Descriptor deprecated

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

Deprecated: Use GetPluginConfig_Response.ProtoReflect.Descriptor instead.

func (*GetPluginConfig_Response) GetConfig

func (x *GetPluginConfig_Response) GetConfig() string

func (*GetPluginConfig_Response) ProtoMessage

func (*GetPluginConfig_Response) ProtoMessage()

func (*GetPluginConfig_Response) ProtoReflect

func (x *GetPluginConfig_Response) ProtoReflect() protoreflect.Message

func (*GetPluginConfig_Response) Reset

func (x *GetPluginConfig_Response) Reset()

func (*GetPluginConfig_Response) String

func (x *GetPluginConfig_Response) String() string

type Initialize

type Initialize struct {
	// contains filtered or unexported fields
}

func (*Initialize) Descriptor deprecated

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

Deprecated: Use Initialize.ProtoReflect.Descriptor instead.

func (*Initialize) ProtoMessage

func (*Initialize) ProtoMessage()

func (*Initialize) ProtoReflect

func (x *Initialize) ProtoReflect() protoreflect.Message

func (*Initialize) Reset

func (x *Initialize) Reset()

func (*Initialize) String

func (x *Initialize) String() string

type Initialize_Request

type Initialize_Request struct {
	Config string `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*Initialize_Request) Descriptor deprecated

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

Deprecated: Use Initialize_Request.ProtoReflect.Descriptor instead.

func (*Initialize_Request) GetConfig

func (x *Initialize_Request) GetConfig() string

func (*Initialize_Request) ProtoMessage

func (*Initialize_Request) ProtoMessage()

func (*Initialize_Request) ProtoReflect

func (x *Initialize_Request) ProtoReflect() protoreflect.Message

func (*Initialize_Request) Reset

func (x *Initialize_Request) Reset()

func (*Initialize_Request) String

func (x *Initialize_Request) String() string

type Initialize_Response

type Initialize_Response struct {
	// contains filtered or unexported fields
}

func (*Initialize_Response) Descriptor deprecated

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

Deprecated: Use Initialize_Response.ProtoReflect.Descriptor instead.

func (*Initialize_Response) ProtoMessage

func (*Initialize_Response) ProtoMessage()

func (*Initialize_Response) ProtoReflect

func (x *Initialize_Response) ProtoReflect() protoreflect.Message

func (*Initialize_Response) Reset

func (x *Initialize_Response) Reset()

func (*Initialize_Response) String

func (x *Initialize_Response) String() string

type Mutate

type Mutate struct {
	// contains filtered or unexported fields
}

func (*Mutate) Descriptor deprecated

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

Deprecated: Use Mutate.ProtoReflect.Descriptor instead.

func (*Mutate) ProtoMessage

func (*Mutate) ProtoMessage()

func (*Mutate) ProtoReflect

func (x *Mutate) ProtoReflect() protoreflect.Message

func (*Mutate) Reset

func (x *Mutate) Reset()

func (*Mutate) String

func (x *Mutate) String() string

type Mutate_Request

type Mutate_Request struct {
	ApiVersion string `protobuf:"bytes,1,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"`
	Kind       string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	Object     string `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	Type       string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Mutate_Request) Descriptor deprecated

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

Deprecated: Use Mutate_Request.ProtoReflect.Descriptor instead.

func (*Mutate_Request) GetApiVersion

func (x *Mutate_Request) GetApiVersion() string

func (*Mutate_Request) GetKind

func (x *Mutate_Request) GetKind() string

func (*Mutate_Request) GetObject

func (x *Mutate_Request) GetObject() string

func (*Mutate_Request) GetType

func (x *Mutate_Request) GetType() string

func (*Mutate_Request) ProtoMessage

func (*Mutate_Request) ProtoMessage()

func (*Mutate_Request) ProtoReflect

func (x *Mutate_Request) ProtoReflect() protoreflect.Message

func (*Mutate_Request) Reset

func (x *Mutate_Request) Reset()

func (*Mutate_Request) String

func (x *Mutate_Request) String() string

type Mutate_Response

type Mutate_Response struct {
	Object  string `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Mutated bool   `protobuf:"varint,2,opt,name=mutated,proto3" json:"mutated,omitempty"`
	// contains filtered or unexported fields
}

func (*Mutate_Response) Descriptor deprecated

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

Deprecated: Use Mutate_Response.ProtoReflect.Descriptor instead.

func (*Mutate_Response) GetMutated

func (x *Mutate_Response) GetMutated() bool

func (*Mutate_Response) GetObject

func (x *Mutate_Response) GetObject() string

func (*Mutate_Response) ProtoMessage

func (*Mutate_Response) ProtoMessage()

func (*Mutate_Response) ProtoReflect

func (x *Mutate_Response) ProtoReflect() protoreflect.Message

func (*Mutate_Response) Reset

func (x *Mutate_Response) Reset()

func (*Mutate_Response) String

func (x *Mutate_Response) String() string

type PluginClient

type PluginClient interface {
	Initialize(ctx context.Context, in *Initialize_Request, opts ...grpc.CallOption) (*Initialize_Response, error)
	SetLeader(ctx context.Context, in *SetLeader_Request, opts ...grpc.CallOption) (*SetLeader_Response, error)
	GetPluginConfig(ctx context.Context, in *GetPluginConfig_Request, opts ...grpc.CallOption) (*GetPluginConfig_Response, error)
	Mutate(ctx context.Context, in *Mutate_Request, opts ...grpc.CallOption) (*Mutate_Response, error)
}

PluginClient is the client API for Plugin 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 NewPluginClient

func NewPluginClient(cc grpc.ClientConnInterface) PluginClient

type PluginServer

type PluginServer interface {
	Initialize(context.Context, *Initialize_Request) (*Initialize_Response, error)
	SetLeader(context.Context, *SetLeader_Request) (*SetLeader_Response, error)
	GetPluginConfig(context.Context, *GetPluginConfig_Request) (*GetPluginConfig_Response, error)
	Mutate(context.Context, *Mutate_Request) (*Mutate_Response, error)
	// contains filtered or unexported methods
}

PluginServer is the server API for Plugin service. All implementations must embed UnimplementedPluginServer for forward compatibility

type SetLeader

type SetLeader struct {
	// contains filtered or unexported fields
}

func (*SetLeader) Descriptor deprecated

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

Deprecated: Use SetLeader.ProtoReflect.Descriptor instead.

func (*SetLeader) ProtoMessage

func (*SetLeader) ProtoMessage()

func (*SetLeader) ProtoReflect

func (x *SetLeader) ProtoReflect() protoreflect.Message

func (*SetLeader) Reset

func (x *SetLeader) Reset()

func (*SetLeader) String

func (x *SetLeader) String() string

type SetLeader_Request

type SetLeader_Request struct {
	// contains filtered or unexported fields
}

func (*SetLeader_Request) Descriptor deprecated

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

Deprecated: Use SetLeader_Request.ProtoReflect.Descriptor instead.

func (*SetLeader_Request) ProtoMessage

func (*SetLeader_Request) ProtoMessage()

func (*SetLeader_Request) ProtoReflect

func (x *SetLeader_Request) ProtoReflect() protoreflect.Message

func (*SetLeader_Request) Reset

func (x *SetLeader_Request) Reset()

func (*SetLeader_Request) String

func (x *SetLeader_Request) String() string

type SetLeader_Response

type SetLeader_Response struct {
	// contains filtered or unexported fields
}

func (*SetLeader_Response) Descriptor deprecated

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

Deprecated: Use SetLeader_Response.ProtoReflect.Descriptor instead.

func (*SetLeader_Response) ProtoMessage

func (*SetLeader_Response) ProtoMessage()

func (*SetLeader_Response) ProtoReflect

func (x *SetLeader_Response) ProtoReflect() protoreflect.Message

func (*SetLeader_Response) Reset

func (x *SetLeader_Response) Reset()

func (*SetLeader_Response) String

func (x *SetLeader_Response) String() string

type UnimplementedPluginServer

type UnimplementedPluginServer struct {
}

UnimplementedPluginServer must be embedded to have forward compatible implementations.

func (UnimplementedPluginServer) GetPluginConfig

func (UnimplementedPluginServer) Initialize

func (UnimplementedPluginServer) Mutate

func (UnimplementedPluginServer) SetLeader

type UnsafePluginServer

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

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

Jump to

Keyboard shortcuts

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