Documentation ¶
Overview ¶
Package kasregistry is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterKeyAccessServerRegistryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterKeyAccessServerRegistryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterKeyAccessServerRegistryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterKeyAccessServerRegistryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterKeyAccessServerRegistryServiceServer(s grpc.ServiceRegistrar, srv KeyAccessServerRegistryServiceServer)
- type CreateKeyAccessServerRequest
- func (*CreateKeyAccessServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateKeyAccessServerRequest) GetMetadata() *common.MetadataMutable
- func (x *CreateKeyAccessServerRequest) GetPublicKey() *policy.PublicKey
- func (x *CreateKeyAccessServerRequest) GetUri() string
- func (*CreateKeyAccessServerRequest) ProtoMessage()
- func (x *CreateKeyAccessServerRequest) ProtoReflect() protoreflect.Message
- func (x *CreateKeyAccessServerRequest) Reset()
- func (x *CreateKeyAccessServerRequest) String() string
- type CreateKeyAccessServerResponse
- func (*CreateKeyAccessServerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateKeyAccessServerResponse) GetKeyAccessServer() *policy.KeyAccessServer
- func (*CreateKeyAccessServerResponse) ProtoMessage()
- func (x *CreateKeyAccessServerResponse) ProtoReflect() protoreflect.Message
- func (x *CreateKeyAccessServerResponse) Reset()
- func (x *CreateKeyAccessServerResponse) String() string
- type DeleteKeyAccessServerRequest
- func (*DeleteKeyAccessServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteKeyAccessServerRequest) GetId() string
- func (*DeleteKeyAccessServerRequest) ProtoMessage()
- func (x *DeleteKeyAccessServerRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteKeyAccessServerRequest) Reset()
- func (x *DeleteKeyAccessServerRequest) String() string
- type DeleteKeyAccessServerResponse
- func (*DeleteKeyAccessServerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteKeyAccessServerResponse) GetKeyAccessServer() *policy.KeyAccessServer
- func (*DeleteKeyAccessServerResponse) ProtoMessage()
- func (x *DeleteKeyAccessServerResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteKeyAccessServerResponse) Reset()
- func (x *DeleteKeyAccessServerResponse) String() string
- type GetKeyAccessServerRequest
- func (*GetKeyAccessServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetKeyAccessServerRequest) GetId() string
- func (*GetKeyAccessServerRequest) ProtoMessage()
- func (x *GetKeyAccessServerRequest) ProtoReflect() protoreflect.Message
- func (x *GetKeyAccessServerRequest) Reset()
- func (x *GetKeyAccessServerRequest) String() string
- type GetKeyAccessServerResponse
- func (*GetKeyAccessServerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetKeyAccessServerResponse) GetKeyAccessServer() *policy.KeyAccessServer
- func (*GetKeyAccessServerResponse) ProtoMessage()
- func (x *GetKeyAccessServerResponse) ProtoReflect() protoreflect.Message
- func (x *GetKeyAccessServerResponse) Reset()
- func (x *GetKeyAccessServerResponse) String() string
- type GrantedPolicyObject
- func (*GrantedPolicyObject) Descriptor() ([]byte, []int)deprecated
- func (x *GrantedPolicyObject) GetFqn() string
- func (x *GrantedPolicyObject) GetId() string
- func (*GrantedPolicyObject) ProtoMessage()
- func (x *GrantedPolicyObject) ProtoReflect() protoreflect.Message
- func (x *GrantedPolicyObject) Reset()
- func (x *GrantedPolicyObject) String() string
- type KeyAccessServerGrants
- func (*KeyAccessServerGrants) Descriptor() ([]byte, []int)deprecated
- func (x *KeyAccessServerGrants) GetAttributeGrants() []*GrantedPolicyObject
- func (x *KeyAccessServerGrants) GetKeyAccessServer() *policy.KeyAccessServer
- func (x *KeyAccessServerGrants) GetNamespaceGrants() []*GrantedPolicyObject
- func (x *KeyAccessServerGrants) GetValueGrants() []*GrantedPolicyObject
- func (*KeyAccessServerGrants) ProtoMessage()
- func (x *KeyAccessServerGrants) ProtoReflect() protoreflect.Message
- func (x *KeyAccessServerGrants) Reset()
- func (x *KeyAccessServerGrants) String() string
- type KeyAccessServerRegistryServiceClient
- type KeyAccessServerRegistryServiceServer
- type ListKeyAccessServerGrantsRequest
- func (*ListKeyAccessServerGrantsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListKeyAccessServerGrantsRequest) GetKasId() string
- func (x *ListKeyAccessServerGrantsRequest) GetKasUri() string
- func (*ListKeyAccessServerGrantsRequest) ProtoMessage()
- func (x *ListKeyAccessServerGrantsRequest) ProtoReflect() protoreflect.Message
- func (x *ListKeyAccessServerGrantsRequest) Reset()
- func (x *ListKeyAccessServerGrantsRequest) String() string
- type ListKeyAccessServerGrantsResponse
- func (*ListKeyAccessServerGrantsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListKeyAccessServerGrantsResponse) GetGrants() []*KeyAccessServerGrants
- func (*ListKeyAccessServerGrantsResponse) ProtoMessage()
- func (x *ListKeyAccessServerGrantsResponse) ProtoReflect() protoreflect.Message
- func (x *ListKeyAccessServerGrantsResponse) Reset()
- func (x *ListKeyAccessServerGrantsResponse) String() string
- type ListKeyAccessServersRequest
- type ListKeyAccessServersResponse
- func (*ListKeyAccessServersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListKeyAccessServersResponse) GetKeyAccessServers() []*policy.KeyAccessServer
- func (*ListKeyAccessServersResponse) ProtoMessage()
- func (x *ListKeyAccessServersResponse) ProtoReflect() protoreflect.Message
- func (x *ListKeyAccessServersResponse) Reset()
- func (x *ListKeyAccessServersResponse) String() string
- type UnimplementedKeyAccessServerRegistryServiceServer
- func (UnimplementedKeyAccessServerRegistryServiceServer) CreateKeyAccessServer(context.Context, *CreateKeyAccessServerRequest) (*CreateKeyAccessServerResponse, error)
- func (UnimplementedKeyAccessServerRegistryServiceServer) DeleteKeyAccessServer(context.Context, *DeleteKeyAccessServerRequest) (*DeleteKeyAccessServerResponse, error)
- func (UnimplementedKeyAccessServerRegistryServiceServer) GetKeyAccessServer(context.Context, *GetKeyAccessServerRequest) (*GetKeyAccessServerResponse, error)
- func (UnimplementedKeyAccessServerRegistryServiceServer) ListKeyAccessServerGrants(context.Context, *ListKeyAccessServerGrantsRequest) (*ListKeyAccessServerGrantsResponse, error)
- func (UnimplementedKeyAccessServerRegistryServiceServer) ListKeyAccessServers(context.Context, *ListKeyAccessServersRequest) (*ListKeyAccessServersResponse, error)
- func (UnimplementedKeyAccessServerRegistryServiceServer) UpdateKeyAccessServer(context.Context, *UpdateKeyAccessServerRequest) (*UpdateKeyAccessServerResponse, error)
- type UnsafeKeyAccessServerRegistryServiceServer
- type UpdateKeyAccessServerRequest
- func (*UpdateKeyAccessServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateKeyAccessServerRequest) GetId() string
- func (x *UpdateKeyAccessServerRequest) GetMetadata() *common.MetadataMutable
- func (x *UpdateKeyAccessServerRequest) GetMetadataUpdateBehavior() common.MetadataUpdateEnum
- func (x *UpdateKeyAccessServerRequest) GetPublicKey() *policy.PublicKey
- func (x *UpdateKeyAccessServerRequest) GetUri() string
- func (*UpdateKeyAccessServerRequest) ProtoMessage()
- func (x *UpdateKeyAccessServerRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateKeyAccessServerRequest) Reset()
- func (x *UpdateKeyAccessServerRequest) String() string
- type UpdateKeyAccessServerResponse
- func (*UpdateKeyAccessServerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateKeyAccessServerResponse) GetKeyAccessServer() *policy.KeyAccessServer
- func (*UpdateKeyAccessServerResponse) ProtoMessage()
- func (x *UpdateKeyAccessServerResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateKeyAccessServerResponse) Reset()
- func (x *UpdateKeyAccessServerResponse) String() string
Constants ¶
const ( KeyAccessServerRegistryService_ListKeyAccessServers_FullMethodName = "/policy.kasregistry.KeyAccessServerRegistryService/ListKeyAccessServers" KeyAccessServerRegistryService_GetKeyAccessServer_FullMethodName = "/policy.kasregistry.KeyAccessServerRegistryService/GetKeyAccessServer" KeyAccessServerRegistryService_CreateKeyAccessServer_FullMethodName = "/policy.kasregistry.KeyAccessServerRegistryService/CreateKeyAccessServer" KeyAccessServerRegistryService_UpdateKeyAccessServer_FullMethodName = "/policy.kasregistry.KeyAccessServerRegistryService/UpdateKeyAccessServer" KeyAccessServerRegistryService_DeleteKeyAccessServer_FullMethodName = "/policy.kasregistry.KeyAccessServerRegistryService/DeleteKeyAccessServer" KeyAccessServerRegistryService_ListKeyAccessServerGrants_FullMethodName = "/policy.kasregistry.KeyAccessServerRegistryService/ListKeyAccessServerGrants" )
Variables ¶
var File_policy_kasregistry_key_access_server_registry_proto protoreflect.FileDescriptor
var KeyAccessServerRegistryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "policy.kasregistry.KeyAccessServerRegistryService", HandlerType: (*KeyAccessServerRegistryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListKeyAccessServers", Handler: _KeyAccessServerRegistryService_ListKeyAccessServers_Handler, }, { MethodName: "GetKeyAccessServer", Handler: _KeyAccessServerRegistryService_GetKeyAccessServer_Handler, }, { MethodName: "CreateKeyAccessServer", Handler: _KeyAccessServerRegistryService_CreateKeyAccessServer_Handler, }, { MethodName: "UpdateKeyAccessServer", Handler: _KeyAccessServerRegistryService_UpdateKeyAccessServer_Handler, }, { MethodName: "DeleteKeyAccessServer", Handler: _KeyAccessServerRegistryService_DeleteKeyAccessServer_Handler, }, { MethodName: "ListKeyAccessServerGrants", Handler: _KeyAccessServerRegistryService_ListKeyAccessServerGrants_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "policy/kasregistry/key_access_server_registry.proto", }
KeyAccessServerRegistryService_ServiceDesc is the grpc.ServiceDesc for KeyAccessServerRegistryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKeyAccessServerRegistryServiceHandler ¶
func RegisterKeyAccessServerRegistryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterKeyAccessServerRegistryServiceHandler registers the http handlers for service KeyAccessServerRegistryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterKeyAccessServerRegistryServiceHandlerClient ¶
func RegisterKeyAccessServerRegistryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client KeyAccessServerRegistryServiceClient) error
RegisterKeyAccessServerRegistryServiceHandlerClient registers the http handlers for service KeyAccessServerRegistryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "KeyAccessServerRegistryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "KeyAccessServerRegistryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "KeyAccessServerRegistryServiceClient" to call the correct interceptors.
func RegisterKeyAccessServerRegistryServiceHandlerFromEndpoint ¶
func RegisterKeyAccessServerRegistryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterKeyAccessServerRegistryServiceHandlerFromEndpoint is same as RegisterKeyAccessServerRegistryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterKeyAccessServerRegistryServiceHandlerServer ¶
func RegisterKeyAccessServerRegistryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server KeyAccessServerRegistryServiceServer) error
RegisterKeyAccessServerRegistryServiceHandlerServer registers the http handlers for service KeyAccessServerRegistryService to "mux". UnaryRPC :call KeyAccessServerRegistryServiceServer 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 RegisterKeyAccessServerRegistryServiceHandlerFromEndpoint instead.
func RegisterKeyAccessServerRegistryServiceServer ¶
func RegisterKeyAccessServerRegistryServiceServer(s grpc.ServiceRegistrar, srv KeyAccessServerRegistryServiceServer)
Types ¶
type CreateKeyAccessServerRequest ¶
type CreateKeyAccessServerRequest struct { // Required Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` PublicKey *policy.PublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Common metadata Metadata *common.MetadataMutable `protobuf:"bytes,100,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*CreateKeyAccessServerRequest) Descriptor
deprecated
func (*CreateKeyAccessServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateKeyAccessServerRequest.ProtoReflect.Descriptor instead.
func (*CreateKeyAccessServerRequest) GetMetadata ¶
func (x *CreateKeyAccessServerRequest) GetMetadata() *common.MetadataMutable
func (*CreateKeyAccessServerRequest) GetPublicKey ¶
func (x *CreateKeyAccessServerRequest) GetPublicKey() *policy.PublicKey
func (*CreateKeyAccessServerRequest) GetUri ¶
func (x *CreateKeyAccessServerRequest) GetUri() string
func (*CreateKeyAccessServerRequest) ProtoMessage ¶
func (*CreateKeyAccessServerRequest) ProtoMessage()
func (*CreateKeyAccessServerRequest) ProtoReflect ¶
func (x *CreateKeyAccessServerRequest) ProtoReflect() protoreflect.Message
func (*CreateKeyAccessServerRequest) Reset ¶
func (x *CreateKeyAccessServerRequest) Reset()
func (*CreateKeyAccessServerRequest) String ¶
func (x *CreateKeyAccessServerRequest) String() string
type CreateKeyAccessServerResponse ¶
type CreateKeyAccessServerResponse struct { KeyAccessServer *policy.KeyAccessServer `protobuf:"bytes,1,opt,name=key_access_server,json=keyAccessServer,proto3" json:"key_access_server,omitempty"` // contains filtered or unexported fields }
func (*CreateKeyAccessServerResponse) Descriptor
deprecated
func (*CreateKeyAccessServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateKeyAccessServerResponse.ProtoReflect.Descriptor instead.
func (*CreateKeyAccessServerResponse) GetKeyAccessServer ¶
func (x *CreateKeyAccessServerResponse) GetKeyAccessServer() *policy.KeyAccessServer
func (*CreateKeyAccessServerResponse) ProtoMessage ¶
func (*CreateKeyAccessServerResponse) ProtoMessage()
func (*CreateKeyAccessServerResponse) ProtoReflect ¶
func (x *CreateKeyAccessServerResponse) ProtoReflect() protoreflect.Message
func (*CreateKeyAccessServerResponse) Reset ¶
func (x *CreateKeyAccessServerResponse) Reset()
func (*CreateKeyAccessServerResponse) String ¶
func (x *CreateKeyAccessServerResponse) String() string
type DeleteKeyAccessServerRequest ¶
type DeleteKeyAccessServerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteKeyAccessServerRequest) Descriptor
deprecated
func (*DeleteKeyAccessServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteKeyAccessServerRequest.ProtoReflect.Descriptor instead.
func (*DeleteKeyAccessServerRequest) GetId ¶
func (x *DeleteKeyAccessServerRequest) GetId() string
func (*DeleteKeyAccessServerRequest) ProtoMessage ¶
func (*DeleteKeyAccessServerRequest) ProtoMessage()
func (*DeleteKeyAccessServerRequest) ProtoReflect ¶
func (x *DeleteKeyAccessServerRequest) ProtoReflect() protoreflect.Message
func (*DeleteKeyAccessServerRequest) Reset ¶
func (x *DeleteKeyAccessServerRequest) Reset()
func (*DeleteKeyAccessServerRequest) String ¶
func (x *DeleteKeyAccessServerRequest) String() string
type DeleteKeyAccessServerResponse ¶
type DeleteKeyAccessServerResponse struct { KeyAccessServer *policy.KeyAccessServer `protobuf:"bytes,1,opt,name=key_access_server,json=keyAccessServer,proto3" json:"key_access_server,omitempty"` // contains filtered or unexported fields }
func (*DeleteKeyAccessServerResponse) Descriptor
deprecated
func (*DeleteKeyAccessServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteKeyAccessServerResponse.ProtoReflect.Descriptor instead.
func (*DeleteKeyAccessServerResponse) GetKeyAccessServer ¶
func (x *DeleteKeyAccessServerResponse) GetKeyAccessServer() *policy.KeyAccessServer
func (*DeleteKeyAccessServerResponse) ProtoMessage ¶
func (*DeleteKeyAccessServerResponse) ProtoMessage()
func (*DeleteKeyAccessServerResponse) ProtoReflect ¶
func (x *DeleteKeyAccessServerResponse) ProtoReflect() protoreflect.Message
func (*DeleteKeyAccessServerResponse) Reset ¶
func (x *DeleteKeyAccessServerResponse) Reset()
func (*DeleteKeyAccessServerResponse) String ¶
func (x *DeleteKeyAccessServerResponse) String() string
type GetKeyAccessServerRequest ¶
type GetKeyAccessServerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetKeyAccessServerRequest) Descriptor
deprecated
func (*GetKeyAccessServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyAccessServerRequest.ProtoReflect.Descriptor instead.
func (*GetKeyAccessServerRequest) GetId ¶
func (x *GetKeyAccessServerRequest) GetId() string
func (*GetKeyAccessServerRequest) ProtoMessage ¶
func (*GetKeyAccessServerRequest) ProtoMessage()
func (*GetKeyAccessServerRequest) ProtoReflect ¶
func (x *GetKeyAccessServerRequest) ProtoReflect() protoreflect.Message
func (*GetKeyAccessServerRequest) Reset ¶
func (x *GetKeyAccessServerRequest) Reset()
func (*GetKeyAccessServerRequest) String ¶
func (x *GetKeyAccessServerRequest) String() string
type GetKeyAccessServerResponse ¶
type GetKeyAccessServerResponse struct { KeyAccessServer *policy.KeyAccessServer `protobuf:"bytes,1,opt,name=key_access_server,json=keyAccessServer,proto3" json:"key_access_server,omitempty"` // contains filtered or unexported fields }
func (*GetKeyAccessServerResponse) Descriptor
deprecated
func (*GetKeyAccessServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyAccessServerResponse.ProtoReflect.Descriptor instead.
func (*GetKeyAccessServerResponse) GetKeyAccessServer ¶
func (x *GetKeyAccessServerResponse) GetKeyAccessServer() *policy.KeyAccessServer
func (*GetKeyAccessServerResponse) ProtoMessage ¶
func (*GetKeyAccessServerResponse) ProtoMessage()
func (*GetKeyAccessServerResponse) ProtoReflect ¶
func (x *GetKeyAccessServerResponse) ProtoReflect() protoreflect.Message
func (*GetKeyAccessServerResponse) Reset ¶
func (x *GetKeyAccessServerResponse) Reset()
func (*GetKeyAccessServerResponse) String ¶
func (x *GetKeyAccessServerResponse) String() string
type GrantedPolicyObject ¶ added in v0.2.12
type GrantedPolicyObject struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Fqn string `protobuf:"bytes,2,opt,name=fqn,proto3" json:"fqn,omitempty"` // contains filtered or unexported fields }
Can be namespace, attribute definition, or value
func (*GrantedPolicyObject) Descriptor
deprecated
added in
v0.2.12
func (*GrantedPolicyObject) Descriptor() ([]byte, []int)
Deprecated: Use GrantedPolicyObject.ProtoReflect.Descriptor instead.
func (*GrantedPolicyObject) GetFqn ¶ added in v0.2.12
func (x *GrantedPolicyObject) GetFqn() string
func (*GrantedPolicyObject) GetId ¶ added in v0.2.12
func (x *GrantedPolicyObject) GetId() string
func (*GrantedPolicyObject) ProtoMessage ¶ added in v0.2.12
func (*GrantedPolicyObject) ProtoMessage()
func (*GrantedPolicyObject) ProtoReflect ¶ added in v0.2.12
func (x *GrantedPolicyObject) ProtoReflect() protoreflect.Message
func (*GrantedPolicyObject) Reset ¶ added in v0.2.12
func (x *GrantedPolicyObject) Reset()
func (*GrantedPolicyObject) String ¶ added in v0.2.12
func (x *GrantedPolicyObject) String() string
type KeyAccessServerGrants ¶ added in v0.2.12
type KeyAccessServerGrants struct { KeyAccessServer *policy.KeyAccessServer `protobuf:"bytes,1,opt,name=key_access_server,json=keyAccessServer,proto3" json:"key_access_server,omitempty"` NamespaceGrants []*GrantedPolicyObject `protobuf:"bytes,2,rep,name=namespace_grants,json=namespaceGrants,proto3" json:"namespace_grants,omitempty"` AttributeGrants []*GrantedPolicyObject `protobuf:"bytes,3,rep,name=attribute_grants,json=attributeGrants,proto3" json:"attribute_grants,omitempty"` ValueGrants []*GrantedPolicyObject `protobuf:"bytes,4,rep,name=value_grants,json=valueGrants,proto3" json:"value_grants,omitempty"` // contains filtered or unexported fields }
func (*KeyAccessServerGrants) Descriptor
deprecated
added in
v0.2.12
func (*KeyAccessServerGrants) Descriptor() ([]byte, []int)
Deprecated: Use KeyAccessServerGrants.ProtoReflect.Descriptor instead.
func (*KeyAccessServerGrants) GetAttributeGrants ¶ added in v0.2.12
func (x *KeyAccessServerGrants) GetAttributeGrants() []*GrantedPolicyObject
func (*KeyAccessServerGrants) GetKeyAccessServer ¶ added in v0.2.12
func (x *KeyAccessServerGrants) GetKeyAccessServer() *policy.KeyAccessServer
func (*KeyAccessServerGrants) GetNamespaceGrants ¶ added in v0.2.12
func (x *KeyAccessServerGrants) GetNamespaceGrants() []*GrantedPolicyObject
func (*KeyAccessServerGrants) GetValueGrants ¶ added in v0.2.12
func (x *KeyAccessServerGrants) GetValueGrants() []*GrantedPolicyObject
func (*KeyAccessServerGrants) ProtoMessage ¶ added in v0.2.12
func (*KeyAccessServerGrants) ProtoMessage()
func (*KeyAccessServerGrants) ProtoReflect ¶ added in v0.2.12
func (x *KeyAccessServerGrants) ProtoReflect() protoreflect.Message
func (*KeyAccessServerGrants) Reset ¶ added in v0.2.12
func (x *KeyAccessServerGrants) Reset()
func (*KeyAccessServerGrants) String ¶ added in v0.2.12
func (x *KeyAccessServerGrants) String() string
type KeyAccessServerRegistryServiceClient ¶
type KeyAccessServerRegistryServiceClient interface { ListKeyAccessServers(ctx context.Context, in *ListKeyAccessServersRequest, opts ...grpc.CallOption) (*ListKeyAccessServersResponse, error) GetKeyAccessServer(ctx context.Context, in *GetKeyAccessServerRequest, opts ...grpc.CallOption) (*GetKeyAccessServerResponse, error) CreateKeyAccessServer(ctx context.Context, in *CreateKeyAccessServerRequest, opts ...grpc.CallOption) (*CreateKeyAccessServerResponse, error) UpdateKeyAccessServer(ctx context.Context, in *UpdateKeyAccessServerRequest, opts ...grpc.CallOption) (*UpdateKeyAccessServerResponse, error) DeleteKeyAccessServer(ctx context.Context, in *DeleteKeyAccessServerRequest, opts ...grpc.CallOption) (*DeleteKeyAccessServerResponse, error) ListKeyAccessServerGrants(ctx context.Context, in *ListKeyAccessServerGrantsRequest, opts ...grpc.CallOption) (*ListKeyAccessServerGrantsResponse, error) }
KeyAccessServerRegistryServiceClient is the client API for KeyAccessServerRegistryService 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 NewKeyAccessServerRegistryServiceClient ¶
func NewKeyAccessServerRegistryServiceClient(cc grpc.ClientConnInterface) KeyAccessServerRegistryServiceClient
type KeyAccessServerRegistryServiceServer ¶
type KeyAccessServerRegistryServiceServer interface { ListKeyAccessServers(context.Context, *ListKeyAccessServersRequest) (*ListKeyAccessServersResponse, error) GetKeyAccessServer(context.Context, *GetKeyAccessServerRequest) (*GetKeyAccessServerResponse, error) CreateKeyAccessServer(context.Context, *CreateKeyAccessServerRequest) (*CreateKeyAccessServerResponse, error) UpdateKeyAccessServer(context.Context, *UpdateKeyAccessServerRequest) (*UpdateKeyAccessServerResponse, error) DeleteKeyAccessServer(context.Context, *DeleteKeyAccessServerRequest) (*DeleteKeyAccessServerResponse, error) ListKeyAccessServerGrants(context.Context, *ListKeyAccessServerGrantsRequest) (*ListKeyAccessServerGrantsResponse, error) // contains filtered or unexported methods }
KeyAccessServerRegistryServiceServer is the server API for KeyAccessServerRegistryService service. All implementations must embed UnimplementedKeyAccessServerRegistryServiceServer for forward compatibility
type ListKeyAccessServerGrantsRequest ¶ added in v0.2.12
type ListKeyAccessServerGrantsRequest struct { // Optional // Filter LIST by either ID or URI of a registered Key Access Server. // If neither is provided, grants from all registered KASs to policy attribute objects are returned. KasId string `protobuf:"bytes,1,opt,name=kas_id,json=kasId,proto3" json:"kas_id,omitempty"` KasUri string `protobuf:"bytes,2,opt,name=kas_uri,json=kasUri,proto3" json:"kas_uri,omitempty"` // contains filtered or unexported fields }
LIST of KAS Grants returns flat response of grants to all policy objects. It does not employ selectors for grants to specific policy objects or build the attribute tree relation. If grants to a known namespace, attribute, or value are needed, use the respective GET request to the specific policy object.
func (*ListKeyAccessServerGrantsRequest) Descriptor
deprecated
added in
v0.2.12
func (*ListKeyAccessServerGrantsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListKeyAccessServerGrantsRequest.ProtoReflect.Descriptor instead.
func (*ListKeyAccessServerGrantsRequest) GetKasId ¶ added in v0.2.12
func (x *ListKeyAccessServerGrantsRequest) GetKasId() string
func (*ListKeyAccessServerGrantsRequest) GetKasUri ¶ added in v0.2.12
func (x *ListKeyAccessServerGrantsRequest) GetKasUri() string
func (*ListKeyAccessServerGrantsRequest) ProtoMessage ¶ added in v0.2.12
func (*ListKeyAccessServerGrantsRequest) ProtoMessage()
func (*ListKeyAccessServerGrantsRequest) ProtoReflect ¶ added in v0.2.12
func (x *ListKeyAccessServerGrantsRequest) ProtoReflect() protoreflect.Message
func (*ListKeyAccessServerGrantsRequest) Reset ¶ added in v0.2.12
func (x *ListKeyAccessServerGrantsRequest) Reset()
func (*ListKeyAccessServerGrantsRequest) String ¶ added in v0.2.12
func (x *ListKeyAccessServerGrantsRequest) String() string
type ListKeyAccessServerGrantsResponse ¶ added in v0.2.12
type ListKeyAccessServerGrantsResponse struct { Grants []*KeyAccessServerGrants `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants,omitempty"` // contains filtered or unexported fields }
func (*ListKeyAccessServerGrantsResponse) Descriptor
deprecated
added in
v0.2.12
func (*ListKeyAccessServerGrantsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListKeyAccessServerGrantsResponse.ProtoReflect.Descriptor instead.
func (*ListKeyAccessServerGrantsResponse) GetGrants ¶ added in v0.2.12
func (x *ListKeyAccessServerGrantsResponse) GetGrants() []*KeyAccessServerGrants
func (*ListKeyAccessServerGrantsResponse) ProtoMessage ¶ added in v0.2.12
func (*ListKeyAccessServerGrantsResponse) ProtoMessage()
func (*ListKeyAccessServerGrantsResponse) ProtoReflect ¶ added in v0.2.12
func (x *ListKeyAccessServerGrantsResponse) ProtoReflect() protoreflect.Message
func (*ListKeyAccessServerGrantsResponse) Reset ¶ added in v0.2.12
func (x *ListKeyAccessServerGrantsResponse) Reset()
func (*ListKeyAccessServerGrantsResponse) String ¶ added in v0.2.12
func (x *ListKeyAccessServerGrantsResponse) String() string
type ListKeyAccessServersRequest ¶
type ListKeyAccessServersRequest struct {
// contains filtered or unexported fields
}
func (*ListKeyAccessServersRequest) Descriptor
deprecated
func (*ListKeyAccessServersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListKeyAccessServersRequest.ProtoReflect.Descriptor instead.
func (*ListKeyAccessServersRequest) ProtoMessage ¶
func (*ListKeyAccessServersRequest) ProtoMessage()
func (*ListKeyAccessServersRequest) ProtoReflect ¶
func (x *ListKeyAccessServersRequest) ProtoReflect() protoreflect.Message
func (*ListKeyAccessServersRequest) Reset ¶
func (x *ListKeyAccessServersRequest) Reset()
func (*ListKeyAccessServersRequest) String ¶
func (x *ListKeyAccessServersRequest) String() string
type ListKeyAccessServersResponse ¶
type ListKeyAccessServersResponse struct { KeyAccessServers []*policy.KeyAccessServer `protobuf:"bytes,1,rep,name=key_access_servers,json=keyAccessServers,proto3" json:"key_access_servers,omitempty"` // contains filtered or unexported fields }
func (*ListKeyAccessServersResponse) Descriptor
deprecated
func (*ListKeyAccessServersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListKeyAccessServersResponse.ProtoReflect.Descriptor instead.
func (*ListKeyAccessServersResponse) GetKeyAccessServers ¶
func (x *ListKeyAccessServersResponse) GetKeyAccessServers() []*policy.KeyAccessServer
func (*ListKeyAccessServersResponse) ProtoMessage ¶
func (*ListKeyAccessServersResponse) ProtoMessage()
func (*ListKeyAccessServersResponse) ProtoReflect ¶
func (x *ListKeyAccessServersResponse) ProtoReflect() protoreflect.Message
func (*ListKeyAccessServersResponse) Reset ¶
func (x *ListKeyAccessServersResponse) Reset()
func (*ListKeyAccessServersResponse) String ¶
func (x *ListKeyAccessServersResponse) String() string
type UnimplementedKeyAccessServerRegistryServiceServer ¶
type UnimplementedKeyAccessServerRegistryServiceServer struct { }
UnimplementedKeyAccessServerRegistryServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedKeyAccessServerRegistryServiceServer) CreateKeyAccessServer ¶
func (UnimplementedKeyAccessServerRegistryServiceServer) CreateKeyAccessServer(context.Context, *CreateKeyAccessServerRequest) (*CreateKeyAccessServerResponse, error)
func (UnimplementedKeyAccessServerRegistryServiceServer) DeleteKeyAccessServer ¶
func (UnimplementedKeyAccessServerRegistryServiceServer) DeleteKeyAccessServer(context.Context, *DeleteKeyAccessServerRequest) (*DeleteKeyAccessServerResponse, error)
func (UnimplementedKeyAccessServerRegistryServiceServer) GetKeyAccessServer ¶
func (UnimplementedKeyAccessServerRegistryServiceServer) GetKeyAccessServer(context.Context, *GetKeyAccessServerRequest) (*GetKeyAccessServerResponse, error)
func (UnimplementedKeyAccessServerRegistryServiceServer) ListKeyAccessServerGrants ¶ added in v0.2.12
func (UnimplementedKeyAccessServerRegistryServiceServer) ListKeyAccessServerGrants(context.Context, *ListKeyAccessServerGrantsRequest) (*ListKeyAccessServerGrantsResponse, error)
func (UnimplementedKeyAccessServerRegistryServiceServer) ListKeyAccessServers ¶
func (UnimplementedKeyAccessServerRegistryServiceServer) ListKeyAccessServers(context.Context, *ListKeyAccessServersRequest) (*ListKeyAccessServersResponse, error)
func (UnimplementedKeyAccessServerRegistryServiceServer) UpdateKeyAccessServer ¶
func (UnimplementedKeyAccessServerRegistryServiceServer) UpdateKeyAccessServer(context.Context, *UpdateKeyAccessServerRequest) (*UpdateKeyAccessServerResponse, error)
type UnsafeKeyAccessServerRegistryServiceServer ¶
type UnsafeKeyAccessServerRegistryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeKeyAccessServerRegistryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyAccessServerRegistryServiceServer will result in compilation errors.
type UpdateKeyAccessServerRequest ¶
type UpdateKeyAccessServerRequest struct { // Required Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` PublicKey *policy.PublicKey `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Common metadata Metadata *common.MetadataMutable `protobuf:"bytes,100,opt,name=metadata,proto3" json:"metadata,omitempty"` MetadataUpdateBehavior common.MetadataUpdateEnum `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UpdateKeyAccessServerRequest) Descriptor
deprecated
func (*UpdateKeyAccessServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateKeyAccessServerRequest.ProtoReflect.Descriptor instead.
func (*UpdateKeyAccessServerRequest) GetId ¶
func (x *UpdateKeyAccessServerRequest) GetId() string
func (*UpdateKeyAccessServerRequest) GetMetadata ¶
func (x *UpdateKeyAccessServerRequest) GetMetadata() *common.MetadataMutable
func (*UpdateKeyAccessServerRequest) GetMetadataUpdateBehavior ¶
func (x *UpdateKeyAccessServerRequest) GetMetadataUpdateBehavior() common.MetadataUpdateEnum
func (*UpdateKeyAccessServerRequest) GetPublicKey ¶
func (x *UpdateKeyAccessServerRequest) GetPublicKey() *policy.PublicKey
func (*UpdateKeyAccessServerRequest) GetUri ¶
func (x *UpdateKeyAccessServerRequest) GetUri() string
func (*UpdateKeyAccessServerRequest) ProtoMessage ¶
func (*UpdateKeyAccessServerRequest) ProtoMessage()
func (*UpdateKeyAccessServerRequest) ProtoReflect ¶
func (x *UpdateKeyAccessServerRequest) ProtoReflect() protoreflect.Message
func (*UpdateKeyAccessServerRequest) Reset ¶
func (x *UpdateKeyAccessServerRequest) Reset()
func (*UpdateKeyAccessServerRequest) String ¶
func (x *UpdateKeyAccessServerRequest) String() string
type UpdateKeyAccessServerResponse ¶
type UpdateKeyAccessServerResponse struct { KeyAccessServer *policy.KeyAccessServer `protobuf:"bytes,1,opt,name=key_access_server,json=keyAccessServer,proto3" json:"key_access_server,omitempty"` // contains filtered or unexported fields }
func (*UpdateKeyAccessServerResponse) Descriptor
deprecated
func (*UpdateKeyAccessServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateKeyAccessServerResponse.ProtoReflect.Descriptor instead.
func (*UpdateKeyAccessServerResponse) GetKeyAccessServer ¶
func (x *UpdateKeyAccessServerResponse) GetKeyAccessServer() *policy.KeyAccessServer
func (*UpdateKeyAccessServerResponse) ProtoMessage ¶
func (*UpdateKeyAccessServerResponse) ProtoMessage()
func (*UpdateKeyAccessServerResponse) ProtoReflect ¶
func (x *UpdateKeyAccessServerResponse) ProtoReflect() protoreflect.Message
func (*UpdateKeyAccessServerResponse) Reset ¶
func (x *UpdateKeyAccessServerResponse) Reset()
func (*UpdateKeyAccessServerResponse) String ¶
func (x *UpdateKeyAccessServerResponse) String() string