proto

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceOpenerPlugin_GetSupportedOpenTypes_FullMethodName = "/p5.plugin.v0.ResourceOpenerPlugin/GetSupportedOpenTypes"
	ResourceOpenerPlugin_OpenResource_FullMethodName          = "/p5.plugin.v0.ResourceOpenerPlugin/OpenResource"
)
View Source
const (
	AuthPlugin_Authenticate_FullMethodName = "/p5.plugin.v0.AuthPlugin/Authenticate"
)
View Source
const (
	ImportHelperPlugin_GetImportSuggestions_FullMethodName = "/p5.plugin.v0.ImportHelperPlugin/GetImportSuggestions"
)

Variables

View Source
var (
	OpenActionType_name = map[int32]string{
		0: "OPEN_ACTION_TYPE_UNSPECIFIED",
		1: "OPEN_ACTION_TYPE_BROWSER",
		2: "OPEN_ACTION_TYPE_EXEC",
	}
	OpenActionType_value = map[string]int32{
		"OPEN_ACTION_TYPE_UNSPECIFIED": 0,
		"OPEN_ACTION_TYPE_BROWSER":     1,
		"OPEN_ACTION_TYPE_EXEC":        2,
	}
)

Enum value maps for OpenActionType.

View Source
var AuthPlugin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "p5.plugin.v0.AuthPlugin",
	HandlerType: (*AuthPluginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Authenticate",
			Handler:    _AuthPlugin_Authenticate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/plugins/proto/plugin.proto",
}

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

View Source
var File_internal_plugins_proto_plugin_proto protoreflect.FileDescriptor
View Source
var ImportHelperPlugin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "p5.plugin.v0.ImportHelperPlugin",
	HandlerType: (*ImportHelperPluginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetImportSuggestions",
			Handler:    _ImportHelperPlugin_GetImportSuggestions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/plugins/proto/plugin.proto",
}

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

View Source
var ResourceOpenerPlugin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "p5.plugin.v0.ResourceOpenerPlugin",
	HandlerType: (*ResourceOpenerPluginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSupportedOpenTypes",
			Handler:    _ResourceOpenerPlugin_GetSupportedOpenTypes_Handler,
		},
		{
			MethodName: "OpenResource",
			Handler:    _ResourceOpenerPlugin_OpenResource_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/plugins/proto/plugin.proto",
}

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

Functions

func RegisterAuthPluginServer

func RegisterAuthPluginServer(s grpc.ServiceRegistrar, srv AuthPluginServer)

func RegisterImportHelperPluginServer

func RegisterImportHelperPluginServer(s grpc.ServiceRegistrar, srv ImportHelperPluginServer)

func RegisterResourceOpenerPluginServer added in v0.3.0

func RegisterResourceOpenerPluginServer(s grpc.ServiceRegistrar, srv ResourceOpenerPluginServer)

Types

type AuthPluginClient

type AuthPluginClient interface {
	Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
}

AuthPluginClient is the client API for AuthPlugin 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.

AuthPlugin provides authentication capabilities

func NewAuthPluginClient

func NewAuthPluginClient(cc grpc.ClientConnInterface) AuthPluginClient

type AuthPluginServer

type AuthPluginServer interface {
	Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
	// contains filtered or unexported methods
}

AuthPluginServer is the server API for AuthPlugin service. All implementations must embed UnimplementedAuthPluginServer for forward compatibility.

AuthPlugin provides authentication capabilities

type AuthenticateRequest

