registry

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	ImageName  string
	Name       string    `json:"name,omitempty"`
	CreateTime time.Time `json:"createTime,omitempty"`
	UpdateTime time.Time `json:"updateTime,omitempty"`
}

Package represents a google artifact repository package

func ListPackages

func ListPackages(projectName, location, repository string) ([]Package, error)

ListPackages lists all the packages in the repository

func (*Package) Tags

func (p *Package) Tags() ([]Tag, error)

Tags returns all the tags on this package

func (*Package) Versions

func (p *Package) Versions() ([]Version, error)

Versions returns all the versions of this package

type Packages

type Packages struct {
	Packages      []Package `json:"packages,omitempty"`
	NextPageToken string    `json:"nextPageToken"`
}

Packages respresents the object returned from the packages endpoint

type Plugin

type Plugin struct {
	Name       string
	CreateTime time.Time
	UpdateTime time.Time
	Package    Package
}

Plugin respresents Plugin image from the repository

func ListPlugins

func ListPlugins() ([]Plugin, error)

ListPlugins gets a list of plugins from the repository

func (*Plugin) Versions

func (p *Plugin) Versions() ([]PluginVersion, error)

Versions gets a list of versions (and related tags) of a plugin

type PluginVersion

type PluginVersion struct {
	ImageName  string
	Digest     string
	CreateTime time.Time
	UpdateTime time.Time
	Tags       []string
}

PluginVersion respresents Plugin image image version

func (*PluginVersion) GetManifest added in v0.1.3

func (p *PluginVersion) GetManifest(ctx context.Context) (interface{}, error)

type Tag

type Tag struct {
	Tag     string
	Name    string `json:"name,omitempty"`
	Version string `json:"version,omitempty"`
}

Tag represents a google artifact repository image tag

type Tags

type Tags struct {
	Tags          []Tag  `json:"tags,omitempty"`
	NextPageToken string `json:"nextPageToken"`
}

Tags respresents the object returned from the tags endpoint

type Version

type Version struct {
	Digest     string
	Name       string    `json:"name,omitempty"`
	CreateTime time.Time `json:"createTime,omitempty"`
	UpdateTime time.Time `json:"updateTime,omitempty"`
}

Version represents a google artifact repository image version

type Versions

type Versions struct {
	Versions      []Version `json:"versions,omitempty"`
	NextPageToken string    `json:"nextPageToken"`
}

Versions respresents the object returned from the versions endpoint

Jump to

Keyboard shortcuts

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