sriovfec

package
v0.0.0-...-8f011e8 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// APIGroup represents sriovfecnodeconfig api group.
	APIGroup = "sriovfec.intel.com"
	// APIVersion represents version of sriovfecnodeconfig api.
	APIVersion = "v2"
)

Variables

This section is empty.

Functions

func GetSriovFecNodeConfigIoGVR

func GetSriovFecNodeConfigIoGVR() schema.GroupVersionResource

GetSriovFecNodeConfigIoGVR returns SriovFecNodeConfig's GroupVersionResource which could be used for Clean function.

Types

type AdditionalOptions

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

AdditionalOptions additional options for sriovfecnodeconfig object.

type NodeConfigBuilder

type NodeConfigBuilder struct {
	// SriovFecNodeConfig definition. Used to create SriovFecNodeConfig object.
	Definition *sriovfectypes.SriovFecNodeConfig
	// Create SriovFecNodeConfig object.
	Object *sriovfectypes.SriovFecNodeConfig
	// contains filtered or unexported fields
}

NodeConfigBuilder provides struct for the SriovFecNodeConfig object containing connection to the cluster and the SriovFecNodeConfig definitions.

func NewNodeConfigBuilder

func NewNodeConfigBuilder(
	apiClient *clients.Settings,
	name, nsname string,
	label map[string]string) *NodeConfigBuilder

NewNodeConfigBuilder creates a new instance of NodeConfigBuilder.

func Pull

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

Pull retrieves an existing SriovFecNodeConfig.io object from the cluster.

func (*NodeConfigBuilder) Create

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

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

func (*NodeConfigBuilder) Delete

func (builder *NodeConfigBuilder) Delete() (*NodeConfigBuilder, error)

Delete removes SriovFecNodeConfig object from a cluster.

func (*NodeConfigBuilder) Exists

func (builder *NodeConfigBuilder) Exists() bool

Exists checks whether the given SriovFecNodeConfig exists.

func (*NodeConfigBuilder) Get

Get returns SriovFecNodeConfig object if found.

func (*NodeConfigBuilder) Update

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

Update renovates the existing SriovFecNodeConfig object with the SriovFecNodeConfig definition in builder.

func (*NodeConfigBuilder) WithOptions

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

WithOptions creates SriovFecNodeConfig with generic mutation options.

Jump to

Keyboard shortcuts

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