Documentation ¶
Index ¶
- Constants
- func GetSriovFecNodeConfigIoGVR() schema.GroupVersionResource
- type AdditionalOptions
- type NodeConfigBuilder
- func (builder *NodeConfigBuilder) Create() (*NodeConfigBuilder, error)
- func (builder *NodeConfigBuilder) Delete() (*NodeConfigBuilder, error)
- func (builder *NodeConfigBuilder) Exists() bool
- func (builder *NodeConfigBuilder) Get() (*sriovfectypes.SriovFecNodeConfig, error)
- func (builder *NodeConfigBuilder) Update(force bool) (*NodeConfigBuilder, error)
- func (builder *NodeConfigBuilder) WithOptions(options ...AdditionalOptions) *NodeConfigBuilder
Constants ¶
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 ¶
func (builder *NodeConfigBuilder) Get() (*sriovfectypes.SriovFecNodeConfig, error)
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.