idms

package
v0.0.0-...-a622235 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// ConfigMap definition. Used to create configmap object.
	Definition *configv1.ImageDigestMirrorSet
	// Created configmap object.
	Object *configv1.ImageDigestMirrorSet
	// contains filtered or unexported fields
}

Builder provides struct for configmap object containing connection to the cluster and the configmap definitions.

func ListImageDigestMirrorSets

func ListImageDigestMirrorSets(
	apiClient *clients.Settings,
	options ...runtimeClient.ListOptions) ([]*Builder, error)

ListImageDigestMirrorSets returns a cluster-wide imagedigestmirrorset inventory.

func NewBuilder

func NewBuilder(apiClient *clients.Settings, name string, mirror configv1.ImageDigestMirrors) *Builder

NewBuilder creates a new instance of Builder.

func Pull

func Pull(apiClient *clients.Settings, name string) (*Builder, error)

Pull retrieves an existing imagedigestmirrorset from the cluster.

func (*Builder) Create

func (builder *Builder) Create() (*Builder, error)

Create generates an imagedigestmirrorset on the cluster.

func (*Builder) Delete

func (builder *Builder) Delete() error

Delete removes an imagedigestmirrorset from the cluster.

func (*Builder) Exists

func (builder *Builder) Exists() bool

Exists checks if the defined imagedigestmirrorset has already been created.

func (*Builder) Get

func (builder *Builder) Get() (*configv1.ImageDigestMirrorSet, error)

Get fetches the defined imagedigestmirrorset from the cluster.

func (*Builder) Update

func (builder *Builder) Update(force bool) (*Builder, error)

Update modifies an existing imagedigestmirrorset on the cluster.

func (*Builder) WithMirror

func (builder *Builder) WithMirror(mirror configv1.ImageDigestMirrors) *Builder

WithMirror adds an imagedigestmirror for mirroring images.

Jump to

Keyboard shortcuts

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