core

package
v0.0.0-...-44f477e Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactClient

type ArtifactClient interface {
	ListAllArtifacts(project, repository string) ([]*modelsv2.Artifact, error)
	DeleteArtifact(project, repository, digest string) error
	DeleteArtifactRepository(project, repository string) error
}

ArtifactClient defines the methods that an image client should implement

type ChartClient

type ChartClient interface {
	ListAllCharts(project, repository string) ([]*chartserver.ChartVersion, error)
	DeleteChart(project, repository, version string) error
	DeleteChartRepository(project, repository string) error
}

ChartClient defines the methods that a chart client should implement

type Client

type Client interface {
	ArtifactClient
	ChartClient
}

Client defines the methods that a core client should implement Currently, it contains only part of the whole method collection and we should expand it when needed

func New

func New(url string, httpclient *http.Client, authorizer modifier.Modifier) Client

New returns an instance of the client which is a default implement for Client

Jump to

Keyboard shortcuts

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