registry

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Overview

Package registry is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_aserto_tenant_registry_v1_registry_proto protoreflect.FileDescriptor
View Source
var Registry_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aserto.tenant.registry.v1.Registry",
	HandlerType: (*RegistryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListOrgs",
			Handler:    _Registry_ListOrgs_Handler,
		},
		{
			MethodName: "ListRegistryRepos",
			Handler:    _Registry_ListRegistryRepos_Handler,
		},
		{
			MethodName: "DeleteRegistryRepo",
			Handler:    _Registry_DeleteRegistryRepo_Handler,
		},
		{
			MethodName: "ListRegistryRepoTags",
			Handler:    _Registry_ListRegistryRepoTags_Handler,
		},
		{
			MethodName: "ListRegistryRepoDigests",
			Handler:    _Registry_ListRegistryRepoDigests_Handler,
		},
		{
			MethodName: "GetRegistryRepoTag",
			Handler:    _Registry_GetRegistryRepoTag_Handler,
		},
		{
			MethodName: "CreateRegistryRepo",
			Handler:    _Registry_CreateRegistryRepo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "aserto/tenant/registry/v1/registry.proto",
}

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

Functions

func RegisterRegistryHandler

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

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

func RegisterRegistryHandlerClient

func RegisterRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RegistryClient) error

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

func RegisterRegistryHandlerFromEndpoint

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

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

func RegisterRegistryHandlerServer

func RegisterRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RegistryServer) error

RegisterRegistryHandlerServer registers the http handlers for service Registry to "mux". UnaryRPC :call RegistryServer 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 RegisterRegistryHandlerFromEndpoint instead.

func RegisterRegistryServer

func RegisterRegistryServer(s grpc.ServiceRegistrar, srv RegistryServer)

Types

type CreateRegistryRepoRequest added in v0.8.0

type CreateRegistryRepoRequest struct {
	ConnectionId string           `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Repo         *v1.RegistryRepo `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRegistryRepoRequest) Descriptor deprecated added in v0.8.0

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

Deprecated: Use CreateRegistryRepoRequest.ProtoReflect.Descriptor instead.

func (*CreateRegistryRepoRequest) GetConnectionId added in v0.8.0

func (x *CreateRegistryRepoRequest) GetConnectionId() string

func (*CreateRegistryRepoRequest) GetRepo added in v0.8.0

func (*CreateRegistryRepoRequest) ProtoMessage added in v0.8.0

func (*CreateRegistryRepoRequest) ProtoMessage()

func (*CreateRegistryRepoRequest) ProtoReflect added in v0.8.0

func (*CreateRegistryRepoRequest) Reset added in v0.8.0

func (x *CreateRegistryRepoRequest) Reset()

func (*CreateRegistryRepoRequest) String added in v0.8.0

func (x *CreateRegistryRepoRequest) String() string

type CreateRegistryRepoResponse added in v0.8.0

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

