plugin

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_spire_common_plugin_plugin_proto protoreflect.FileDescriptor
View Source
var PluginInit_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spire.common.plugin.PluginInit",
	HandlerType: (*PluginInitServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Init",
			Handler:    _PluginInit_Init_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spire/common/plugin/plugin.proto",
}

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

Functions

func PluginInitPluginServer

func PluginInitPluginServer(server PluginInitServer) pluginsdk.PluginServer

func RegisterPluginInitServer

func RegisterPluginInitServer(s grpc.ServiceRegistrar, srv PluginInitServer)

Types

type ConfigureRequest

type ConfigureRequest struct {

	// * The configuration for the plugin.
	Configuration string `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"`
	// * Global configurations.
	GlobalConfig *ConfigureRequest_GlobalConfig `protobuf:"bytes,2,opt,name=globalConfig,proto3" json:"globalConfig,omitempty"`
	// contains filtered or unexported fields
}

* Represents the plugin-specific configuration string.

func (*ConfigureRequest) Descriptor deprecated

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

Deprecated: Use ConfigureRequest.ProtoReflect.Descriptor instead.

func (*ConfigureRequest) GetConfiguration

func (x *ConfigureRequest) GetConfiguration() string

func (*ConfigureRequest) GetGlobalConfig

func (x *ConfigureRequest) GetGlobalConfig() *ConfigureRequest_GlobalConfig

func (*ConfigureRequest) ProtoMessage

func (*ConfigureRequest) ProtoMessage()

func (*ConfigureRequest) ProtoReflect

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

func (*ConfigureRequest) Reset

func (x *ConfigureRequest) Reset()

func (*ConfigureRequest) String

func (x *ConfigureRequest) String() string

type ConfigureRequest_GlobalConfig

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

* Global configuration nested type.

func (*ConfigureRequest_GlobalConfig) Descriptor deprecated

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

Deprecated: Use ConfigureRequest_GlobalConfig.ProtoReflect.Descriptor instead.

func (*ConfigureRequest_GlobalConfig) GetTrustDomain

func (x *ConfigureRequest_GlobalConfig) GetTrustDomain() string

func (*ConfigureRequest_GlobalConfig) ProtoMessage

func (*ConfigureRequest_GlobalConfig) ProtoMessage()

func (*ConfigureRequest_GlobalConfig) ProtoReflect

func (*ConfigureRequest_GlobalConfig) Reset

func (x *ConfigureRequest_GlobalConfig) Reset()

func (*ConfigureRequest_GlobalConfig) String

type ConfigureResponse

type ConfigureResponse struct {

	// * A list of errors
	ErrorList []string `protobuf:"bytes,1,rep,name=errorList,proto3" json:"errorList,omitempty"`
	// contains filtered or unexported fields
}

* Represents a list of configuration problems found in the configuration string.

func (*ConfigureResponse) Descriptor deprecated

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

Deprecated: Use ConfigureResponse.ProtoReflect.Descriptor instead.

func (*ConfigureResponse) GetErrorList

func (x *ConfigureResponse) GetErrorList() []string

func (*ConfigureResponse) ProtoMessage

func (*ConfigureResponse) ProtoMessage()

func (*ConfigureResponse) ProtoReflect

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

func (*ConfigureResponse) Reset

func (x *ConfigureResponse) Reset()

func (*ConfigureResponse) String

func (x *ConfigureResponse) String() string

type GetPluginInfoRequest

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

* Represents an empty request.

func (*GetPluginInfoRequest) Descriptor deprecated

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

Deprecated: Use GetPluginInfoRequest.ProtoReflect.Descriptor instead.

func (*GetPluginInfoRequest) ProtoMessage

func (*GetPluginInfoRequest) ProtoMessage()

func (*GetPluginInfoRequest) ProtoReflect

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

func (*GetPluginInfoRequest) Reset

func (x *GetPluginInfoRequest) Reset()

func (*GetPluginInfoRequest) String

func (x *GetPluginInfoRequest) String() string

type GetPluginInfoResponse

type GetPluginInfoResponse struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Category    string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
	Type        string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	DateCreated string `protobuf:"bytes,5,opt,name=dateCreated,proto3" json:"dateCreated,omitempty"`
	Location    string `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"`
	Version     string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
	Author      string `protobuf:"bytes,8,opt,name=author,proto3" json:"author,omitempty"`
	Company     string `protobuf:"bytes,9,opt,name=company,proto3" json:"company,omitempty"`
	// contains filtered or unexported fields
}

