artifactregistry

package
v0.0.0-...-e9cf271 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Repository_Format_name = map[int32]string{
		0: "FORMAT_UNSPECIFIED",
		1: "DOCKER",
		2: "MAVEN",
		3: "NPM",
		5: "APT",
		6: "YUM",
		8: "PYTHON",
	}
	Repository_Format_value = map[string]int32{
		"FORMAT_UNSPECIFIED": 0,
		"DOCKER":             1,
		"MAVEN":              2,
		"NPM":                3,
		"APT":                5,
		"YUM":                6,
		"PYTHON":             8,
	}
)

Enum value maps for Repository_Format.

View Source
var File_google_devtools_artifactregistry_v1_artifact_proto protoreflect.FileDescriptor
View Source
var File_google_devtools_artifactregistry_v1_repository_proto protoreflect.FileDescriptor
View Source
var File_google_devtools_artifactregistry_v1_service_proto protoreflect.FileDescriptor

Functions

func RegisterArtifactRegistryServer

func RegisterArtifactRegistryServer(s *grpc.Server, srv ArtifactRegistryServer)

Types

type ArtifactRegistryClient

type ArtifactRegistryClient interface {
	// Lists docker images.
	ListDockerImages(ctx context.Context, in *ListDockerImagesRequest, opts ...grpc.CallOption) (*ListDockerImagesResponse, error)
	// Lists repositories.
	ListRepositories(ctx context.Context, in *ListRepositoriesRequest, opts ...grpc.CallOption) (*ListRepositoriesResponse, error)
	// Gets a repository.
	GetRepository(ctx context.Context, in *GetRepositoryRequest, opts ...grpc.CallOption) (*Repository, error)
}

ArtifactRegistryClient is the client API for ArtifactRegistry service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ArtifactRegistryServer

type ArtifactRegistryServer interface {
	// Lists docker images.
	ListDockerImages(context.Context, *ListDockerImagesRequest) (*ListDockerImagesResponse, error)
	// Lists repositories.
	ListRepositories(context.Context, *ListRepositoriesRequest) (*ListRepositoriesResponse, error)
	// Gets a repository.
	GetRepository(context.Context, *GetRepositoryRequest) (*Repository, error)
}

ArtifactRegistryServer is the server API for ArtifactRegistry service.

type DockerImage

type DockerImage struct {

	// Required. registry_location, project_id, repository_name and image id forms a unique
	// image
	// name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
	// For example,
	// "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
	// nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
	// where "us-west4" is the registry_location, "test-project" is the
	// project_id, "test-repo" is the repository_name and
	// "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf"
	// is the image's digest.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. URL to access the image.
	// Example:
	// us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf
	Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
	// Tags attached to this image.
	Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
	// Calculated size of the image.
	// This field is returned as the 'metadata.imageSizeBytes' field in the
	// Version resource.
	ImageSizeBytes int64 `protobuf:"varint,4,opt,name=image_size_bytes,json=imageSizeBytes,proto3" json:"image_size_bytes,omitempty"`
	// Time the image was uploaded.
	UploadTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=upload_time,json=uploadTime,proto3" json:"upload_time,omitempty"`
	// Media type of this image, e.g.
	// "application/vnd.docker.distribution.manifest.v2+json".
	// This field is returned as the 'metadata.mediaType' field in the
	// Version resource.
	MediaType string `protobuf:"bytes,6,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"`
	// The time this image was built.
	// This field is returned as the 'metadata.buildTime' field in the
	// Version resource.
	// The build time is returned to the client as an RFC 3339 string, which can
	// be easily used with the JavaScript Date constructor.
	BuildTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"`
	// contains filtered or unexported fields
}

DockerImage represents a docker artifact. The following fields are returned as untyped metadata in the Version resource, using camelcase keys (i.e. metadata.imageSizeBytes): * imageSizeBytes * mediaType * buildTime

func (*DockerImage) Descriptor deprecated

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

Deprecated: Use DockerImage.ProtoReflect.Descriptor instead.

func (*DockerImage) GetBuildTime

func (x *DockerImage) GetBuildTime() *timestamppb.Timestamp

func (*DockerImage) GetImageSizeBytes

func (x *DockerImage) GetImageSizeBytes() int64

func (*DockerImage) GetMediaType

func (x *DockerImage) GetMediaType() string

func (*DockerImage) GetName

func (x *DockerImage) GetName() string

func (*DockerImage) GetTags

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

func (*DockerImage) GetUploadTime