func (*CreateRegistryRepoResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use CreateRegistryRepoResponse.ProtoReflect.Descriptor instead.

func (*CreateRegistryRepoResponse) ProtoMessage added in v0.8.0

func (*CreateRegistryRepoResponse) ProtoMessage()

func (*CreateRegistryRepoResponse) ProtoReflect added in v0.8.0

func (*CreateRegistryRepoResponse) Reset added in v0.8.0

func (x *CreateRegistryRepoResponse) Reset()

func (*CreateRegistryRepoResponse) String added in v0.8.0

func (x *CreateRegistryRepoResponse) String() string

type DeleteRegistryRepoRequest added in v0.8.0

type DeleteRegistryRepoRequest struct {
	ConnectionId string           `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Repo         *v1.RegistryRepo `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
	Tag          string           `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRegistryRepoRequest) Descriptor deprecated added in v0.8.0

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

Deprecated: Use DeleteRegistryRepoRequest.ProtoReflect.Descriptor instead.

func (*DeleteRegistryRepoRequest) GetConnectionId added in v0.8.0

func (x *DeleteRegistryRepoRequest) GetConnectionId() string

func (*DeleteRegistryRepoRequest) GetRepo added in v0.8.0

func (*DeleteRegistryRepoRequest) GetTag added in v0.8.0

func (x *DeleteRegistryRepoRequest) GetTag() string

func (*DeleteRegistryRepoRequest) ProtoMessage added in v0.8.0

func (*DeleteRegistryRepoRequest) ProtoMessage()

func (*DeleteRegistryRepoRequest) ProtoReflect added in v0.8.0

func (*DeleteRegistryRepoRequest) Reset added in v0.8.0

func (x *DeleteRegistryRepoRequest) Reset()

func (*DeleteRegistryRepoRequest) String added in v0.8.0

func (x *DeleteRegistryRepoRequest) String() string

type DeleteRegistryRepoResponse added in v0.8.0

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

func (*DeleteRegistryRepoResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use DeleteRegistryRepoResponse.ProtoReflect.Descriptor instead.

func (*DeleteRegistryRepoResponse) ProtoMessage added in v0.8.0

func (*DeleteRegistryRepoResponse) ProtoMessage()

func (*DeleteRegistryRepoResponse) ProtoReflect added in v0.8.0

func (*DeleteRegistryRepoResponse) Reset added in v0.8.0

func (x *DeleteRegistryRepoResponse) Reset()

func (*DeleteRegistryRepoResponse) String added in v0.8.0

func (x *DeleteRegistryRepoResponse) String() string

type GetRegistryRepoTagRequest added in v0.8.0

type GetRegistryRepoTagRequest struct {
	ConnectionId string           `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Repo         *v1.RegistryRepo `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
	Tag          string           `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRegistryRepoTagRequest) Descriptor deprecated added in v0.8.0

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

Deprecated: Use GetRegistryRepoTagRequest.ProtoReflect.Descriptor instead.

func (*GetRegistryRepoTagRequest) GetConnectionId added in v0.8.0

func (x *GetRegistryRepoTagRequest) GetConnectionId() string

func (*GetRegistryRepoTagRequest) GetRepo added in v0.8.0

func (*GetRegistryRepoTagRequest) GetTag added in v0.8.0

func (x *GetRegistryRepoTagRequest) GetTag() string

func (*GetRegistryRepoTagRequest) ProtoMessage added in v0.8.0

func (*GetRegistryRepoTagRequest) ProtoMessage()

func (*GetRegistryRepoTagRequest) ProtoReflect added in v0.8.0

func (*GetRegistryRepoTagRequest) Reset added in v0.8.0

func (x *GetRegistryRepoTagRequest) Reset()

func (*GetRegistryRepoTagRequest) String added in v0.8.0

func (x *GetRegistryRepoTagRequest) String() string

type GetRegistryRepoTagResponse added in v0.8.0

type GetRegistryRepoTagResponse struct {
	Tag *v1.RegistryRepoTag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRegistryRepoTagResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use GetRegistryRepoTagResponse.ProtoReflect.Descriptor instead.

func (*GetRegistryRepoTagResponse) GetTag added in v0.8.0

func (*GetRegistryRepoTagResponse) ProtoMessage added in v0.8.0

func (*GetRegistryRepoTagResponse) ProtoMessage()

func (*GetRegistryRepoTagResponse) ProtoReflect added in v0.8.0

func (*GetRegistryRepoTagResponse) Reset added in v0.8.0

func (x *GetRegistryRepoTagResponse) Reset()

func (*GetRegistryRepoTagResponse) String added in v0.8.0

func (x *GetRegistryRepoTagResponse) String() string

type ListOrgsRequest

type ListOrgsRequest struct {
	ConnectionId string                `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Page         *v1.PaginationRequest `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOrgsRequest) Descriptor deprecated

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

Deprecated: Use ListOrgsRequest.ProtoReflect.Descriptor instead.

func (*ListOrgsRequest) GetConnectionId

func (x *ListOrgsRequest) GetConnectionId() string

func (*ListOrgsRequest) GetPage added in v0.0.41

func (x *ListOrgsRequest) GetPage() *v1.PaginationRequest

func (*ListOrgsRequest) ProtoMessage

func (*ListOrgsRequest) ProtoMessage()

func (*ListOrgsRequest) ProtoReflect

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

func (*ListOrgsRequest) Reset

func (x *ListOrgsRequest) Reset()

func (*ListOrgsRequest) String

func (x *ListOrgsRequest) String() string

type ListOrgsResponse

type ListOrgsResponse struct {
	Orgs []string               `protobuf:"bytes,1,rep,name=orgs,proto3" json:"orgs,omitempty"`
	Page *v1.PaginationResponse `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOrgsResponse) Descriptor deprecated

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

Deprecated: Use ListOrgsResponse.ProtoReflect.Descriptor instead.

func (*ListOrgsResponse) GetOrgs added in v0.0.40

func (x *ListOrgsResponse) GetOrgs() []string

func (*ListOrgsResponse) GetPage added in v0.0.41

func (x *ListOrgsResponse) GetPage() *v1.PaginationResponse

func (*ListOrgsResponse) ProtoMessage

func (*ListOrgsResponse) ProtoMessage()

func (*ListOrgsResponse) ProtoReflect

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

func (*ListOrgsResponse) Reset

func (x *ListOrgsResponse) Reset()

func (*ListOrgsResponse) String

func (x *ListOrgsResponse) String() string

type ListRegistryRepoDigestsRequest added in v0.8.2

type ListRegistryRepoDigestsRequest struct {
	ConnectionId string                `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Repo         *v1.RegistryRepo      `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
	Page         *v1.PaginationRequest `protobuf:"bytes,3,opt,name=page,proto3" json:"page,omitempty"`
	Deep         bool                  `protobuf:"varint,4,opt,name=deep,proto3" json:"deep,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRegistryRepoDigestsRequest) Descriptor deprecated added in v0.8.2

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

Deprecated: Use ListRegistryRepoDigestsRequest.ProtoReflect.Descriptor instead.

func (*ListRegistryRepoDigestsRequest) GetConnectionId added in v0.8.2

func (x *ListRegistryRepoDigestsRequest) GetConnectionId() string

func (*ListRegistryRepoDigestsRequest) GetDeep added in v0.8.2

func (x *ListRegistryRepoDigestsRequest) GetDeep() bool

func (*ListRegistryRepoDigestsRequest) GetPage added in v0.8.2

func (*ListRegistryRepoDigestsRequest) GetRepo added in v0.8.2

func (*ListRegistryRepoDigestsRequest) ProtoMessage added in v0.8.2

func (*ListRegistryRepoDigestsRequest) ProtoMessage()

func (*ListRegistryRepoDigestsRequest) ProtoReflect added in v0.8.2

func (*ListRegistryRepoDigestsRequest) Reset added in v0.8.2

func (x *ListRegistryRepoDigestsRequest) Reset()

func (*ListRegistryRepoDigestsRequest) String added in v0.8.2

type ListRegistryRepoDigestsResponse added in v0.8.2

type ListRegistryRepoDigestsResponse struct {
	Digests []*v1.RegistryRepoDigest `protobuf:"bytes,1,rep,name=digests,proto3" json:"digests,omitempty"`
	Page    *v1.PaginationResponse   `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRegistryRepoDigestsResponse) Descriptor deprecated added in v0.8.2

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

Deprecated: Use ListRegistryRepoDigestsResponse.ProtoReflect.Descriptor instead.

func (*ListRegistryRepoDigestsResponse) GetDigests added in v0.8.2

func (*ListRegistryRepoDigestsResponse) GetPage added in v0.8.2

func (*ListRegistryRepoDigestsResponse) ProtoMessage added in v0.8.2

func (*ListRegistryRepoDigestsResponse) ProtoMessage()

func (*ListRegistryRepoDigestsResponse) ProtoReflect added in v0.8.2

func (*ListRegistryRepoDigestsResponse) Reset added in v0.8.2

func (*ListRegistryRepoDigestsResponse) String added in v0.8.2

type ListRegistryRepoTagsRequest added in v0.8.0

type ListRegistryRepoTagsRequest struct {
	ConnectionId string                `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Repo         *v1.RegistryRepo      `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
	Page         *v1.PaginationRequest `protobuf:"bytes,3,opt,name=page,proto3" json:"page,omitempty"`
	Deep         bool                  `protobuf:"varint,4,opt,name=deep,proto3" json:"deep,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRegistryRepoTagsRequest) Descriptor deprecated added in v0.8.0

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

Deprecated: Use ListRegistryRepoTagsRequest.ProtoReflect.Descriptor instead.

func (*ListRegistryRepoTagsRequest) GetConnectionId added in v0.8.0

func (x *ListRegistryRepoTagsRequest) GetConnectionId() string

func (*ListRegistryRepoTagsRequest) GetDeep added in v0.8.0

func (x *ListRegistryRepoTagsRequest) GetDeep() bool

func (*ListRegistryRepoTagsRequest) GetPage added in v0.8.0

func (*ListRegistryRepoTagsRequest) GetRepo added in v0.8.0

func (*ListRegistryRepoTagsRequest) ProtoMessage added in v0.8.0

func (*ListRegistryRepoTagsRequest) ProtoMessage()

func (*ListRegistryRepoTagsRequest) ProtoReflect added in v0.8.0

func (*ListRegistryRepoTagsRequest) Reset added in v0.8.0

func (x *ListRegistryRepoTagsRequest) Reset()

func (*ListRegistryRepoTagsRequest) String added in v0.8.0

func (x *ListRegistryRepoTagsRequest) String() string

type ListRegistryRepoTagsResponse added in v0.8.0

type ListRegistryRepoTagsResponse struct {
	Tags []*v1.RegistryRepoTag  `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	Page *v1.PaginationResponse `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRegistryRepoTagsResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use ListRegistryRepoTagsResponse.ProtoReflect.Descriptor instead.

func (*ListRegistryRepoTagsResponse) GetPage added in v0.8.0

func (*ListRegistryRepoTagsResponse) GetTags added in v0.8.0

func (*ListRegistryRepoTagsResponse) ProtoMessage added in v0.8.0

func (*ListRegistryRepoTagsResponse) ProtoMessage()

func (*ListRegistryRepoTagsResponse) ProtoReflect added in v0.8.0

func (*ListRegistryRepoTagsResponse) Reset added in v0.8.0

func (x *ListRegistryRepoTagsResponse) Reset()

func (*ListRegistryRepoTagsResponse) String added in v0.8.0

type ListRegistryReposRequest added in v0.8.0

type ListRegistryReposRequest struct {
	ConnectionId string                `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Org          string                `protobuf:"bytes,2,opt,name=org,proto3" json:"org,omitempty"`
	Page         *v1.PaginationRequest `protobuf:"bytes,3,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRegistryReposRequest) Descriptor deprecated added in v0.8.0

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

Deprecated: Use ListRegistryReposRequest.ProtoReflect.Descriptor instead.

func (*ListRegistryReposRequest) GetConnectionId added in v0.8.0

func (x *ListRegistryReposRequest) GetConnectionId() string

func (*ListRegistryReposRequest) GetOrg added in v0.8.0

func (x *ListRegistryReposRequest) GetOrg() string

func (*ListRegistryReposRequest) GetPage added in v0.8.0

func (*ListRegistryReposRequest) ProtoMessage added in v0.8.0

func (*ListRegistryReposRequest) ProtoMessage()

func (*ListRegistryReposRequest) ProtoReflect added in v0.8.0

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

func (*ListRegistryReposRequest) Reset added in v0.8.0

func (x *ListRegistryReposRequest) Reset()

func (*ListRegistryReposRequest) String added in v0.8.0

func (x *ListRegistryReposRequest) String() string

type ListRegistryReposResponse added in v0.8.0

type ListRegistryReposResponse struct {
	RegistryRepos []*v1.RegistryRepo     `protobuf:"bytes,1,rep,name=registry_repos,json=registryRepos,proto3" json:"registry_repos,omitempty"`
	Page          *v1.PaginationResponse `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRegistryReposResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use ListRegistryReposResponse.ProtoReflect.Descriptor instead.

func (*ListRegistryReposResponse) GetPage added in v0.8.0

func (*ListRegistryReposResponse) GetRegistryRepos added in v0.8.0

func (x *ListRegistryReposResponse) GetRegistryRepos() []*v1.RegistryRepo

func (*ListRegistryReposResponse) ProtoMessage added in v0.8.0

func (*ListRegistryReposResponse) ProtoMessage()

func (*ListRegistryReposResponse) ProtoReflect added in v0.8.0

func (*ListRegistryReposResponse) Reset added in v0.8.0

func (x *ListRegistryReposResponse) Reset()

func (*ListRegistryReposResponse) String added in v0.8.0

func (x *ListRegistryReposResponse) String() string

type RegistryClient

RegistryClient is the client API for Registry 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 NewRegistryClient

func NewRegistryClient(cc grpc.ClientConnInterface) RegistryClient

type RegistryServer

RegistryServer is the server API for Registry service. All implementations should embed UnimplementedRegistryServer for forward compatibility

type UnimplementedRegistryServer

type UnimplementedRegistryServer struct {
}

UnimplementedRegistryServer should be embedded to have forward compatible implementations.

func (UnimplementedRegistryServer) CreateRegistryRepo added in v0.8.0

func (UnimplementedRegistryServer) DeleteRegistryRepo added in v0.8.0

func (UnimplementedRegistryServer) GetRegistryRepoTag added in v0.8.0

func (UnimplementedRegistryServer) ListOrgs

func (UnimplementedRegistryServer) ListRegistryRepoDigests added in v0.8.2

func (UnimplementedRegistryServer) ListRegistryRepoTags added in v0.8.0

func (UnimplementedRegistryServer) ListRegistryRepos added in v0.8.0

type UnsafeRegistryServer

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

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

Jump to

Keyboard shortcuts

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