type AuthenticateRequest struct {
	ProgramConfig   map[string]string `` /* 174-byte string literal not displayed */
	StackConfig     map[string]string `` /* 168-byte string literal not displayed */
	StackName       string            `protobuf:"bytes,3,opt,name=stack_name,json=stackName,proto3" json:"stack_name,omitempty"`
	ProgramName     string            `protobuf:"bytes,4,opt,name=program_name,json=programName,proto3" json:"program_name,omitempty"`
	SecretsProvider string            `protobuf:"bytes,5,opt,name=secrets_provider,json=secretsProvider,proto3" json:"secrets_provider,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateRequest) Descriptor deprecated

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

Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.

func (*AuthenticateRequest) GetProgramConfig

func (x *AuthenticateRequest) GetProgramConfig() map[string]string

func (*AuthenticateRequest) GetProgramName

func (x *AuthenticateRequest) GetProgramName() string

func (*AuthenticateRequest) GetSecretsProvider added in v0.5.0

func (x *AuthenticateRequest) GetSecretsProvider() string

func (*AuthenticateRequest) GetStackConfig

func (x *AuthenticateRequest) GetStackConfig() map[string]string

func (*AuthenticateRequest) GetStackName

func (x *AuthenticateRequest) GetStackName() string

func (*AuthenticateRequest) ProtoMessage

func (*AuthenticateRequest) ProtoMessage()

func (*AuthenticateRequest) ProtoReflect

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

func (*AuthenticateRequest) Reset

func (x *AuthenticateRequest) Reset()

func (*AuthenticateRequest) String

func (x *AuthenticateRequest) String() string

type AuthenticateResponse

type AuthenticateResponse struct {
	Success    bool              `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Env        map[string]string ``                                                                                             /* 133-byte string literal not displayed */
	TtlSeconds int32             `protobuf:"varint,3,opt,name=ttl_seconds,json=ttlSeconds,proto3" json:"ttl_seconds,omitempty"` // -1 = always call, 0 = never expires, >0 = TTL
	Error      string            `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateResponse) Descriptor deprecated

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

Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.

func (*AuthenticateResponse) GetEnv

func (x *AuthenticateResponse) GetEnv() map[string]string

func (*AuthenticateResponse) GetError

func (x *AuthenticateResponse) GetError() string

func (*AuthenticateResponse) GetSuccess

func (x *AuthenticateResponse) GetSuccess() bool

func (*AuthenticateResponse) GetTtlSeconds

func (x *AuthenticateResponse) GetTtlSeconds() int32

func (*AuthenticateResponse) ProtoMessage

func (*AuthenticateResponse) ProtoMessage()

func (*AuthenticateResponse) ProtoReflect

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

func (*AuthenticateResponse) Reset

func (x *AuthenticateResponse) Reset()

func (*AuthenticateResponse) String

func (x *AuthenticateResponse) String() string

type ImportHelperPluginClient

type ImportHelperPluginClient interface {
	GetImportSuggestions(ctx context.Context, in *ImportSuggestionsRequest, opts ...grpc.CallOption) (*ImportSuggestionsResponse, error)
}

ImportHelperPluginClient is the client API for ImportHelperPlugin 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.

ImportHelperPlugin provides import ID suggestions (optional capability)

type ImportHelperPluginServer

type ImportHelperPluginServer interface {
	GetImportSuggestions(context.Context, *ImportSuggestionsRequest) (*ImportSuggestionsResponse, error)
	// contains filtered or unexported methods
}

ImportHelperPluginServer is the server API for ImportHelperPlugin service. All implementations must embed UnimplementedImportHelperPluginServer for forward compatibility.

ImportHelperPlugin provides import ID suggestions (optional capability)

type ImportSuggestion

type ImportSuggestion struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                   // The import ID to use (e.g., "arn:aws:s3:::my-bucket")
	Label       string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`             // Short display label (e.g., "my-bucket")
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Optional longer description (e.g., "us-east-1 • Created 2024-01-15")
	// contains filtered or unexported fields
}

func (*ImportSuggestion) Descriptor deprecated

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

Deprecated: Use ImportSuggestion.ProtoReflect.Descriptor instead.

func (*ImportSuggestion) GetDescription

func (x *ImportSuggestion) GetDescription() string

func (*ImportSuggestion) GetId

func (x *ImportSuggestion) GetId() string

func (*ImportSuggestion) GetLabel

func (x *ImportSuggestion) GetLabel() string

func (*ImportSuggestion) ProtoMessage

func (*ImportSuggestion) ProtoMessage()

func (*ImportSuggestion) ProtoReflect

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

func (*ImportSuggestion) Reset

func (x *ImportSuggestion) Reset()

func (*ImportSuggestion) String

func (x *ImportSuggestion) String() string

type ImportSuggestionsRequest

