Documentation
¶
Index ¶
- type AdditionalOptions
- type ICSPBuilder
- func (builder *ICSPBuilder) Create() (*ICSPBuilder, error)
- func (builder *ICSPBuilder) Delete() error
- func (builder *ICSPBuilder) Exists() bool
- func (builder *ICSPBuilder) Get() (*v1alpha1.ImageContentSourcePolicy, error)
- func (builder *ICSPBuilder) Update() (*ICSPBuilder, error)
- func (builder *ICSPBuilder) WithOptions(options ...AdditionalOptions) *ICSPBuilder
- func (builder *ICSPBuilder) WithRepositoryDigestMirror(source string, mirrors []string) *ICSPBuilder
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 ¶
func (builder *ICSPBuilder) Get() (*v1alpha1.ImageContentSourcePolicy, error)
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.