Documentation ¶
Index ¶
- Variables
- func RegisterPluginServer(s grpc.ServiceRegistrar, srv PluginServer)
- type GetPluginConfig
- type GetPluginConfig_Request
- type GetPluginConfig_Response
- func (*GetPluginConfig_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetPluginConfig_Response) GetConfig() string
- func (*GetPluginConfig_Response) ProtoMessage()
- func (x *GetPluginConfig_Response) ProtoReflect() protoreflect.Message
- func (x *GetPluginConfig_Response) Reset()
- func (x *GetPluginConfig_Response) String() string
- type Initialize
- type Initialize_Request
- func (*Initialize_Request) Descriptor() ([]byte, []int)deprecated
- func (x *Initialize_Request) GetConfig() string
- func (*Initialize_Request) ProtoMessage()
- func (x *Initialize_Request) ProtoReflect() protoreflect.Message
- func (x *Initialize_Request) Reset()
- func (x *Initialize_Request) String() string
- type Initialize_Response
- type Mutate
- type Mutate_Request
- func (*Mutate_Request) Descriptor() ([]byte, []int)deprecated
- func (x *Mutate_Request) GetApiVersion() string
- func (x *Mutate_Request) GetKind() string
- func (x *Mutate_Request) GetObject() string
- func (x *Mutate_Request) GetType() string
- func (*Mutate_Request) ProtoMessage()
- func (x *Mutate_Request) ProtoReflect() protoreflect.Message
- func (x *Mutate_Request) Reset()
- func (x *Mutate_Request) String() string
- type Mutate_Response
- func (*Mutate_Response) Descriptor() ([]byte, []int)deprecated
- func (x *Mutate_Response) GetMutated() bool
- func (x *Mutate_Response) GetObject() string
- func (*Mutate_Response) ProtoMessage()
- func (x *Mutate_Response) ProtoReflect() protoreflect.Message
- func (x *Mutate_Response) Reset()
- func (x *Mutate_Response) String() string
- type PluginClient
- type PluginServer
- type SetLeader
- type SetLeader_Request
- type SetLeader_Response
- type UnimplementedPluginServer
- func (UnimplementedPluginServer) GetPluginConfig(context.Context, *GetPluginConfig_Request) (*GetPluginConfig_Response, error)
- func (UnimplementedPluginServer) Initialize(context.Context, *Initialize_Request) (*Initialize_Response, error)
- func (UnimplementedPluginServer) Mutate(context.Context, *Mutate_Request) (*Mutate_Response, error)
- func (UnimplementedPluginServer) SetLeader(context.Context, *SetLeader_Request) (*SetLeader_Response, error)
- type UnsafePluginServer
Constants ¶
This section is empty.
Variables ¶
var File_pluginv2_proto protoreflect.FileDescriptor
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) ProtoMessage ¶
func (*Mutate) ProtoMessage()
func (*Mutate) ProtoReflect ¶
func (x *Mutate) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*SetLeader) ProtoMessage()
func (*SetLeader) ProtoReflect ¶
func (x *SetLeader) ProtoReflect() protoreflect.Message
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) GetPluginConfig(context.Context, *GetPluginConfig_Request) (*GetPluginConfig_Response, error)
func (UnimplementedPluginServer) Initialize ¶
func (UnimplementedPluginServer) Initialize(context.Context, *Initialize_Request) (*Initialize_Response, error)
func (UnimplementedPluginServer) Mutate ¶
func (UnimplementedPluginServer) Mutate(context.Context, *Mutate_Request) (*Mutate_Response, error)
func (UnimplementedPluginServer) SetLeader ¶
func (UnimplementedPluginServer) SetLeader(context.Context, *SetLeader_Request) (*SetLeader_Response, error)
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.