type ImportSuggestionsRequest struct {

	// Resource information
	ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` // e.g., "aws:s3/bucket:Bucket"
	ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` // Logical name in Pulumi program
	ResourceUrn  string `protobuf:"bytes,3,opt,name=resource_urn,json=resourceUrn,proto3" json:"resource_urn,omitempty"`    // Full Pulumi URN
	ParentUrn    string `protobuf:"bytes,4,opt,name=parent_urn,json=parentUrn,proto3" json:"parent_urn,omitempty"`          // Parent URN for component hierarchy
	// Resource inputs (serialized as JSON strings for complex values)
	Inputs map[string]string `` /* 139-byte string literal not displayed */
	// Context
	ProgramConfig map[string]string `` /* 174-byte string literal not displayed */
	StackConfig   map[string]string `` /* 168-byte string literal not displayed */
	StackName     string            `protobuf:"bytes,8,opt,name=stack_name,json=stackName,proto3" json:"stack_name,omitempty"`
	ProgramName   string            `protobuf:"bytes,9,opt,name=program_name,json=programName,proto3" json:"program_name,omitempty"`
	// Auth environment (only populated if use_auth_env: true)
	AuthEnv map[string]string `` /* 157-byte string literal not displayed */
	// Provider configuration (if resource uses an explicit provider)
	ProviderUrn    string            `protobuf:"bytes,11,opt,name=provider_urn,json=providerUrn,proto3" json:"provider_urn,omitempty"` // Provider URN for logging/debugging
	ProviderInputs map[string]string ``                                                                                                // Provider's configuration inputs (kubeconfig, context, namespace, etc.)
	/* 178-byte string literal not displayed */
	// contains filtered or unexported fields
}

Import helper messages

func (*ImportSuggestionsRequest) Descriptor deprecated

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

Deprecated: Use ImportSuggestionsRequest.ProtoReflect.Descriptor instead.

func (*ImportSuggestionsRequest) GetAuthEnv

func (x *ImportSuggestionsRequest) GetAuthEnv() map[string]string

func (*ImportSuggestionsRequest) GetInputs

func (x *ImportSuggestionsRequest) GetInputs() map[string]string

func (*ImportSuggestionsRequest) GetParentUrn

func (x *ImportSuggestionsRequest) GetParentUrn() string

func (*ImportSuggestionsRequest) GetProgramConfig

func (x *ImportSuggestionsRequest) GetProgramConfig() map[string]string

func (*ImportSuggestionsRequest) GetProgramName

func (x *ImportSuggestionsRequest) GetProgramName() string

func (*ImportSuggestionsRequest) GetProviderInputs added in v0.2.0

func (x *ImportSuggestionsRequest) GetProviderInputs() map[string]string

func (*ImportSuggestionsRequest) GetProviderUrn added in v0.2.0

func (x *ImportSuggestionsRequest) GetProviderUrn() string

func (*ImportSuggestionsRequest) GetResourceName

func (x *ImportSuggestionsRequest) GetResourceName() string

func (*ImportSuggestionsRequest) GetResourceType

func (x *ImportSuggestionsRequest) GetResourceType() string

func (*ImportSuggestionsRequest) GetResourceUrn

func (x *ImportSuggestionsRequest) GetResourceUrn() string

func (*ImportSuggestionsRequest) GetStackConfig

func (x *ImportSuggestionsRequest) GetStackConfig() map[string]string

func (*ImportSuggestionsRequest) GetStackName

func (x *ImportSuggestionsRequest) GetStackName() string

func (*ImportSuggestionsRequest) ProtoMessage

func (*ImportSuggestionsRequest) ProtoMessage()

func (*ImportSuggestionsRequest) ProtoReflect

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

func (*ImportSuggestionsRequest) Reset

func (x *ImportSuggestionsRequest) Reset()

func (*ImportSuggestionsRequest) String

func (x *ImportSuggestionsRequest) String() string

type ImportSuggestionsResponse

type ImportSuggestionsResponse struct {
	CanProvide  bool                `protobuf:"varint,1,opt,name=can_provide,json=canProvide,proto3" json:"can_provide,omitempty"` // False if plugin doesn't handle this resource type
	Suggestions []*ImportSuggestion `protobuf:"bytes,2,rep,name=suggestions,proto3" json:"suggestions,omitempty"`                  // List of suggestions (can be empty)
	Error       string              `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`                              // Error message if something went wrong
	// contains filtered or unexported fields
}

func (*ImportSuggestionsResponse) Descriptor deprecated

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

Deprecated: Use ImportSuggestionsResponse.ProtoReflect.Descriptor instead.

func (*ImportSuggestionsResponse) GetCanProvide

func (x *ImportSuggestionsResponse) GetCanProvide() bool

func (*ImportSuggestionsResponse) GetError

func (x *ImportSuggestionsResponse) GetError() string

