Documentation ¶
Overview ¶
Package credentials is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterCredentialManagementHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCredentialManagementHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CredentialManagementClient) error
- func RegisterCredentialManagementHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCredentialManagementHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CredentialManagementServer) error
- func RegisterCredentialManagementServer(s grpc.ServiceRegistrar, srv CredentialManagementServer)
- type Credential
- func (*Credential) Descriptor() ([]byte, []int)deprecated
- func (x *Credential) GetId() string
- func (x *Credential) GetInfo() *Info
- func (x *Credential) GetSecrets() map[string]string
- func (*Credential) ProtoMessage()
- func (x *Credential) ProtoReflect() protoreflect.Message
- func (x *Credential) Reset()
- func (x *Credential) String() string
- type CredentialManagementClient
- type CredentialManagementServer
- type GetCredentialRequest
- func (*GetCredentialRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCredentialRequest) GetId() string
- func (*GetCredentialRequest) ProtoMessage()
- func (x *GetCredentialRequest) ProtoReflect() protoreflect.Message
- func (x *GetCredentialRequest) Reset()
- func (x *GetCredentialRequest) String() string
- type GetCredentialResponse
- func (*GetCredentialResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCredentialResponse) GetCredential() *Credential
- func (*GetCredentialResponse) ProtoMessage()
- func (x *GetCredentialResponse) ProtoReflect() protoreflect.Message
- func (x *GetCredentialResponse) Reset()
- func (x *GetCredentialResponse) String() string
- type Info
- func (*Info) Descriptor() ([]byte, []int)deprecated
- func (x *Info) GetDescription() string
- func (x *Info) GetName() string
- func (x *Info) GetTags() []string
- func (x *Info) GetType() string
- func (*Info) ProtoMessage()
- func (x *Info) ProtoReflect() protoreflect.Message
- func (x *Info) Reset()
- func (x *Info) String() string
- type MockCredentialManagementClient
- type MockCredentialManagementClient_Expecter
- type MockCredentialManagementClient_GetCredential_Call
- func (_c *MockCredentialManagementClient_GetCredential_Call) Return(_a0 *GetCredentialResponse, _a1 error) *MockCredentialManagementClient_GetCredential_Call
- func (_c *MockCredentialManagementClient_GetCredential_Call) Run(...) *MockCredentialManagementClient_GetCredential_Call
- func (_c *MockCredentialManagementClient_GetCredential_Call) RunAndReturn(...) *MockCredentialManagementClient_GetCredential_Call
- type MockCredentialManagementServer
- type MockCredentialManagementServer_Expecter
- type MockCredentialManagementServer_GetCredential_Call
- func (_c *MockCredentialManagementServer_GetCredential_Call) Return(_a0 *GetCredentialResponse, _a1 error) *MockCredentialManagementServer_GetCredential_Call
- func (_c *MockCredentialManagementServer_GetCredential_Call) Run(run func(_a0 context.Context, _a1 *GetCredentialRequest)) *MockCredentialManagementServer_GetCredential_Call
- func (_c *MockCredentialManagementServer_GetCredential_Call) RunAndReturn(...) *MockCredentialManagementServer_GetCredential_Call
- type MockCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call
- func (_c *MockCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call) Return() ...
- func (_c *MockCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call) Run(run func()) ...
- func (_c *MockCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call) RunAndReturn(run func()) ...
- type MockUnsafeCredentialManagementServer
- type MockUnsafeCredentialManagementServer_Expecter
- type MockUnsafeCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call
- func (_c *MockUnsafeCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call) Return() ...
- func (_c *MockUnsafeCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call) Run(run func()) ...
- func (_c *MockUnsafeCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call) RunAndReturn(run func()) ...
- type UnimplementedCredentialManagementServer
- type UnsafeCredentialManagementServer
Constants ¶
const (
CredentialManagement_GetCredential_FullMethodName = "/zenoss.cloud.credentials.CredentialManagement/GetCredential"
)
Variables ¶
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)
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.
func NewCredentialManagementClient ¶
func NewCredentialManagementClient(cc grpc.ClientConnInterface) CredentialManagementClient
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) GetDescription ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) ProtoReflect ¶
func (x *Info) ProtoReflect() protoreflect.Message
type MockCredentialManagementClient ¶
MockCredentialManagementClient is an autogenerated mock type for the CredentialManagementClient type
func NewMockCredentialManagementClient ¶
func NewMockCredentialManagementClient(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*MockCredentialManagementClient) EXPECT ¶
func (_m *MockCredentialManagementClient) EXPECT() *MockCredentialManagementClient_Expecter
func (*MockCredentialManagementClient) GetCredential ¶
func (_m *MockCredentialManagementClient) GetCredential(ctx context.Context, in *GetCredentialRequest, opts ...grpc.CallOption) (*GetCredentialResponse, error)
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 ¶
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 (_c *MockCredentialManagementClient_GetCredential_Call) Return(_a0 *GetCredentialResponse, _a1 error) *MockCredentialManagementClient_GetCredential_Call
func (*MockCredentialManagementClient_GetCredential_Call) Run ¶
func (_c *MockCredentialManagementClient_GetCredential_Call) Run(run func(ctx context.Context, in *GetCredentialRequest, opts ...grpc.CallOption)) *MockCredentialManagementClient_GetCredential_Call
func (*MockCredentialManagementClient_GetCredential_Call) RunAndReturn ¶ added in v1.5.1
func (_c *MockCredentialManagementClient_GetCredential_Call) RunAndReturn(run func(context.Context, *GetCredentialRequest, ...grpc.CallOption) (*GetCredentialResponse, error)) *MockCredentialManagementClient_GetCredential_Call
type MockCredentialManagementServer ¶
MockCredentialManagementServer is an autogenerated mock type for the CredentialManagementServer type
func NewMockCredentialManagementServer ¶
func NewMockCredentialManagementServer(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*MockCredentialManagementServer) EXPECT ¶
func (_m *MockCredentialManagementServer) EXPECT() *MockCredentialManagementServer_Expecter
func (*MockCredentialManagementServer) GetCredential ¶
func (_m *MockCredentialManagementServer) GetCredential(_a0 context.Context, _a1 *GetCredentialRequest) (*GetCredentialResponse, error)
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 ¶
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 (_c *MockCredentialManagementServer_GetCredential_Call) Return(_a0 *GetCredentialResponse, _a1 error) *MockCredentialManagementServer_GetCredential_Call
func (*MockCredentialManagementServer_GetCredential_Call) Run ¶
func (_c *MockCredentialManagementServer_GetCredential_Call) Run(run func(_a0 context.Context, _a1 *GetCredentialRequest)) *MockCredentialManagementServer_GetCredential_Call
func (*MockCredentialManagementServer_GetCredential_Call) RunAndReturn ¶ added in v1.5.1
func (_c *MockCredentialManagementServer_GetCredential_Call) RunAndReturn(run func(context.Context, *GetCredentialRequest) (*GetCredentialResponse, error)) *MockCredentialManagementServer_GetCredential_Call
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) RunAndReturn ¶ added in v1.5.1
type MockUnsafeCredentialManagementServer ¶
MockUnsafeCredentialManagementServer is an autogenerated mock type for the UnsafeCredentialManagementServer type
func NewMockUnsafeCredentialManagementServer ¶
func NewMockUnsafeCredentialManagementServer(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*MockUnsafeCredentialManagementServer) EXPECT ¶
func (_m *MockUnsafeCredentialManagementServer) EXPECT() *MockUnsafeCredentialManagementServer_Expecter
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) Return ¶
func (*MockUnsafeCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call) Run ¶
func (*MockUnsafeCredentialManagementServer_mustEmbedUnimplementedCredentialManagementServer_Call) RunAndReturn ¶ added in v1.5.1
type UnimplementedCredentialManagementServer ¶
type UnimplementedCredentialManagementServer struct { }
UnimplementedCredentialManagementServer must be embedded to have forward compatible implementations.
func (UnimplementedCredentialManagementServer) GetCredential ¶
func (UnimplementedCredentialManagementServer) GetCredential(context.Context, *GetCredentialRequest) (*GetCredentialResponse, error)
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.