Documentation ¶
Index ¶
- Variables
- func RegisterSecretProviderServer(s *grpc.Server, srv SecretProviderServer)
- type Empty
- type IAMToken
- type InitRequest
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetIsFreshTokenRequired() bool
- func (x *Request) GetReasonForCall() string
- func (x *Request) GetSecret() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type SecretProviderClient
- type SecretProviderServer
- type UnimplementedSecretProviderServer
- func (UnimplementedSecretProviderServer) GetDefaultIAMToken(context.Context, *Request) (*IAMToken, error)
- func (UnimplementedSecretProviderServer) GetIAMToken(context.Context, *Request) (*IAMToken, error)
- func (UnimplementedSecretProviderServer) NewSecretProvider(context.Context, *InitRequest) (*Empty, error)
- type UnsafeSecretProviderServer
Constants ¶
This section is empty.
Variables ¶
var File_secretprovider_proto protoreflect.FileDescriptor
var SecretProvider_ServiceDesc = grpc.ServiceDesc{ ServiceName: "secretprovider.SecretProvider", HandlerType: (*SecretProviderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NewSecretProvider", Handler: _SecretProvider_NewSecretProvider_Handler, }, { MethodName: "GetIAMToken", Handler: _SecretProvider_GetIAMToken_Handler, }, { MethodName: "GetDefaultIAMToken", Handler: _SecretProvider_GetDefaultIAMToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "secretprovider.proto", }
SecretProvider_ServiceDesc is the grpc.ServiceDesc for SecretProvider service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSecretProviderServer ¶
func RegisterSecretProviderServer(s *grpc.Server, srv SecretProviderServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
Empty response
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type IAMToken ¶
type IAMToken struct { Iamtoken string `protobuf:"bytes,1,opt,name=iamtoken,proto3" json:"iamtoken,omitempty"` Tokenlifetime uint64 `protobuf:"varint,2,opt,name=tokenlifetime,proto3" json:"tokenlifetime,omitempty"` // contains filtered or unexported fields }
The response message containing IAMToken
func (*IAMToken) Descriptor
deprecated
func (*IAMToken) GetIamtoken ¶
func (*IAMToken) GetTokenlifetime ¶
func (*IAMToken) ProtoMessage ¶
func (*IAMToken) ProtoMessage()
func (*IAMToken) ProtoReflect ¶
func (x *IAMToken) ProtoReflect() protoreflect.Message
type InitRequest ¶
type InitRequest struct { ProviderType string `protobuf:"bytes,1,opt,name=providerType,proto3" json:"providerType,omitempty"` // contains filtered or unexported fields }
The request message contains required parameters to initialize secret provider
func (*InitRequest) Descriptor
deprecated
func (*InitRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.
func (*InitRequest) GetProviderType ¶
func (x *InitRequest) GetProviderType() 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 Request ¶
type Request struct { Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` IsFreshTokenRequired bool `protobuf:"varint,2,opt,name=isFreshTokenRequired,proto3" json:"isFreshTokenRequired,omitempty"` ReasonForCall string `protobuf:"bytes,3,opt,name=reasonForCall,proto3" json:"reasonForCall,omitempty"` // contains filtered or unexported fields }
The request message containing the Request.
func (*Request) Descriptor
deprecated
func (*Request) GetIsFreshTokenRequired ¶
func (*Request) GetReasonForCall ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type SecretProviderClient ¶
type SecretProviderClient interface { NewSecretProvider(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*Empty, error) GetIAMToken(ctx context.Context, in *Request, opts ...grpc.CallOption) (*IAMToken, error) GetDefaultIAMToken(ctx context.Context, in *Request, opts ...grpc.CallOption) (*IAMToken, error) }
SecretProviderClient is the client API for SecretProvider 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 NewSecretProviderClient ¶
func NewSecretProviderClient(cc grpc.ClientConnInterface) SecretProviderClient
type SecretProviderServer ¶
type SecretProviderServer interface { NewSecretProvider(context.Context, *InitRequest) (*Empty, error) GetIAMToken(context.Context, *Request) (*IAMToken, error) GetDefaultIAMToken(context.Context, *Request) (*IAMToken, error) // contains filtered or unexported methods }
SecretProviderServer is the server API for SecretProvider service. All implementations must embed UnimplementedSecretProviderServer for forward compatibility
type UnimplementedSecretProviderServer ¶
type UnimplementedSecretProviderServer struct { }
UnimplementedSecretProviderServer must be embedded to have forward compatible implementations.
func (UnimplementedSecretProviderServer) GetDefaultIAMToken ¶
func (UnimplementedSecretProviderServer) GetIAMToken ¶
func (UnimplementedSecretProviderServer) NewSecretProvider ¶
func (UnimplementedSecretProviderServer) NewSecretProvider(context.Context, *InitRequest) (*Empty, error)
type UnsafeSecretProviderServer ¶
type UnsafeSecretProviderServer interface {
// contains filtered or unexported methods
}
UnsafeSecretProviderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SecretProviderServer will result in compilation errors.