func (*ImportSuggestionsResponse) GetSuggestions

func (x *ImportSuggestionsResponse) GetSuggestions() []*ImportSuggestion

func (*ImportSuggestionsResponse) ProtoMessage

func (*ImportSuggestionsResponse) ProtoMessage()

func (*ImportSuggestionsResponse) ProtoReflect

func (*ImportSuggestionsResponse) Reset

func (x *ImportSuggestionsResponse) Reset()

func (*ImportSuggestionsResponse) String

func (x *ImportSuggestionsResponse) String() string

type OpenAction added in v0.3.0

type OpenAction struct {
	Type    OpenActionType    `protobuf:"varint,1,opt,name=type,proto3,enum=p5.plugin.v0.OpenActionType" json:"type,omitempty"`
	Url     string            `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`         // For BROWSER type: URL to open
	Command string            `protobuf:"bytes,3,opt,name=command,proto3" json:"command,omitempty"` // For EXEC type: executable path (e.g., "k9s")
	Args    []string          `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`       // For EXEC type: command arguments
	Env     map[string]string ``                                                                    // For EXEC type: additional environment variables
	/* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*OpenAction) Descriptor deprecated added in v0.3.0

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

Deprecated: Use OpenAction.ProtoReflect.Descriptor instead.

func (*OpenAction) GetArgs added in v0.3.0

func (x *OpenAction) GetArgs() []string

func (*OpenAction) GetCommand added in v0.3.0

func (x *OpenAction) GetCommand() string

func (*OpenAction) GetEnv added in v0.3.0

func (x *OpenAction) GetEnv() map[string]string

func (*OpenAction) GetType added in v0.3.0

func (x *OpenAction) GetType() OpenActionType

func (*OpenAction) GetUrl added in v0.3.0

func (x *OpenAction) GetUrl() string

func (*OpenAction) ProtoMessage added in v0.3.0

func (*OpenAction) ProtoMessage()

func (*OpenAction) ProtoReflect added in v0.3.0

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

func (*OpenAction) Reset added in v0.3.0

func (x *OpenAction) Reset()

func (*OpenAction) String added in v0.3.0

func (x *OpenAction) String() string

type OpenActionType added in v0.3.0

type OpenActionType int32
const (
	OpenActionType_OPEN_ACTION_TYPE_UNSPECIFIED OpenActionType = 0
	OpenActionType_OPEN_ACTION_TYPE_BROWSER     OpenActionType = 1 // Open URL in default browser
	OpenActionType_OPEN_ACTION_TYPE_EXEC        OpenActionType = 2 // Launch alternate screen program
)

func (OpenActionType) Descriptor added in v0.3.0

func (OpenActionType) Enum added in v0.3.0

func (x OpenActionType) Enum() *OpenActionType

func (OpenActionType) EnumDescriptor deprecated added in v0.3.0

func (OpenActionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use OpenActionType.Descriptor instead.

func (OpenActionType) Number added in v0.3.0

func (OpenActionType) String added in v0.3.0

func (x OpenActionType) String() string

func (OpenActionType) Type added in v0.3.0

type OpenResourceRequest added in v0.3.0

type OpenResourceRequest struct {

	// Resource information
	ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` // e.g., "kubernetes:core/v1:Pod"
	ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` // Logical name in Pulumi program
	ResourceUrn  string `protobuf:"bytes,3,opt,name=resource_urn,json=resourceUrn,proto3" json:"resource_urn,omitempty"`    // Full Pulumi URN
	// Provider configuration
	ProviderUrn    string            `protobuf:"bytes,4,opt,name=provider_urn,json=providerUrn,proto3" json:"provider_urn,omitempty"` // Provider URN for logging/debugging
	ProviderInputs map[string]string ``                                                                                               // Provider's configuration inputs (kubeconfig, context, namespace, etc.)
	/* 177-byte string literal not displayed */
	// Resource state
	Inputs map[string]string `` // Resource inputs (serialized as JSON strings for complex values)
	/* 139-byte string literal not displayed */
	Outputs map[string]string `` // Resource outputs (may contain URLs, IDs, ARNs, etc.)
	/* 141-byte string literal not displayed */
	// Context
	ProgramConfig map[string]string `` /* 174-byte string literal not displayed */
	StackConfig   map[string]string `` /* 168-byte string literal not displayed */
	StackName     string            `protobuf:"bytes,10,opt,name=stack_name,json=stackName,proto3" json:"stack_name,omitempty"`
	ProgramName   string            `protobuf:"bytes,11,opt,name=program_name,json=programName,proto3" json:"program_name,omitempty"`
	// Auth environment (only populated if use_auth_env: true)
	AuthEnv map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*OpenResourceRequest) Descriptor deprecated added in v0.3.0

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

