credentials

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package credentials is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var CredentialManagement_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "zenoss.cloud.credentials.CredentialManagement",
	HandlerType: (*CredentialManagementServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCredential",
			Handler:    _CredentialManagement_GetCredential_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "zenoss/cloud/credentials.proto",
}

CredentialManagement_ServiceDesc is the grpc.ServiceDesc for CredentialManagement 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_zenoss_cloud_credentials_proto protoreflect.FileDescriptor

Functions

func RegisterCredentialManagementHandler

func RegisterCredentialManagementHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCredentialManagementHandler registers the http handlers for service CredentialManagement to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCredentialManagementHandlerClient

func RegisterCredentialManagementHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CredentialManagementClient) error

RegisterCredentialManagementHandlerClient registers the http handlers for service CredentialManagement to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CredentialManagementClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CredentialManagementClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CredentialManagementClient" to call the correct interceptors.

func RegisterCredentialManagementHandlerFromEndpoint

func RegisterCredentialManagementHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCredentialManagementHandlerFromEndpoint is same as RegisterCredentialManagementHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCredentialManagementHandlerServer

func RegisterCredentialManagementHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CredentialManagementServer) error

RegisterCredentialManagementHandlerServer registers the http handlers for service CredentialManagement to "mux". UnaryRPC :call CredentialManagementServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCredentialManagementHandlerFromEndpoint instead.

func RegisterCredentialManagementServer

func RegisterCredentialManagementServer(s grpc.ServiceRegistrar, srv CredentialManagementServer)

Types

type Credential

type Credential struct {
	Id      string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Info    *Info             `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	Secrets map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Credential) Descriptor deprecated

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

Deprecated: Use Credential.ProtoReflect.Descriptor instead.

func (*Credential) GetId

func (x *Credential) GetId() string

func (*Credential) GetInfo

func (x *Credential) GetInfo() *Info

func (*Credential) GetSecrets

func (x *Credential) GetSecrets() map[string]string

func (*Credential) ProtoMessage

func (*Credential) ProtoMessage()

func (*Credential) ProtoReflect

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

func (*Credential) Reset

func (x *Credential) Reset()

func (*Credential) String

func (x *Credential) String() string

type CredentialManagementClient

type CredentialManagementClient interface {
	GetCredential(ctx context.Context, in *GetCredentialRequest, opts ...grpc.CallOption) (*GetCredentialResponse, error)
}

CredentialManagementClient is the client API for CredentialManagement 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 CredentialManagementServer

type CredentialManagementServer interface {
	GetCredential(context.Context, *GetCredentialRequest) (*GetCredentialResponse, error)
	// contains filtered or unexported methods
}

CredentialManagementServer is the server API for CredentialManagement service. All implementations must embed UnimplementedCredentialManagementServer for forward compatibility

type GetCredentialRequest

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

func (*GetCredentialRequest) Descriptor deprecated

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

Deprecated: Use GetCredentialRequest.ProtoReflect.Descriptor instead.

func (*GetCredentialRequest) GetId

func (x *GetCredentialRequest) GetId() string

func (*GetCredentialRequest) ProtoMessage

func (*GetCredentialRequest) ProtoMessage()

func (*GetCredentialRequest) ProtoReflect

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

func (*GetCredentialRequest) Reset

func (x *GetCredentialRequest) Reset()

func (*GetCredentialRequest) String

func (x *GetCredentialRequest) String() string

type GetCredentialResponse

type GetCredentialResponse struct {
	Credential *Credential `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCredentialResponse) Descriptor deprecated

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

Deprecated: Use GetCredentialResponse.ProtoReflect.Descriptor instead.

func (*GetCredentialResponse) GetCredential

func (x *GetCredentialResponse) GetCredential() *Credential

func (*GetCredentialResponse) ProtoMessage

func (*GetCredentialResponse) ProtoMessage()

func (*GetCredentialResponse) ProtoReflect

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

func (*GetCredentialResponse) Reset

func (x *GetCredentialResponse) Reset()

func (*GetCredentialResponse) String

func (x *GetCredentialResponse) String() string

type Info

type Info struct {
	Name        string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type        string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Description string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Tags        []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*Info) Descriptor deprecated

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

Deprecated: Use Info.ProtoReflect.Descriptor instead.

func (*Info) GetDescription

func (x *Info) GetDescription() string

func (*Info) GetName

func (x *Info) GetName() string

func (*Info) GetTags

