vaultservpb

package
v0.0.0-...-73f03d9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_agent_vault_proto protoreflect.FileDescriptor
View Source
var Vault_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "vaultservpb.Vault",
	HandlerType: (*VaultServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "StoreCred",
			Handler:    _Vault_StoreCred_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "agent-vault.proto",
}

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

Functions

func RegisterVaultServer

func RegisterVaultServer(s grpc.ServiceRegistrar, srv VaultServer)

Types

type StoreCredRequest

type StoreCredRequest struct {
	Credname string `protobuf:"bytes,1,opt,name=credname,proto3" json:"credname,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreCredRequest) Descriptor deprecated

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

Deprecated: Use StoreCredRequest.ProtoReflect.Descriptor instead.

func (*StoreCredRequest) GetCredname

func (x *StoreCredRequest) GetCredname() string

func (*StoreCredRequest) GetPassword

func (x *StoreCredRequest) GetPassword() string

func (*StoreCredRequest) GetUsername

func (x *StoreCredRequest) GetUsername() string

func (*StoreCredRequest) ProtoMessage

func (*StoreCredRequest) ProtoMessage()

func (*StoreCredRequest) ProtoReflect

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

func (*StoreCredRequest) Reset

func (x *StoreCredRequest) Reset()

func (*StoreCredRequest) String

func (x *StoreCredRequest) String() string

type StoreCredResponse

type StoreCredResponse struct {
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreCredResponse) Descriptor deprecated

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

Deprecated: Use StoreCredResponse.ProtoReflect.Descriptor instead.

func (*StoreCredResponse) GetStatus

func (x *StoreCredResponse) GetStatus() string

func (*StoreCredResponse) ProtoMessage

func (*StoreCredResponse) ProtoMessage()

func (*StoreCredResponse) ProtoReflect

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

func (*StoreCredResponse) Reset

func (x *StoreCredResponse) Reset()

func (*StoreCredResponse) String

func (x *StoreCredResponse) String() string

type UnimplementedVaultServer

type UnimplementedVaultServer struct {
}

UnimplementedVaultServer must be embedded to have forward compatible implementations.

func (UnimplementedVaultServer) StoreCred

type UnsafeVaultServer

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

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

type VaultClient

type VaultClient interface {
	StoreCred(ctx context.Context, in *StoreCredRequest, opts ...grpc.CallOption) (*StoreCredResponse, error)
}

VaultClient is the client API for Vault 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 NewVaultClient

func NewVaultClient(cc grpc.ClientConnInterface) VaultClient

type VaultServer

type VaultServer interface {
	StoreCred(context.Context, *StoreCredRequest) (*StoreCredResponse, error)
	// contains filtered or unexported methods
}

VaultServer is the server API for Vault service. All implementations must embed UnimplementedVaultServer for forward compatibility

Jump to

Keyboard shortcuts

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