Deprecated: Use OpenResourceRequest.ProtoReflect.Descriptor instead.

func (*OpenResourceRequest) GetAuthEnv added in v0.3.0

func (x *OpenResourceRequest) GetAuthEnv() map[string]string

func (*OpenResourceRequest) GetInputs added in v0.3.0

func (x *OpenResourceRequest) GetInputs() map[string]string

func (*OpenResourceRequest) GetOutputs added in v0.3.0

func (x *OpenResourceRequest) GetOutputs() map[string]string

func (*OpenResourceRequest) GetProgramConfig added in v0.3.0

func (x *OpenResourceRequest) GetProgramConfig() map[string]string

func (*OpenResourceRequest) GetProgramName added in v0.3.0

func (x *OpenResourceRequest) GetProgramName() string

func (*OpenResourceRequest) GetProviderInputs added in v0.3.0

func (x *OpenResourceRequest) GetProviderInputs() map[string]string

func (*OpenResourceRequest) GetProviderUrn added in v0.3.0

func (x *OpenResourceRequest) GetProviderUrn() string

func (*OpenResourceRequest) GetResourceName added in v0.3.0

func (x *OpenResourceRequest) GetResourceName() string

func (*OpenResourceRequest) GetResourceType added in v0.3.0

func (x *OpenResourceRequest) GetResourceType() string

func (*OpenResourceRequest) GetResourceUrn added in v0.3.0

func (x *OpenResourceRequest) GetResourceUrn() string

func (*OpenResourceRequest) GetStackConfig added in v0.3.0

func (x *OpenResourceRequest) GetStackConfig() map[string]string

func (*OpenResourceRequest) GetStackName added in v0.3.0

func (x *OpenResourceRequest) GetStackName() string

func (*OpenResourceRequest) ProtoMessage added in v0.3.0

func (*OpenResourceRequest) ProtoMessage()

func (*OpenResourceRequest) ProtoReflect added in v0.3.0

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

func (*OpenResourceRequest) Reset added in v0.3.0

func (x *OpenResourceRequest) Reset()

func (*OpenResourceRequest) String added in v0.3.0

func (x *OpenResourceRequest) String() string

type OpenResourceResponse added in v0.3.0

