icsp

package
v0.0.0-...-ed48d28 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 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 AdditionalOptions

type AdditionalOptions func(builder *ICSPBuilder) (*ICSPBuilder, error)

AdditionalOptions additional options for ImageContentSourcePolicy object.

type ICSPBuilder

type ICSPBuilder struct {
	// ImageContentSourcePolicy definition. Used to create ImageContentSourcePolicy object.
	Definition *v1alpha1.ImageContentSourcePolicy
	// Created ImageContentSourcePolicy object.
	Object *v1alpha1.ImageContentSourcePolicy
	// contains filtered or unexported fields
}

ICSPBuilder provides struct for the ImageContentSourcePolicy object with connection to the cluster.

func NewICSPBuilder

func NewICSPBuilder(apiClient *clients.Settings, name, source string, mirrors []string) *ICSPBuilder

NewICSPBuilder creates a new instance of ICSPBuilder.

func Pull

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

Pull pulls object definition from cluster to ICSPBuilder struct.

func (*ICSPBuilder) Create

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

Create makes a ImageContentSourcePolicy in the cluster and stores the created object in struct.

func (*ICSPBuilder) Delete

func (builder *ICSPBuilder) Delete() error

Delete removes an ImageContentSourcePolicy.

func (*ICSPBuilder) Exists

func (builder *ICSPBuilder) Exists() bool

Exists check if object exists in the cluster.

func (*ICSPBuilder) Get

Get returns the ImageContentSourcePolicy if found.

func (*ICSPBuilder) Update

func (builder *ICSPBuilder) Update() (*ICSPBuilder, error)

Update renovates the existing ImageContentSourcePolicy object with the definition in ICSPbuilder.

func (*ICSPBuilder) WithOptions

func (builder *ICSPBuilder) WithOptions(options ...AdditionalOptions) *ICSPBuilder

WithOptions creates ImageContentPolicy with generic mutation options.

func (*ICSPBuilder) WithRepositoryDigestMirror

func (builder *ICSPBuilder) WithRepositoryDigestMirror(source string, mirrors []string) *ICSPBuilder

WithRepositoryDigestMirror adds new RepositoryDigestMirror.

Jump to

Keyboard shortcuts

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