func (x *Info) GetTags() []string

func (*Info) GetType

func (x *Info) GetType() string

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) ProtoReflect

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

func (*Info) Reset

func (x *Info) Reset()

func (*Info) String

func (x *Info) String() string

type MockCredentialManagementClient

type MockCredentialManagementClient struct {
	mock.Mock
}

MockCredentialManagementClient is an autogenerated mock type for the CredentialManagementClient type

func NewMockCredentialManagementClient

func NewMockCredentialManagementClient(t mockConstructorTestingTNewMockCredentialManagementClient) *MockCredentialManagementClient

NewMockCredentialManagementClient creates a new instance of MockCredentialManagementClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockCredentialManagementClient) EXPECT

func (*MockCredentialManagementClient) GetCredential

GetCredential provides a mock function with given fields: ctx, in, opts

type MockCredentialManagementClient_Expecter

type MockCredentialManagementClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockCredentialManagementClient_Expecter) GetCredential

func (_e *MockCredentialManagementClient_Expecter) GetCredential(ctx interface{}, in interface{}, opts ...interface{}) *MockCredentialManagementClient_GetCredential_Call

GetCredential is a helper method to define mock.On call

  • ctx context.Context
  • in *GetCredentialRequest
  • opts ...grpc.CallOption

type MockCredentialManagementClient_GetCredential_Call

type MockCredentialManagementClient_GetCredential_Call struct {
	*mock.Call
}

MockCredentialManagementClient_GetCredential_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCredential'

func (*MockCredentialManagementClient_GetCredential_Call) Return

func (*MockCredentialManagementClient_GetCredential_Call) Run

type MockCredentialManagementServer

type MockCredentialManagementServer struct {
	mock.Mock
}

MockCredentialManagementServer is an autogenerated mock type for the CredentialManagementServer type

func NewMockCredentialManagementServer

func NewMockCredentialManagementServer(t mockConstructorTestingTNewMockCredentialManagementServer) *MockCredentialManagementServer

NewMockCredentialManagementServer creates a new instance of MockCredentialManagementServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockCredentialManagementServer) EXPECT

func (*MockCredentialManagementServer) GetCredential

GetCredential provides a mock function with given fields: _a0, _a1

type MockCredentialManagementServer_Expecter

type MockCredentialManagementServer_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockCredentialManagementServer_Expecter) GetCredential

func (_e *MockCredentialManagementServer_Expecter) GetCredential(_a0 interface{}, _a1 interface{}) *MockCredentialManagementServer_GetCredential_Call

GetCredential is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *GetCredentialRequest

type MockCredentialManagementServer_GetCredential_Call

type MockCredentialManagementServer_GetCredential_Call struct {
	*mock.Call
}

MockCredentialManagementServer_GetCredential_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCredential'

func (*MockCredentialManagementServer_GetCredential_Call) Return

func (*MockCredentialManagementServer_GetCredential_Call) Run

type MockCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call

type MockCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call struct {
	*mock.Call
}

MockCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'mustEmbedUnimplementedCredentialManagementServer'

func (*MockCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call) Return

func (*MockCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call) Run

type MockUnsafeCredentialManagementServer

type MockUnsafeCredentialManagementServer struct {
	mock.Mock
}

MockUnsafeCredentialManagementServer is an autogenerated mock type for the UnsafeCredentialManagementServer type

func NewMockUnsafeCredentialManagementServer

func NewMockUnsafeCredentialManagementServer(t mockConstructorTestingTNewMockUnsafeCredentialManagementServer) *MockUnsafeCredentialManagementServer

NewMockUnsafeCredentialManagementServer creates a new instance of MockUnsafeCredentialManagementServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockUnsafeCredentialManagementServer) EXPECT

type MockUnsafeCredentialManagementServer_Expecter

type MockUnsafeCredentialManagementServer_Expecter struct {
	// contains filtered or unexported fields
}

type MockUnsafeCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call

type MockUnsafeCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call struct {
	*mock.Call
}

MockUnsafeCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'mustEmbedUnimplementedCredentialManagementServer'

func (*MockUnsafeCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call) Run

type UnimplementedCredentialManagementServer

type UnimplementedCredentialManagementServer struct {
}

UnimplementedCredentialManagementServer must be embedded to have forward compatible implementations.

func (UnimplementedCredentialManagementServer) GetCredential

type UnsafeCredentialManagementServer

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

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

Jump to

Keyboard shortcuts

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