Documentation ¶
Overview ¶
Package registry_tenant is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package registry_tenant is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterPolicyHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPolicyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PolicyClient) error
- func RegisterPolicyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPolicyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PolicyServer) error
- func RegisterPolicyServer(s grpc.ServiceRegistrar, srv PolicyServer)
- func RegisterTenantHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTenantHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TenantClient) error
- func RegisterTenantHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTenantHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TenantServer) error
- func RegisterTenantServer(s grpc.ServiceRegistrar, srv TenantServer)
- type CreatePolicyImageRequest
- func (*CreatePolicyImageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePolicyImageRequest) GetForceReconnect() bool
- func (x *CreatePolicyImageRequest) GetPolicyRef() *v1.PolicyRef
- func (*CreatePolicyImageRequest) ProtoMessage()
- func (x *CreatePolicyImageRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePolicyImageRequest) Reset()
- func (x *CreatePolicyImageRequest) String() string
- type CreatePolicyImageResponse
- func (*CreatePolicyImageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePolicyImageResponse) GetId() string
- func (*CreatePolicyImageResponse) ProtoMessage()
- func (x *CreatePolicyImageResponse) ProtoReflect() protoreflect.Message
- func (x *CreatePolicyImageResponse) Reset()
- func (x *CreatePolicyImageResponse) String() string
- type DeletePolicyImageRequest
- func (*DeletePolicyImageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePolicyImageRequest) GetId() string
- func (*DeletePolicyImageRequest) ProtoMessage()
- func (x *DeletePolicyImageRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePolicyImageRequest) Reset()
- func (x *DeletePolicyImageRequest) String() string
- type DeletePolicyImageResponse
- func (*DeletePolicyImageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePolicyImageResponse) GetResult() *emptypb.Empty
- func (*DeletePolicyImageResponse) ProtoMessage()
- func (x *DeletePolicyImageResponse) ProtoReflect() protoreflect.Message
- func (x *DeletePolicyImageResponse) Reset()
- func (x *DeletePolicyImageResponse) String() string
- type GetPolicyImageRequest
- func (*GetPolicyImageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPolicyImageRequest) GetId() string
- func (*GetPolicyImageRequest) ProtoMessage()
- func (x *GetPolicyImageRequest) ProtoReflect() protoreflect.Message
- func (x *GetPolicyImageRequest) Reset()
- func (x *GetPolicyImageRequest) String() string
- type GetPolicyImageResponse
- func (*GetPolicyImageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPolicyImageResponse) GetPolicy() *v1.PolicyRef
- func (*GetPolicyImageResponse) ProtoMessage()
- func (x *GetPolicyImageResponse) ProtoReflect() protoreflect.Message
- func (x *GetPolicyImageResponse) Reset()
- func (x *GetPolicyImageResponse) String() string
- type ListPolicyImagesRequest
- func (*ListPolicyImagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPolicyImagesRequest) GetName() string
- func (*ListPolicyImagesRequest) ProtoMessage()
- func (x *ListPolicyImagesRequest) ProtoReflect() protoreflect.Message
- func (x *ListPolicyImagesRequest) Reset()
- func (x *ListPolicyImagesRequest) String() string
- type ListPolicyImagesResponse
- func (*ListPolicyImagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPolicyImagesResponse) GetResults() []*v1.PolicyRef
- func (*ListPolicyImagesResponse) ProtoMessage()
- func (x *ListPolicyImagesResponse) ProtoReflect() protoreflect.Message
- func (x *ListPolicyImagesResponse) Reset()
- func (x *ListPolicyImagesResponse) String() string
- type ListPublicPolicyImagesRequest
- func (*ListPublicPolicyImagesRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListPublicPolicyImagesRequest) ProtoMessage()
- func (x *ListPublicPolicyImagesRequest) ProtoReflect() protoreflect.Message
- func (x *ListPublicPolicyImagesRequest) Reset()
- func (x *ListPublicPolicyImagesRequest) String() string
- type ListPublicPolicyImagesResponse
- func (*ListPublicPolicyImagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPublicPolicyImagesResponse) GetResults() []*v1.PolicyRef
- func (*ListPublicPolicyImagesResponse) ProtoMessage()
- func (x *ListPublicPolicyImagesResponse) ProtoReflect() protoreflect.Message
- func (x *ListPublicPolicyImagesResponse) Reset()
- func (x *ListPublicPolicyImagesResponse) String() string
- type ListPublicTenantsRequest
- func (*ListPublicTenantsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPublicTenantsRequest) GetPage() *v1.PaginationRequest
- func (x *ListPublicTenantsRequest) GetTenants() []*v1.Tenant
- func (*ListPublicTenantsRequest) ProtoMessage()
- func (x *ListPublicTenantsRequest) ProtoReflect() protoreflect.Message
- func (x *ListPublicTenantsRequest) Reset()
- func (x *ListPublicTenantsRequest) String() string
- type ListPublicTenantsResponse
- func (*ListPublicTenantsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPublicTenantsResponse) GetPage() *v1.PaginationResponse
- func (x *ListPublicTenantsResponse) GetTenants() []*v1.Tenant
- func (*ListPublicTenantsResponse) ProtoMessage()
- func (x *ListPublicTenantsResponse) ProtoReflect() protoreflect.Message
- func (x *ListPublicTenantsResponse) Reset()
- func (x *ListPublicTenantsResponse) String() string
- type ListTenantsRequest
- func (*ListTenantsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTenantsRequest) GetName() string
- func (x *ListTenantsRequest) GetPage() *v1.PaginationRequest
- func (*ListTenantsRequest) ProtoMessage()
- func (x *ListTenantsRequest) ProtoReflect() protoreflect.Message
- func (x *ListTenantsRequest) Reset()
- func (x *ListTenantsRequest) String() string
- type ListTenantsResponse
- func (*ListTenantsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTenantsResponse) GetPage() *v1.PaginationResponse
- func (x *ListTenantsResponse) GetTenants() []*v1.Tenant
- func (*ListTenantsResponse) ProtoMessage()
- func (x *ListTenantsResponse) ProtoReflect() protoreflect.Message
- func (x *ListTenantsResponse) Reset()
- func (x *ListTenantsResponse) String() string
- type PolicyClient
- type PolicyServer
- type TenantClient
- type TenantServer
- type UnimplementedPolicyServer
- func (UnimplementedPolicyServer) CreatePolicyImage(context.Context, *CreatePolicyImageRequest) (*CreatePolicyImageResponse, error)
- func (UnimplementedPolicyServer) DeletePolicyImage(context.Context, *DeletePolicyImageRequest) (*DeletePolicyImageResponse, error)
- func (UnimplementedPolicyServer) GetPolicyImage(context.Context, *GetPolicyImageRequest) (*GetPolicyImageResponse, error)
- func (UnimplementedPolicyServer) ListPolicyImages(context.Context, *ListPolicyImagesRequest) (*ListPolicyImagesResponse, error)
- func (UnimplementedPolicyServer) ListPublicPolicyImages(context.Context, *ListPublicPolicyImagesRequest) (*ListPublicPolicyImagesResponse, error)
- func (UnimplementedPolicyServer) UpdatePolicyImage(context.Context, *UpdatePolicyImageRequest) (*UpdatePolicyImageResponse, error)
- type UnimplementedTenantServer
- type UnsafePolicyServer
- type UnsafeTenantServer
- type UpdatePolicyImageRequest
- func (*UpdatePolicyImageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePolicyImageRequest) GetPolicyRef() *v1.PolicyRef
- func (x *UpdatePolicyImageRequest) GetUpdateMask() *v1.Fields
- func (*UpdatePolicyImageRequest) ProtoMessage()
- func (x *UpdatePolicyImageRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePolicyImageRequest) Reset()
- func (x *UpdatePolicyImageRequest) String() string
- type UpdatePolicyImageResponse
- func (*UpdatePolicyImageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePolicyImageResponse) GetResults() *emptypb.Empty
- func (*UpdatePolicyImageResponse) ProtoMessage()
- func (x *UpdatePolicyImageResponse) ProtoReflect() protoreflect.Message
- func (x *UpdatePolicyImageResponse) Reset()
- func (x *UpdatePolicyImageResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_aserto_registry_tenant_v1_policy_proto protoreflect.FileDescriptor
var File_aserto_registry_tenant_v1_tenant_proto protoreflect.FileDescriptor
var Policy_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aserto.registry_tenant.v1.Policy", HandlerType: (*PolicyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPolicyImage", Handler: _Policy_GetPolicyImage_Handler, }, { MethodName: "ListPolicyImages", Handler: _Policy_ListPolicyImages_Handler, }, { MethodName: "ListPublicPolicyImages", Handler: _Policy_ListPublicPolicyImages_Handler, }, { MethodName: "CreatePolicyImage", Handler: _Policy_CreatePolicyImage_Handler, }, { MethodName: "DeletePolicyImage", Handler: _Policy_DeletePolicyImage_Handler, }, { MethodName: "UpdatePolicyImage", Handler: _Policy_UpdatePolicyImage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "aserto/registry_tenant/v1/policy.proto", }
Policy_ServiceDesc is the grpc.ServiceDesc for Policy service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Tenant_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aserto.registry_tenant.v1.Tenant", HandlerType: (*TenantServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListTenants", Handler: _Tenant_ListTenants_Handler, }, { MethodName: "ListPublicTenants", Handler: _Tenant_ListPublicTenants_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "aserto/registry_tenant/v1/tenant.proto", }
Tenant_ServiceDesc is the grpc.ServiceDesc for Tenant service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPolicyHandler ¶
RegisterPolicyHandler registers the http handlers for service Policy to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPolicyHandlerClient ¶
func RegisterPolicyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PolicyClient) error
RegisterPolicyHandlerClient registers the http handlers for service Policy to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PolicyClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PolicyClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PolicyClient" to call the correct interceptors.
func RegisterPolicyHandlerFromEndpoint ¶
func RegisterPolicyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPolicyHandlerFromEndpoint is same as RegisterPolicyHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPolicyHandlerServer ¶
func RegisterPolicyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PolicyServer) error
RegisterPolicyHandlerServer registers the http handlers for service Policy to "mux". UnaryRPC :call PolicyServer 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 RegisterPolicyHandlerFromEndpoint instead.
func RegisterPolicyServer ¶
func RegisterPolicyServer(s grpc.ServiceRegistrar, srv PolicyServer)
func RegisterTenantHandler ¶
RegisterTenantHandler registers the http handlers for service Tenant to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTenantHandlerClient ¶
func RegisterTenantHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TenantClient) error
RegisterTenantHandlerClient registers the http handlers for service Tenant to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TenantClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TenantClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TenantClient" to call the correct interceptors.
func RegisterTenantHandlerFromEndpoint ¶
func RegisterTenantHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTenantHandlerFromEndpoint is same as RegisterTenantHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTenantHandlerServer ¶
func RegisterTenantHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TenantServer) error
RegisterTenantHandlerServer registers the http handlers for service Tenant to "mux". UnaryRPC :call TenantServer 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 RegisterTenantHandlerFromEndpoint instead.
func RegisterTenantServer ¶
func RegisterTenantServer(s grpc.ServiceRegistrar, srv TenantServer)
Types ¶
type CreatePolicyImageRequest ¶
type CreatePolicyImageRequest struct { PolicyRef *v1.PolicyRef `protobuf:"bytes,1,opt,name=policy_ref,json=policyRef,proto3" json:"policy_ref,omitempty"` ForceReconnect bool `protobuf:"varint,2,opt,name=force_reconnect,json=forceReconnect,proto3" json:"force_reconnect,omitempty"` // contains filtered or unexported fields }
func (*CreatePolicyImageRequest) Descriptor
deprecated
func (*CreatePolicyImageRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePolicyImageRequest.ProtoReflect.Descriptor instead.
func (*CreatePolicyImageRequest) GetForceReconnect ¶
func (x *CreatePolicyImageRequest) GetForceReconnect() bool
func (*CreatePolicyImageRequest) GetPolicyRef ¶
func (x *CreatePolicyImageRequest) GetPolicyRef() *v1.PolicyRef
func (*CreatePolicyImageRequest) ProtoMessage ¶
func (*CreatePolicyImageRequest) ProtoMessage()
func (*CreatePolicyImageRequest) ProtoReflect ¶
func (x *CreatePolicyImageRequest) ProtoReflect() protoreflect.Message
func (*CreatePolicyImageRequest) Reset ¶
func (x *CreatePolicyImageRequest) Reset()
func (*CreatePolicyImageRequest) String ¶
func (x *CreatePolicyImageRequest) String() string
type CreatePolicyImageResponse ¶
type CreatePolicyImageResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreatePolicyImageResponse) Descriptor
deprecated
func (*CreatePolicyImageResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreatePolicyImageResponse.ProtoReflect.Descriptor instead.
func (*CreatePolicyImageResponse) GetId ¶
func (x *CreatePolicyImageResponse) GetId() string
func (*CreatePolicyImageResponse) ProtoMessage ¶
func (*CreatePolicyImageResponse) ProtoMessage()
func (*CreatePolicyImageResponse) ProtoReflect ¶
func (x *CreatePolicyImageResponse) ProtoReflect() protoreflect.Message
func (*CreatePolicyImageResponse) Reset ¶
func (x *CreatePolicyImageResponse) Reset()
func (*CreatePolicyImageResponse) String ¶
func (x *CreatePolicyImageResponse) String() string
type DeletePolicyImageRequest ¶
type DeletePolicyImageRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeletePolicyImageRequest) Descriptor
deprecated
func (*DeletePolicyImageRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePolicyImageRequest.ProtoReflect.Descriptor instead.
func (*DeletePolicyImageRequest) GetId ¶
func (x *DeletePolicyImageRequest) GetId() string
func (*DeletePolicyImageRequest) ProtoMessage ¶
func (*DeletePolicyImageRequest) ProtoMessage()
func (*DeletePolicyImageRequest) ProtoReflect ¶
func (x *DeletePolicyImageRequest) ProtoReflect() protoreflect.Message
func (*DeletePolicyImageRequest) Reset ¶
func (x *DeletePolicyImageRequest) Reset()
func (*DeletePolicyImageRequest) String ¶
func (x *DeletePolicyImageRequest) String() string
type DeletePolicyImageResponse ¶
type DeletePolicyImageResponse struct { Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*DeletePolicyImageResponse) Descriptor
deprecated
func (*DeletePolicyImageResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeletePolicyImageResponse.ProtoReflect.Descriptor instead.
func (*DeletePolicyImageResponse) GetResult ¶
func (x *DeletePolicyImageResponse) GetResult() *emptypb.Empty
func (*DeletePolicyImageResponse) ProtoMessage ¶
func (*DeletePolicyImageResponse) ProtoMessage()
func (*DeletePolicyImageResponse) ProtoReflect ¶
func (x *DeletePolicyImageResponse) ProtoReflect() protoreflect.Message
func (*DeletePolicyImageResponse) Reset ¶
func (x *DeletePolicyImageResponse) Reset()
func (*DeletePolicyImageResponse) String ¶
func (x *DeletePolicyImageResponse) String() string
type GetPolicyImageRequest ¶
type GetPolicyImageRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetPolicyImageRequest) Descriptor
deprecated
func (*GetPolicyImageRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPolicyImageRequest.ProtoReflect.Descriptor instead.
func (*GetPolicyImageRequest) GetId ¶
func (x *GetPolicyImageRequest) GetId() string
func (*GetPolicyImageRequest) ProtoMessage ¶
func (*GetPolicyImageRequest) ProtoMessage()
func (*GetPolicyImageRequest) ProtoReflect ¶
func (x *GetPolicyImageRequest) ProtoReflect() protoreflect.Message
func (*GetPolicyImageRequest) Reset ¶
func (x *GetPolicyImageRequest) Reset()
func (*GetPolicyImageRequest) String ¶
func (x *GetPolicyImageRequest) String() string
type GetPolicyImageResponse ¶
type GetPolicyImageResponse struct { Policy *v1.PolicyRef `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` // contains filtered or unexported fields }
func (*GetPolicyImageResponse) Descriptor
deprecated
func (*GetPolicyImageResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPolicyImageResponse.ProtoReflect.Descriptor instead.
func (*GetPolicyImageResponse) GetPolicy ¶
func (x *GetPolicyImageResponse) GetPolicy() *v1.PolicyRef
func (*GetPolicyImageResponse) ProtoMessage ¶
func (*GetPolicyImageResponse) ProtoMessage()
func (*GetPolicyImageResponse) ProtoReflect ¶
func (x *GetPolicyImageResponse) ProtoReflect() protoreflect.Message
func (*GetPolicyImageResponse) Reset ¶
func (x *GetPolicyImageResponse) Reset()
func (*GetPolicyImageResponse) String ¶
func (x *GetPolicyImageResponse) String() string
type ListPolicyImagesRequest ¶
type ListPolicyImagesRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ListPolicyImagesRequest) Descriptor
deprecated
func (*ListPolicyImagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPolicyImagesRequest.ProtoReflect.Descriptor instead.
func (*ListPolicyImagesRequest) GetName ¶
func (x *ListPolicyImagesRequest) GetName() string
func (*ListPolicyImagesRequest) ProtoMessage ¶
func (*ListPolicyImagesRequest) ProtoMessage()
func (*ListPolicyImagesRequest) ProtoReflect ¶
func (x *ListPolicyImagesRequest) ProtoReflect() protoreflect.Message
func (*ListPolicyImagesRequest) Reset ¶
func (x *ListPolicyImagesRequest) Reset()
func (*ListPolicyImagesRequest) String ¶
func (x *ListPolicyImagesRequest) String() string
type ListPolicyImagesResponse ¶
type ListPolicyImagesResponse struct { Results []*v1.PolicyRef `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListPolicyImagesResponse) Descriptor
deprecated
func (*ListPolicyImagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPolicyImagesResponse.ProtoReflect.Descriptor instead.
func (*ListPolicyImagesResponse) GetResults ¶
func (x *ListPolicyImagesResponse) GetResults() []*v1.PolicyRef
func (*ListPolicyImagesResponse) ProtoMessage ¶
func (*ListPolicyImagesResponse) ProtoMessage()
func (*ListPolicyImagesResponse) ProtoReflect ¶
func (x *ListPolicyImagesResponse) ProtoReflect() protoreflect.Message
func (*ListPolicyImagesResponse) Reset ¶
func (x *ListPolicyImagesResponse) Reset()
func (*ListPolicyImagesResponse) String ¶
func (x *ListPolicyImagesResponse) String() string
type ListPublicPolicyImagesRequest ¶
type ListPublicPolicyImagesRequest struct {
// contains filtered or unexported fields
}
func (*ListPublicPolicyImagesRequest) Descriptor
deprecated
func (*ListPublicPolicyImagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPublicPolicyImagesRequest.ProtoReflect.Descriptor instead.
func (*ListPublicPolicyImagesRequest) ProtoMessage ¶
func (*ListPublicPolicyImagesRequest) ProtoMessage()
func (*ListPublicPolicyImagesRequest) ProtoReflect ¶
func (x *ListPublicPolicyImagesRequest) ProtoReflect() protoreflect.Message
func (*ListPublicPolicyImagesRequest) Reset ¶
func (x *ListPublicPolicyImagesRequest) Reset()
func (*ListPublicPolicyImagesRequest) String ¶
func (x *ListPublicPolicyImagesRequest) String() string
type ListPublicPolicyImagesResponse ¶
type ListPublicPolicyImagesResponse struct { Results []*v1.PolicyRef `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListPublicPolicyImagesResponse) Descriptor
deprecated
func (*ListPublicPolicyImagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPublicPolicyImagesResponse.ProtoReflect.Descriptor instead.
func (*ListPublicPolicyImagesResponse) GetResults ¶
func (x *ListPublicPolicyImagesResponse) GetResults() []*v1.PolicyRef
func (*ListPublicPolicyImagesResponse) ProtoMessage ¶
func (*ListPublicPolicyImagesResponse) ProtoMessage()
func (*ListPublicPolicyImagesResponse) ProtoReflect ¶
func (x *ListPublicPolicyImagesResponse) ProtoReflect() protoreflect.Message
func (*ListPublicPolicyImagesResponse) Reset ¶
func (x *ListPublicPolicyImagesResponse) Reset()
func (*ListPublicPolicyImagesResponse) String ¶
func (x *ListPublicPolicyImagesResponse) String() string
type ListPublicTenantsRequest ¶
type ListPublicTenantsRequest struct { Page *v1.PaginationRequest `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` Tenants []*v1.Tenant `protobuf:"bytes,1,rep,name=tenants,proto3" json:"tenants,omitempty"` // contains filtered or unexported fields }
func (*ListPublicTenantsRequest) Descriptor
deprecated
func (*ListPublicTenantsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPublicTenantsRequest.ProtoReflect.Descriptor instead.
func (*ListPublicTenantsRequest) GetPage ¶
func (x *ListPublicTenantsRequest) GetPage() *v1.PaginationRequest
func (*ListPublicTenantsRequest) GetTenants ¶
func (x *ListPublicTenantsRequest) GetTenants() []*v1.Tenant
func (*ListPublicTenantsRequest) ProtoMessage ¶
func (*ListPublicTenantsRequest) ProtoMessage()
func (*ListPublicTenantsRequest) ProtoReflect ¶
func (x *ListPublicTenantsRequest) ProtoReflect() protoreflect.Message
func (*ListPublicTenantsRequest) Reset ¶
func (x *ListPublicTenantsRequest) Reset()
func (*ListPublicTenantsRequest) String ¶
func (x *ListPublicTenantsRequest) String() string
type ListPublicTenantsResponse ¶
type ListPublicTenantsResponse struct { Page *v1.PaginationResponse `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` Tenants []*v1.Tenant `protobuf:"bytes,1,rep,name=tenants,proto3" json:"tenants,omitempty"` // contains filtered or unexported fields }
func (*ListPublicTenantsResponse) Descriptor
deprecated
func (*ListPublicTenantsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPublicTenantsResponse.ProtoReflect.Descriptor instead.
func (*ListPublicTenantsResponse) GetPage ¶
func (x *ListPublicTenantsResponse) GetPage() *v1.PaginationResponse
func (*ListPublicTenantsResponse) GetTenants ¶
func (x *ListPublicTenantsResponse) GetTenants() []*v1.Tenant
func (*ListPublicTenantsResponse) ProtoMessage ¶
func (*ListPublicTenantsResponse) ProtoMessage()
func (*ListPublicTenantsResponse) ProtoReflect ¶
func (x *ListPublicTenantsResponse) ProtoReflect() protoreflect.Message
func (*ListPublicTenantsResponse) Reset ¶
func (x *ListPublicTenantsResponse) Reset()
func (*ListPublicTenantsResponse) String ¶
func (x *ListPublicTenantsResponse) String() string
type ListTenantsRequest ¶
type ListTenantsRequest struct { Page *v1.PaginationRequest `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ListTenantsRequest) Descriptor
deprecated
func (*ListTenantsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTenantsRequest.ProtoReflect.Descriptor instead.
func (*ListTenantsRequest) GetName ¶
func (x *ListTenantsRequest) GetName() string
func (*ListTenantsRequest) GetPage ¶
func (x *ListTenantsRequest) GetPage() *v1.PaginationRequest
func (*ListTenantsRequest) ProtoMessage ¶
func (*ListTenantsRequest) ProtoMessage()
func (*ListTenantsRequest) ProtoReflect ¶
func (x *ListTenantsRequest) ProtoReflect() protoreflect.Message
func (*ListTenantsRequest) Reset ¶
func (x *ListTenantsRequest) Reset()
func (*ListTenantsRequest) String ¶
func (x *ListTenantsRequest) String() string
type ListTenantsResponse ¶
type ListTenantsResponse struct { Page *v1.PaginationResponse `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` Tenants []*v1.Tenant `protobuf:"bytes,1,rep,name=tenants,proto3" json:"tenants,omitempty"` // contains filtered or unexported fields }
func (*ListTenantsResponse) Descriptor
deprecated
func (*ListTenantsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTenantsResponse.ProtoReflect.Descriptor instead.
func (*ListTenantsResponse) GetPage ¶
func (x *ListTenantsResponse) GetPage() *v1.PaginationResponse
func (*ListTenantsResponse) GetTenants ¶
func (x *ListTenantsResponse) GetTenants() []*v1.Tenant
func (*ListTenantsResponse) ProtoMessage ¶
func (*ListTenantsResponse) ProtoMessage()
func (*ListTenantsResponse) ProtoReflect ¶
func (x *ListTenantsResponse) ProtoReflect() protoreflect.Message
func (*ListTenantsResponse) Reset ¶
func (x *ListTenantsResponse) Reset()
func (*ListTenantsResponse) String ¶
func (x *ListTenantsResponse) String() string
type PolicyClient ¶
type PolicyClient interface { GetPolicyImage(ctx context.Context, in *GetPolicyImageRequest, opts ...grpc.CallOption) (*GetPolicyImageResponse, error) ListPolicyImages(ctx context.Context, in *ListPolicyImagesRequest, opts ...grpc.CallOption) (*ListPolicyImagesResponse, error) ListPublicPolicyImages(ctx context.Context, in *ListPublicPolicyImagesRequest, opts ...grpc.CallOption) (*ListPublicPolicyImagesResponse, error) CreatePolicyImage(ctx context.Context, in *CreatePolicyImageRequest, opts ...grpc.CallOption) (*CreatePolicyImageResponse, error) DeletePolicyImage(ctx context.Context, in *DeletePolicyImageRequest, opts ...grpc.CallOption) (*DeletePolicyImageResponse, error) UpdatePolicyImage(ctx context.Context, in *UpdatePolicyImageRequest, opts ...grpc.CallOption) (*UpdatePolicyImageResponse, error) }
PolicyClient is the client API for Policy 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 NewPolicyClient ¶
func NewPolicyClient(cc grpc.ClientConnInterface) PolicyClient
type PolicyServer ¶
type PolicyServer interface { GetPolicyImage(context.Context, *GetPolicyImageRequest) (*GetPolicyImageResponse, error) ListPolicyImages(context.Context, *ListPolicyImagesRequest) (*ListPolicyImagesResponse, error) ListPublicPolicyImages(context.Context, *ListPublicPolicyImagesRequest) (*ListPublicPolicyImagesResponse, error) CreatePolicyImage(context.Context, *CreatePolicyImageRequest) (*CreatePolicyImageResponse, error) DeletePolicyImage(context.Context, *DeletePolicyImageRequest) (*DeletePolicyImageResponse, error) UpdatePolicyImage(context.Context, *UpdatePolicyImageRequest) (*UpdatePolicyImageResponse, error) }
PolicyServer is the server API for Policy service. All implementations should embed UnimplementedPolicyServer for forward compatibility
type TenantClient ¶
type TenantClient interface { ListTenants(ctx context.Context, in *ListTenantsRequest, opts ...grpc.CallOption) (*ListTenantsResponse, error) ListPublicTenants(ctx context.Context, in *ListPublicTenantsRequest, opts ...grpc.CallOption) (*ListPublicTenantsResponse, error) }
TenantClient is the client API for Tenant 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 NewTenantClient ¶
func NewTenantClient(cc grpc.ClientConnInterface) TenantClient
type TenantServer ¶
type TenantServer interface { ListTenants(context.Context, *ListTenantsRequest) (*ListTenantsResponse, error) ListPublicTenants(context.Context, *ListPublicTenantsRequest) (*ListPublicTenantsResponse, error) }
TenantServer is the server API for Tenant service. All implementations should embed UnimplementedTenantServer for forward compatibility
type UnimplementedPolicyServer ¶
type UnimplementedPolicyServer struct { }
UnimplementedPolicyServer should be embedded to have forward compatible implementations.
func (UnimplementedPolicyServer) CreatePolicyImage ¶
func (UnimplementedPolicyServer) CreatePolicyImage(context.Context, *CreatePolicyImageRequest) (*CreatePolicyImageResponse, error)
func (UnimplementedPolicyServer) DeletePolicyImage ¶
func (UnimplementedPolicyServer) DeletePolicyImage(context.Context, *DeletePolicyImageRequest) (*DeletePolicyImageResponse, error)
func (UnimplementedPolicyServer) GetPolicyImage ¶
func (UnimplementedPolicyServer) GetPolicyImage(context.Context, *GetPolicyImageRequest) (*GetPolicyImageResponse, error)
func (UnimplementedPolicyServer) ListPolicyImages ¶
func (UnimplementedPolicyServer) ListPolicyImages(context.Context, *ListPolicyImagesRequest) (*ListPolicyImagesResponse, error)
func (UnimplementedPolicyServer) ListPublicPolicyImages ¶
func (UnimplementedPolicyServer) ListPublicPolicyImages(context.Context, *ListPublicPolicyImagesRequest) (*ListPublicPolicyImagesResponse, error)
func (UnimplementedPolicyServer) UpdatePolicyImage ¶
func (UnimplementedPolicyServer) UpdatePolicyImage(context.Context, *UpdatePolicyImageRequest) (*UpdatePolicyImageResponse, error)
type UnimplementedTenantServer ¶
type UnimplementedTenantServer struct { }
UnimplementedTenantServer should be embedded to have forward compatible implementations.
func (UnimplementedTenantServer) ListPublicTenants ¶
func (UnimplementedTenantServer) ListPublicTenants(context.Context, *ListPublicTenantsRequest) (*ListPublicTenantsResponse, error)
func (UnimplementedTenantServer) ListTenants ¶
func (UnimplementedTenantServer) ListTenants(context.Context, *ListTenantsRequest) (*ListTenantsResponse, error)
type UnsafePolicyServer ¶
type UnsafePolicyServer interface {
// contains filtered or unexported methods
}
UnsafePolicyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PolicyServer will result in compilation errors.
type UnsafeTenantServer ¶
type UnsafeTenantServer interface {
// contains filtered or unexported methods
}
UnsafeTenantServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TenantServer will result in compilation errors.
type UpdatePolicyImageRequest ¶
type UpdatePolicyImageRequest struct { PolicyRef *v1.PolicyRef `protobuf:"bytes,1,opt,name=policy_ref,json=policyRef,proto3" json:"policy_ref,omitempty"` UpdateMask *v1.Fields `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdatePolicyImageRequest) Descriptor
deprecated
func (*UpdatePolicyImageRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePolicyImageRequest.ProtoReflect.Descriptor instead.
func (*UpdatePolicyImageRequest) GetPolicyRef ¶
func (x *UpdatePolicyImageRequest) GetPolicyRef() *v1.PolicyRef
func (*UpdatePolicyImageRequest) GetUpdateMask ¶
func (x *UpdatePolicyImageRequest) GetUpdateMask() *v1.Fields
func (*UpdatePolicyImageRequest) ProtoMessage ¶
func (*UpdatePolicyImageRequest) ProtoMessage()
func (*UpdatePolicyImageRequest) ProtoReflect ¶
func (x *UpdatePolicyImageRequest) ProtoReflect() protoreflect.Message
func (*UpdatePolicyImageRequest) Reset ¶
func (x *UpdatePolicyImageRequest) Reset()
func (*UpdatePolicyImageRequest) String ¶
func (x *UpdatePolicyImageRequest) String() string
type UpdatePolicyImageResponse ¶
type UpdatePolicyImageResponse struct { Results *emptypb.Empty `protobuf:"bytes,1,opt,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*UpdatePolicyImageResponse) Descriptor
deprecated
func (*UpdatePolicyImageResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePolicyImageResponse.ProtoReflect.Descriptor instead.
func (*UpdatePolicyImageResponse) GetResults ¶
func (x *UpdatePolicyImageResponse) GetResults() *emptypb.Empty
func (*UpdatePolicyImageResponse) ProtoMessage ¶
func (*UpdatePolicyImageResponse) ProtoMessage()
func (*UpdatePolicyImageResponse) ProtoReflect ¶
func (x *UpdatePolicyImageResponse) ProtoReflect() protoreflect.Message
func (*UpdatePolicyImageResponse) Reset ¶
func (x *UpdatePolicyImageResponse) Reset()
func (*UpdatePolicyImageResponse) String ¶
func (x *UpdatePolicyImageResponse) String() string