secretprovider

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_secretprovider_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use IAMToken.ProtoReflect.Descriptor instead.

func (*IAMToken) GetIamtoken

func (x *IAMToken) GetIamtoken() string

func (*IAMToken) GetTokenlifetime

func (x *IAMToken) GetTokenlifetime() uint64

func (*IAMToken) ProtoMessage

func (*IAMToken) ProtoMessage()

func (*IAMToken) ProtoReflect

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

func (*IAMToken) Reset

func (x *IAMToken) Reset()

func (*IAMToken) String

func (x *IAMToken) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetIsFreshTokenRequired

func (x *Request) GetIsFreshTokenRequired() bool

func (*Request) GetReasonForCall

func (x *Request) GetReasonForCall() string

func (*Request) GetSecret

func (x *Request) GetSecret() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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.

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

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.

Jump to

Keyboard shortcuts

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