Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAuthPluginServer(s grpc.ServiceRegistrar, srv AuthPluginServer)
- func RegisterImportHelperPluginServer(s grpc.ServiceRegistrar, srv ImportHelperPluginServer)
- type AuthPluginClient
- type AuthPluginServer
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetProgramConfig() map[string]string
- func (x *AuthenticateRequest) GetProgramName() string
- func (x *AuthenticateRequest) GetStackConfig() map[string]string
- func (x *AuthenticateRequest) GetStackName() string
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateResponse) GetEnv() map[string]string
- func (x *AuthenticateResponse) GetError() string
- func (x *AuthenticateResponse) GetSuccess() bool
- func (x *AuthenticateResponse) GetTtlSeconds() int32
- func (*AuthenticateResponse) ProtoMessage()
- func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticateResponse) Reset()
- func (x *AuthenticateResponse) String() string
- type ImportHelperPluginClient
- type ImportHelperPluginServer
- type ImportSuggestion
- func (*ImportSuggestion) Descriptor() ([]byte, []int)deprecated
- func (x *ImportSuggestion) GetDescription() string
- func (x *ImportSuggestion) GetId() string
- func (x *ImportSuggestion) GetLabel() string
- func (*ImportSuggestion) ProtoMessage()
- func (x *ImportSuggestion) ProtoReflect() protoreflect.Message
- func (x *ImportSuggestion) Reset()
- func (x *ImportSuggestion) String() string
- type ImportSuggestionsRequest
- func (*ImportSuggestionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImportSuggestionsRequest) GetAuthEnv() map[string]string
- func (x *ImportSuggestionsRequest) GetInputs() map[string]string
- func (x *ImportSuggestionsRequest) GetParentUrn() string
- func (x *ImportSuggestionsRequest) GetProgramConfig() map[string]string
- func (x *ImportSuggestionsRequest) GetProgramName() string
- func (x *ImportSuggestionsRequest) GetResourceName() string
- func (x *ImportSuggestionsRequest) GetResourceType() string
- func (x *ImportSuggestionsRequest) GetResourceUrn() string
- func (x *ImportSuggestionsRequest) GetStackConfig() map[string]string
- func (x *ImportSuggestionsRequest) GetStackName() string
- func (*ImportSuggestionsRequest) ProtoMessage()
- func (x *ImportSuggestionsRequest) ProtoReflect() protoreflect.Message
- func (x *ImportSuggestionsRequest) Reset()
- func (x *ImportSuggestionsRequest) String() string
- type ImportSuggestionsResponse
- func (*ImportSuggestionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ImportSuggestionsResponse) GetCanProvide() bool
- func (x *ImportSuggestionsResponse) GetError() string
- func (x *ImportSuggestionsResponse) GetSuggestions() []*ImportSuggestion
- func (*ImportSuggestionsResponse) ProtoMessage()
- func (x *ImportSuggestionsResponse) ProtoReflect() protoreflect.Message
- func (x *ImportSuggestionsResponse) Reset()
- func (x *ImportSuggestionsResponse) String() string
- type UnimplementedAuthPluginServer
- type UnimplementedImportHelperPluginServer
- type UnsafeAuthPluginServer
- type UnsafeImportHelperPluginServer
Constants ¶
const (
AuthPlugin_Authenticate_FullMethodName = "/p5.plugin.v0.AuthPlugin/Authenticate"
)
const (
ImportHelperPlugin_GetImportSuggestions_FullMethodName = "/p5.plugin.v0.ImportHelperPlugin/GetImportSuggestions"
)
Variables ¶
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)
var File_internal_plugins_proto_plugin_proto protoreflect.FileDescriptor
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)
func NewImportHelperPluginClient ¶
func NewImportHelperPluginClient(cc grpc.ClientConnInterface) ImportHelperPluginClient
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 */
// 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) 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 (x *ImportSuggestionsResponse) ProtoReflect() protoreflect.Message
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 ¶
func (UnimplementedAuthPluginServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
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 ¶
func (UnimplementedImportHelperPluginServer) GetImportSuggestions(context.Context, *ImportSuggestionsRequest) (*ImportSuggestionsResponse, error)
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.