proto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

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 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)

Functions

func RegisterAuthPluginServer

func RegisterAuthPluginServer(s grpc.ServiceRegistrar, srv AuthPluginServer)

func RegisterImportHelperPluginServer

func RegisterImportHelperPluginServer(s grpc.ServiceRegistrar, srv ImportHelperPluginServer)

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"`
	// 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) 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 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 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.

Jump to

Keyboard shortcuts

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