Documentation
¶
Index ¶
- Variables
- func NewCustomProvider(f util.Factory) provider.Provider
- func WrapInventoryInfoObj(obj *unstructured.Unstructured) inventory.InventoryInfo
- func WrapInventoryObj(obj *unstructured.Unstructured) inventory.Inventory
- type CustomProvider
- type InventoryCustomType
- func (i InventoryCustomType) GetObject() (*unstructured.Unstructured, error)
- func (i InventoryCustomType) ID() string
- func (i InventoryCustomType) Load() ([]object.ObjMetadata, error)
- func (i InventoryCustomType) Name() string
- func (i InventoryCustomType) Namespace() string
- func (i InventoryCustomType) Store(objs []object.ObjMetadata) error
Constants ¶
This section is empty.
Variables ¶
View Source
var InventoryCRD = []byte(strings.TrimSpace(`
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: inventories.cli-utils.example.io
spec:
conversion:
strategy: None
group: cli-utils.example.io
names:
kind: Inventory
listKind: InventoryList
plural: inventories
singular: inventory
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Example for cli-utils e2e tests
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
properties:
inventory:
items:
properties:
group:
type: string
kind:
type: string
name:
type: string
namespace:
type: string
required:
- group
- kind
- name
- namespace
type: object
type: array
type: object
type: object
served: true
storage: true
subresources: {}
`))
View Source
var InventoryGVK = schema.GroupVersionKind{
Group: "cli-utils.example.io",
Version: "v1alpha1",
Kind: "Inventory",
}
Functions ¶
func WrapInventoryInfoObj ¶
func WrapInventoryInfoObj(obj *unstructured.Unstructured) inventory.InventoryInfo
func WrapInventoryObj ¶
func WrapInventoryObj(obj *unstructured.Unstructured) inventory.Inventory
Types ¶
type CustomProvider ¶
type CustomProvider struct {
// contains filtered or unexported fields
}
func (*CustomProvider) Factory ¶
func (c *CustomProvider) Factory() util.Factory
func (*CustomProvider) InventoryClient ¶
func (c *CustomProvider) InventoryClient() (inventory.InventoryClient, error)
type InventoryCustomType ¶
type InventoryCustomType struct {
// contains filtered or unexported fields
}
func (InventoryCustomType) GetObject ¶
func (i InventoryCustomType) GetObject() (*unstructured.Unstructured, error)
func (InventoryCustomType) ID ¶
func (i InventoryCustomType) ID() string
func (InventoryCustomType) Load ¶
func (i InventoryCustomType) Load() ([]object.ObjMetadata, error)
func (InventoryCustomType) Name ¶
func (i InventoryCustomType) Name() string
func (InventoryCustomType) Namespace ¶
func (i InventoryCustomType) Namespace() string
func (InventoryCustomType) Store ¶
func (i InventoryCustomType) Store(objs []object.ObjMetadata) error
Click to show internal directories.
Click to hide internal directories.