* Represents the plugin metadata.

func (*GetPluginInfoResponse) Descriptor deprecated

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

Deprecated: Use GetPluginInfoResponse.ProtoReflect.Descriptor instead.

func (*GetPluginInfoResponse) GetAuthor

func (x *GetPluginInfoResponse) GetAuthor() string

func (*GetPluginInfoResponse) GetCategory

func (x *GetPluginInfoResponse) GetCategory() string

func (*GetPluginInfoResponse) GetCompany

func (x *GetPluginInfoResponse) GetCompany() string

func (*GetPluginInfoResponse) GetDateCreated

func (x *GetPluginInfoResponse) GetDateCreated() string

func (*GetPluginInfoResponse) GetDescription

func (x *GetPluginInfoResponse) GetDescription() string

func (*GetPluginInfoResponse) GetLocation

func (x *GetPluginInfoResponse) GetLocation() string

func (*GetPluginInfoResponse) GetName

func (x *GetPluginInfoResponse) GetName() string

func (*GetPluginInfoResponse) GetType

func (x *GetPluginInfoResponse) GetType() string

func (*GetPluginInfoResponse) GetVersion

func (x *GetPluginInfoResponse) GetVersion() string

func (*GetPluginInfoResponse) ProtoMessage

func (*GetPluginInfoResponse) ProtoMessage()

func (*GetPluginInfoResponse) ProtoReflect

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

func (*GetPluginInfoResponse) Reset

func (x *GetPluginInfoResponse) Reset()

func (*GetPluginInfoResponse) String

func (x *GetPluginInfoResponse) String() string

type InitRequest

type InitRequest struct {
	HostServices []string `protobuf:"bytes,1,rep,name=host_services,json=hostServices,proto3" json:"host_services,omitempty"`
	// contains filtered or unexported fields
}

func (*InitRequest) Descriptor deprecated

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

Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.

func (*InitRequest) GetHostServices

func (x *InitRequest) GetHostServices() []string

func (*InitRequest) ProtoMessage

func (*InitRequest) ProtoMessage()

func (*InitRequest) ProtoReflect

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

func (*InitRequest) Reset

func (x *InitRequest) Reset()

func (*InitRequest) String

func (x *InitRequest) String() string

type InitResponse

type InitResponse struct {
	PluginServices []string `protobuf:"bytes,1,rep,name=plugin_services,json=pluginServices,proto3" json:"plugin_services,omitempty"`
	// contains filtered or unexported fields
}

func (*InitResponse) Descriptor deprecated

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

Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.

func (*InitResponse) GetPluginServices

func (x *InitResponse) GetPluginServices() []string

func (*InitResponse) ProtoMessage

func (*InitResponse) ProtoMessage()

func (*InitResponse) ProtoReflect

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

func (*InitResponse) Reset

func (x *InitResponse) Reset()

func (*InitResponse) String

func (x *InitResponse) String() string

type PluginInitClient

type PluginInitClient interface {
	Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error)
}

PluginInitClient is the client API for PluginInit 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 NewPluginInitClient

func NewPluginInitClient(cc grpc.ClientConnInterface) PluginInitClient

type PluginInitPluginClient

type PluginInitPluginClient struct {
	PluginInitClient
}

func (*PluginInitPluginClient) GRPCServiceName

func (c *PluginInitPluginClient) GRPCServiceName() string

func (*PluginInitPluginClient) InitClient

func (c *PluginInitPluginClient) InitClient(conn grpc.ClientConnInterface) interface{}

func (*PluginInitPluginClient) IsInitialized

func (c *PluginInitPluginClient) IsInitialized() bool

func (PluginInitPluginClient) Type

func (s PluginInitPluginClient) Type() string

type PluginInitServer

type PluginInitServer interface {
	Init(context.Context, *InitRequest) (*InitResponse, error)
	// contains filtered or unexported methods
}

PluginInitServer is the server API for PluginInit service. All implementations must embed UnimplementedPluginInitServer for forward compatibility

type UnimplementedPluginInitServer

type UnimplementedPluginInitServer struct {
}

UnimplementedPluginInitServer must be embedded to have forward compatible implementations.

func (UnimplementedPluginInitServer) Init

type UnsafePluginInitServer

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

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

Jump to

Keyboard shortcuts

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