clients

package
v0.0.0-...-be64ad0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact interface {
	DigestString() (string, error)
	Bytes() ([]byte, error)
}

type ArtifactMetadata

type ArtifactMetadata struct {
	Deployment string
	Type       ArtifactType
	Version    string
}

type ArtifactType

type ArtifactType int
const (
	DeployStatusArtifactType ArtifactType = iota
	ManifestArtifactType
	DeployArtifactType
	PropagationConfigArtifactType
)

type CachedPropagationBackendClient

type CachedPropagationBackendClient struct {
	PropagationBackendClient
	// contains filtered or unexported fields
}

func (*CachedPropagationBackendClient) Fetch

Fetch implements PropagationBackendClient.

func (*CachedPropagationBackendClient) Publish

Publish implements PropagationBackendClient.

type OCIPropagationBackendClient

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

func NewOCIPropagationBackendClient

func NewOCIPropagationBackendClient(repository name.Repository) OCIPropagationBackendClient

func (*OCIPropagationBackendClient) Digest

Digest implements PropagationBackendClient.

func (*OCIPropagationBackendClient) Fetch

Fetch implements PropagationBackendClient.

func (*OCIPropagationBackendClient) NewArtifact

func (*OCIPropagationBackendClient) NewArtifact(data any) (Artifact, error)

NewArtifact implements PropagationBackendClient.

func (*OCIPropagationBackendClient) ParseArtifact

func (c *OCIPropagationBackendClient) ParseArtifact(a Artifact, dest any) error

ParseArtifact implements PropagationBackendClient.

func (*OCIPropagationBackendClient) Publish

Publish implements PropagationBackendClient.

type PropagationBackendClient

type PropagationBackendClient interface {
	Fetch(ArtifactMetadata) (Artifact, error)
	Digest(ArtifactMetadata) (string, error)
	Publish(ArtifactMetadata, Artifact) error
	NewArtifact(data any) (Artifact, error)
	ParseArtifact(a Artifact, dest any) error
}

type PropagationClient

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

func NewPropagationClient

func NewPropagationClient(client PropagationBackendClient) PropagationClient

func (*PropagationClient) GetConfig

func (c *PropagationClient) GetConfig() (*config.Config, error)

func (*PropagationClient) GetStatus

func (c *PropagationClient) GetStatus(deployment string) (*v1alpha1.DeploymentStatus, error)

func (*PropagationClient) Propagate

func (c *PropagationClient) Propagate(deployment, version string) error

func (*PropagationClient) PublishConfig

func (c *PropagationClient) PublishConfig(config config.Config) error

func (*PropagationClient) PublishStatus

func (c *PropagationClient) PublishStatus(deployment string, status v1alpha1.DeploymentStatus) error

type PropagationClientset

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

func NewPropagationClientset

func NewPropagationClientset(k8sClient client.Client) PropagationClientset

func (*PropagationClientset) Propagation

func (pc *PropagationClientset) Propagation(propagation v1alpha1.Propagation) (*PropagationClient, error)

Jump to

Keyboard shortcuts

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