Documentation ¶
Index ¶
- func GetGVR() schema.GroupVersionResource
- type AdditionalOptions
- type Builder
- func List(apiClient *clients.Settings, nsname string, options ...metav1.ListOptions) ([]*Builder, error)
- func ListInAllNamespaces(apiClient *clients.Settings, options ...metav1.ListOptions) ([]*Builder, error)
- func NewBuilder(apiClient *clients.Settings, name, nsname string) *Builder
- func Pull(apiClient *clients.Settings, name, nsname string) (*Builder, error)
- func (builder *Builder) Create() (*Builder, error)
- func (builder *Builder) Delete() error
- func (builder *Builder) Exists() bool
- func (builder *Builder) Update() (*Builder, error)
- func (builder *Builder) WithData(data map[string]string) *Builder
- func (builder *Builder) WithOptions(options ...AdditionalOptions) *Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGVR ¶
func GetGVR() schema.GroupVersionResource
GetGVR returns configmap's GroupVersionResource which could be used for Clean function.
Types ¶
type AdditionalOptions ¶
AdditionalOptions additional options for configmap object.
type Builder ¶
type Builder struct { // ConfigMap definition. Used to create configmap object. Definition *corev1.ConfigMap // Created configmap object. Object *corev1.ConfigMap // contains filtered or unexported fields }
Builder provides struct for configmap object containing connection to the cluster and the configmap definitions.
func List ¶
func List(apiClient *clients.Settings, nsname string, options ...metav1.ListOptions) ([]*Builder, error)
List returns configmap inventory in the given namespace.
func ListInAllNamespaces ¶
func ListInAllNamespaces(apiClient *clients.Settings, options ...metav1.ListOptions) ([]*Builder, error)
ListInAllNamespaces returns configmap inventory in the all the namespaces.
func NewBuilder ¶
NewBuilder creates a new instance of Builder.
func (*Builder) Create ¶
Create makes a configmap in cluster and stores the created object in struct.
func (*Builder) Update ¶
Update renovates the existing configmap object with configmap definition in builder.
func (*Builder) WithOptions ¶
func (builder *Builder) WithOptions(options ...AdditionalOptions) *Builder
WithOptions creates configmap with generic mutation options.