func (x *DockerImage) GetUploadTime() *timestamppb.Timestamp

func (*DockerImage) GetUri

func (x *DockerImage) GetUri() string

func (*DockerImage) ProtoMessage

func (*DockerImage) ProtoMessage()

func (*DockerImage) ProtoReflect

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

func (*DockerImage) Reset

func (x *DockerImage) Reset()

func (*DockerImage) String

func (x *DockerImage) String() string

type GetRepositoryRequest

type GetRepositoryRequest struct {

	// Required. The name of the repository to retrieve.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request to retrieve a repository.

func (*GetRepositoryRequest) Descriptor deprecated

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

Deprecated: Use GetRepositoryRequest.ProtoReflect.Descriptor instead.

func (*GetRepositoryRequest) GetName

func (x *GetRepositoryRequest) GetName() string

func (*GetRepositoryRequest) ProtoMessage

func (*GetRepositoryRequest) ProtoMessage()

func (*GetRepositoryRequest) ProtoReflect

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

func (*GetRepositoryRequest) Reset

func (x *GetRepositoryRequest) Reset()

func (*GetRepositoryRequest) String

func (x *GetRepositoryRequest) String() string

type ListDockerImagesRequest

type ListDockerImagesRequest struct {

	// Required. The name of the parent resource whose docker images will be listed.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of artifacts to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous list request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

The request to list docker images.

func (*ListDockerImagesRequest) Descriptor deprecated

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

Deprecated: Use ListDockerImagesRequest.ProtoReflect.Descriptor instead.

func (*ListDockerImagesRequest) GetPageSize

func (x *ListDockerImagesRequest) GetPageSize() int32

func (*ListDockerImagesRequest) GetPageToken

func (x *ListDockerImagesRequest) GetPageToken() string

func (*ListDockerImagesRequest) GetParent

func (x *ListDockerImagesRequest) GetParent() string

func (*ListDockerImagesRequest) ProtoMessage

func (*ListDockerImagesRequest) ProtoMessage()

func (*ListDockerImagesRequest) ProtoReflect

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

func (*ListDockerImagesRequest) Reset

func (x *ListDockerImagesRequest) Reset()

func (*ListDockerImagesRequest) String

func (x *ListDockerImagesRequest) String() string

type ListDockerImagesResponse

type ListDockerImagesResponse struct {

	// The docker images returned.
	DockerImages []*DockerImage `protobuf:"bytes,1,rep,name=docker_images,json=dockerImages,proto3" json:"docker_images,omitempty"`
	// The token to retrieve the next page of artifacts, or empty if there are no
	// more artifacts to return.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

The response from listing docker images.

func (*ListDockerImagesResponse) Descriptor deprecated

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

Deprecated: Use ListDockerImagesResponse.ProtoReflect.Descriptor instead.

func (*ListDockerImagesResponse) GetDockerImages

func (x *ListDockerImagesResponse) GetDockerImages() []*DockerImage

func (*ListDockerImagesResponse) GetNextPageToken

func (x *ListDockerImagesResponse) GetNextPageToken() string

func (*ListDockerImagesResponse) ProtoMessage

func (*ListDockerImagesResponse) ProtoMessage()

func (*ListDockerImagesResponse) ProtoReflect

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

func (*ListDockerImagesResponse) Reset

func (x *ListDockerImagesResponse) Reset()

func (*ListDockerImagesResponse) String

func (x *ListDockerImagesResponse) String() string

type ListRepositoriesRequest

type ListRepositoriesRequest struct {

	// Required. The name of the parent resource whose repositories will be listed.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of repositories to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous list request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

The request to list repositories.

func (*ListRepositoriesRequest) Descriptor deprecated

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

Deprecated: Use ListRepositoriesRequest.ProtoReflect.Descriptor instead.

func (*ListRepositoriesRequest) GetPageSize

func (x *ListRepositoriesRequest) GetPageSize() int32

func (*ListRepositoriesRequest) GetPageToken

func (x *ListRepositoriesRequest) GetPageToken() string

func (*ListRepositoriesRequest) GetParent

func (x *ListRepositoriesRequest) GetParent() string

func (*ListRepositoriesRequest) ProtoMessage

func (*ListRepositoriesRequest) ProtoMessage()

func (*ListRepositoriesRequest) ProtoReflect

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

func (*ListRepositoriesRequest) Reset

func (x *ListRepositoriesRequest) Reset()

func (*ListRepositoriesRequest) String

func (x *ListRepositoriesRequest) String() string

type ListRepositoriesResponse

type ListRepositoriesResponse struct {

	// The repositories returned.
	Repositories []*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
	// The token to retrieve the next page of repositories, or empty if there are
	// no more repositories to return.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

The response from listing repositories.

func (*ListRepositoriesResponse) Descriptor deprecated

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

Deprecated: Use ListRepositoriesResponse.ProtoReflect.Descriptor instead.

func (*ListRepositoriesResponse) GetNextPageToken

func (x *ListRepositoriesResponse) GetNextPageToken() string

func (*ListRepositoriesResponse) GetRepositories

func (x *ListRepositoriesResponse) GetRepositories() []*Repository

func (*ListRepositoriesResponse) ProtoMessage

func (*ListRepositoriesResponse) ProtoMessage()

func (*ListRepositoriesResponse) ProtoReflect

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

func (*ListRepositoriesResponse) Reset

func (x *ListRepositoriesResponse) Reset()

func (*ListRepositoriesResponse) String

func (x *ListRepositoriesResponse) String() string

type Repository

type Repository struct {

	// The name of the repository, for example:
	// "projects/p1/locations/us-central1/repositories/repo1".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The format of packages that are stored in the repository.
	Format Repository_Format `protobuf:"varint,2,opt,name=format,proto3,enum=google.devtools.artifactregistry.v1.Repository_Format" json:"format,omitempty"`
	// The user-provided description of the repository.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Labels with user-defined metadata.
	// This field may contain up to 64 entries. Label keys and values may be no
	// longer than 63 characters. Label keys must begin with a lowercase letter
	// and may only contain lowercase letters, numeric characters, underscores,
	// and dashes.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// The time when the repository was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The time when the repository was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The Cloud KMS resource name of the customer managed encryption key that’s
	// used to encrypt the contents of the Repository. Has the form:
	// `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`.
	// This value may not be changed after the Repository has been created.
	KmsKeyName string `protobuf:"bytes,8,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"`
	// contains filtered or unexported fields
}

A Repository for storing artifacts with a specific format.

func (*Repository) Descriptor deprecated

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

Deprecated: Use Repository.ProtoReflect.Descriptor instead.

func (*Repository) GetCreateTime

func (x *Repository) GetCreateTime() *timestamppb.Timestamp

func (*Repository) GetDescription

func (x *Repository) GetDescription() string

func (*Repository) GetFormat

func (x *Repository) GetFormat() Repository_Format

func (*Repository) GetKmsKeyName

func (x *Repository) GetKmsKeyName() string

func (*Repository) GetLabels

func (x *Repository) GetLabels() map[string]string

func (*Repository) GetName

func (x *Repository) GetName() string

func (*Repository) GetUpdateTime

func (x *Repository) GetUpdateTime() *timestamppb.Timestamp

func (*Repository) ProtoMessage

func (*Repository) ProtoMessage()

func (*Repository) ProtoReflect

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

func (*Repository) Reset

func (x *Repository) Reset()

func (*Repository) String

func (x *Repository) String() string

type Repository_Format

type Repository_Format int32

A package format.

const (
	// Unspecified package format.
	Repository_FORMAT_UNSPECIFIED Repository_Format = 0
	// Docker package format.
	Repository_DOCKER Repository_Format = 1
	// Maven package format.
	Repository_MAVEN Repository_Format = 2
	// NPM package format.
	Repository_NPM Repository_Format = 3
	// APT package format.
	Repository_APT Repository_Format = 5
	// YUM package format.
	Repository_YUM Repository_Format = 6
	// Python package format.
	Repository_PYTHON Repository_Format = 8
)

func (Repository_Format) Descriptor

func (Repository_Format) Enum

func (Repository_Format) EnumDescriptor deprecated

func (Repository_Format) EnumDescriptor() ([]byte, []int)

Deprecated: Use Repository_Format.Descriptor instead.

func (Repository_Format) Number

func (Repository_Format) String

func (x Repository_Format) String() string

func (Repository_Format) Type

type UnimplementedArtifactRegistryServer

type UnimplementedArtifactRegistryServer struct {
}

UnimplementedArtifactRegistryServer can be embedded to have forward compatible implementations.

func (*UnimplementedArtifactRegistryServer) GetRepository

func (*UnimplementedArtifactRegistryServer) ListDockerImages

func (*UnimplementedArtifactRegistryServer) ListRepositories

Jump to

Keyboard shortcuts

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