type OpenResourceResponse struct {
	CanOpen bool        `protobuf:"varint,1,opt,name=can_open,json=canOpen,proto3" json:"can_open,omitempty"` // False if plugin doesn't handle this resource type
	Action  *OpenAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`                   // The action to perform (only set if can_open is true)
	Error   string      `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`                     // Error message if something went wrong
	// contains filtered or unexported fields
}

func (*OpenResourceResponse) Descriptor deprecated added in v0.3.0

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

Deprecated: Use OpenResourceResponse.ProtoReflect.Descriptor instead.

func (*OpenResourceResponse) GetAction added in v0.3.0

func (x *OpenResourceResponse) GetAction() *OpenAction

func (*OpenResourceResponse) GetCanOpen added in v0.3.0

func (x *OpenResourceResponse) GetCanOpen() bool

func (*OpenResourceResponse) GetError added in v0.3.0

func (x *OpenResourceResponse) GetError() string

func (*OpenResourceResponse) ProtoMessage added in v0.3.0

func (*OpenResourceResponse) ProtoMessage()

func (*OpenResourceResponse) ProtoReflect added in v0.3.0

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

func (*OpenResourceResponse) Reset added in v0.3.0

func (x *OpenResourceResponse) Reset()

func (*OpenResourceResponse) String added in v0.3.0

func (x *OpenResourceResponse) String() string

type ResourceOpenerPluginClient added in v0.3.0

type ResourceOpenerPluginClient interface {
	// GetSupportedOpenTypes returns regex patterns for resource types this plugin can open
	GetSupportedOpenTypes(ctx context.Context, in *SupportedOpenTypesRequest, opts ...grpc.CallOption) (*SupportedOpenTypesResponse, error)
	// OpenResource returns the action to open a specific resource
	OpenResource(ctx context.Context, in *OpenResourceRequest, opts ...grpc.CallOption) (*OpenResourceResponse, error)
}

ResourceOpenerPluginClient is the client API for ResourceOpenerPlugin 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.

ResourceOpenerPlugin provides resource opening capabilities (optional capability) Plugins can open resources in a browser or launch an alternate screen program (e.g., k9s)

func NewResourceOpenerPluginClient added in v0.3.0

func NewResourceOpenerPluginClient(cc grpc.ClientConnInterface) ResourceOpenerPluginClient

type ResourceOpenerPluginServer added in v0.3.0

type ResourceOpenerPluginServer interface {
	// GetSupportedOpenTypes returns regex patterns for resource types this plugin can open
	GetSupportedOpenTypes(context.Context, *SupportedOpenTypesRequest) (*SupportedOpenTypesResponse, error)
	// OpenResource returns the action to open a specific resource
	OpenResource(context.Context, *OpenResourceRequest) (*OpenResourceResponse, error)
	// contains filtered or unexported methods
}

ResourceOpenerPluginServer is the server API for ResourceOpenerPlugin service. All implementations must embed UnimplementedResourceOpenerPluginServer for forward compatibility.

ResourceOpenerPlugin provides resource opening capabilities (optional capability) Plugins can open resources in a browser or launch an alternate screen program (e.g., k9s)

type SupportedOpenTypesRequest added in v0.3.0

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

Resource opener messages

func (*SupportedOpenTypesRequest) Descriptor deprecated added in v0.3.0

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

Deprecated: Use SupportedOpenTypesRequest.ProtoReflect.Descriptor instead.

func (*SupportedOpenTypesRequest) ProtoMessage added in v0.3.0

func (*SupportedOpenTypesRequest) ProtoMessage()

func (*SupportedOpenTypesRequest) ProtoReflect added in v0.3.0

func (*SupportedOpenTypesRequest) Reset added in v0.3.0

func (x *SupportedOpenTypesRequest) Reset()

func (*SupportedOpenTypesRequest) String added in v0.3.0

func (x *SupportedOpenTypesRequest) String() string

type SupportedOpenTypesResponse added in v0.3.0

type SupportedOpenTypesResponse struct {
	ResourceTypePatterns []string `protobuf:"bytes,1,rep,name=resource_type_patterns,json=resourceTypePatterns,proto3" json:"resource_type_patterns,omitempty"` // Regex patterns for resource types this plugin can open
	// contains filtered or unexported fields
}

func (*SupportedOpenTypesResponse) Descriptor deprecated added in v0.3.0

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

Deprecated: Use SupportedOpenTypesResponse.ProtoReflect.Descriptor instead.

func (*SupportedOpenTypesResponse) GetResourceTypePatterns added in v0.3.0

func (x *SupportedOpenTypesResponse) GetResourceTypePatterns() []string

func (*SupportedOpenTypesResponse) ProtoMessage added in v0.3.0

func (*SupportedOpenTypesResponse) ProtoMessage()

func (*SupportedOpenTypesResponse) ProtoReflect added in v0.3.0

func (*SupportedOpenTypesResponse) Reset added in v0.3.0

func (x *SupportedOpenTypesResponse) Reset()

func (*SupportedOpenTypesResponse) String added in v0.3.0

func (x *SupportedOpenTypesResponse) String() string

type UnimplementedAuthPluginServer

type UnimplementedAuthPluginServer struct{}

UnimplementedAuthPluginServer 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 (UnimplementedAuthPluginServer) Authenticate

type UnimplementedImportHelperPluginServer

type UnimplementedImportHelperPluginServer struct{}

UnimplementedImportHelperPluginServer 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 (UnimplementedImportHelperPluginServer) GetImportSuggestions

type UnimplementedResourceOpenerPluginServer added in v0.3.0

type UnimplementedResourceOpenerPluginServer struct{}

UnimplementedResourceOpenerPluginServer 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 (UnimplementedResourceOpenerPluginServer) GetSupportedOpenTypes added in v0.3.0

func (UnimplementedResourceOpenerPluginServer) OpenResource added in v0.3.0

type UnsafeAuthPluginServer

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

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

type UnsafeImportHelperPluginServer

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

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

type UnsafeResourceOpenerPluginServer added in v0.3.0

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

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

Jump to

Keyboard shortcuts

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