Versions in this module Expand all Collapse all v0 v0.2.0 Jun 15, 2020 Changes in this version + func DeclareDefaultVersion(gv schema.GroupVersion) + func DefaultScheme() *runtime.Scheme + func DefaultVersion(g string) string + func EqualsClusterObjectKey(a, b ClusterObjectKey) bool + func EqualsObjectKey(a, b ObjectKey) bool + func EqualsObjectName(a, b ObjectName) bool + func Everything() labels.Selector + func NewGroupKind(group, kind string) schema.GroupKind + func Register(builders ...runtime.SchemeBuilder) + type AbstractObject struct + func NewAbstractObject(data ObjectData, resource Resource) *AbstractObject + func (this *AbstractObject) Data() ObjectData + func (this *AbstractObject) Description() string + func (this *AbstractObject) GetAnnotation(name string) string + func (this *AbstractObject) GetLabel(name string) string + func (this *AbstractObject) GetOwnerReference() *metav1.OwnerReference + func (this *AbstractObject) GetResource() Resource + func (this *AbstractObject) GroupKind() schema.GroupKind + func (this *AbstractObject) GroupVersionKind() schema.GroupVersionKind + func (this *AbstractObject) HasFinalizer(key string) bool + func (this *AbstractObject) IsA(spec interface{}) bool + func (this *AbstractObject) IsDeleting() bool + func (this *AbstractObject) Key() ObjectKey + func (this *AbstractObject) ObjectName() ObjectName + func (this *AbstractObject) RemoveFinalizer(key string) error + func (this *AbstractObject) SetFinalizer(key string) error + func (this *AbstractObject) Status() interface{} + type AbstractResource struct + func NewAbstractResource(context ResourceContext, otype reflect.Type, ltype reflect.Type, ...) *AbstractResource + func (this *AbstractResource) CheckOType(obj ObjectData, unstructured ...bool) error + func (this *AbstractResource) CreateData(name ...ObjectDataName) ObjectData + func (this *AbstractResource) CreateListData() runtime.Object + func (this *AbstractResource) GroupKind() schema.GroupKind + func (this *AbstractResource) GroupVersionKind() schema.GroupVersionKind + func (this *AbstractResource) IsUnstructured() bool + func (this *AbstractResource) ListType() reflect.Type + func (this *AbstractResource) New(name ObjectName) ObjectData + func (this *AbstractResource) ObjectType() reflect.Type + func (this *AbstractResource) ResourceContext() ResourceContext + type AbstractResourceContext struct + func NewAbstractResourceContext(ctx context.Context, self ResourceContext, scheme *runtime.Scheme, ...) *AbstractResourceContext + func (c *AbstractResourceContext) KnownTypes(gv schema.GroupVersion) map[string]reflect.Type + func (c *AbstractResourceContext) ObjectKinds(obj runtime.Object) ([]schema.GroupVersionKind, bool, error) + func (this *AbstractResourceContext) Decoder() *Decoder + func (this *AbstractResourceContext) GetGVK(obj runtime.Object) (schema.GroupVersionKind, error) + func (this *AbstractResourceContext) GetGVKForGK(gk schema.GroupKind) (schema.GroupVersionKind, error) + func (this *AbstractResourceContext) GetGroups() []schema.GroupVersion + func (this *AbstractResourceContext) Lock() + func (this *AbstractResourceContext) Resources() Resources + func (this *AbstractResourceContext) Scheme() *runtime.Scheme + func (this *AbstractResourceContext) Unlock() + type AbstractResources struct + func NewAbstractResources(ctx ResourceContext, self Resources, factory Factory) *AbstractResources + func (this *AbstractResources) Decode(bytes []byte) (ObjectData, error) + func (this *AbstractResources) Get(spec interface{}) (Resource, error) + func (this *AbstractResources) GetByExample(obj runtime.Object) (Resource, error) + func (this *AbstractResources) GetByGK(gk schema.GroupKind) (Resource, error) + func (this *AbstractResources) GetByGVK(gvk schema.GroupVersionKind) (Resource, error) + func (this *AbstractResources) GetUnstructured(spec interface{}) (Resource, error) + func (this *AbstractResources) GetUnstructuredByGK(gk schema.GroupKind) (Resource, error) + func (this *AbstractResources) GetUnstructuredByGVK(gvk schema.GroupVersionKind) (Resource, error) + func (this *AbstractResources) Lock() + func (this *AbstractResources) ResourceContext() ResourceContext + func (this *AbstractResources) Scheme() *runtime.Scheme + func (this *AbstractResources) Unlock() + type ClusterGroupKind struct + Cluster string + func NewClusterGroupKind(cluster string, gk schema.GroupKind) ClusterGroupKind + func (cgk ClusterGroupKind) Empty() bool + func (cgk ClusterGroupKind) String() string + type ClusterGroupKindSet map[ClusterGroupKind]struct + func NewClusterGroupKindSet(a ...ClusterGroupKind) ClusterGroupKindSet + func NewClusterGroupKindSetByArray(a []ClusterGroupKind) ClusterGroupKindSet + func NewClusterGroupKindSetBySets(sets ...ClusterGroupKindSet) ClusterGroupKindSet + func (this ClusterGroupKindSet) Add(n ...ClusterGroupKind) ClusterGroupKindSet + func (this ClusterGroupKindSet) AddAll(n []ClusterGroupKind) ClusterGroupKindSet + func (this ClusterGroupKindSet) AddSet(sets ...ClusterGroupKindSet) ClusterGroupKindSet + func (this ClusterGroupKindSet) AsArray() []ClusterGroupKind + func (this ClusterGroupKindSet) Contains(n ClusterGroupKind) bool + func (this ClusterGroupKindSet) Copy() ClusterGroupKindSet + func (this ClusterGroupKindSet) DiffFrom(set ClusterGroupKindSet) (add, del ClusterGroupKindSet) + func (this ClusterGroupKindSet) Equals(set ClusterGroupKindSet) bool + func (this ClusterGroupKindSet) Remove(n ClusterGroupKind) ClusterGroupKindSet + func (this ClusterGroupKindSet) String() string + type ClusterObjectKey struct + func NewClusterKey(cluster string, groupKind schema.GroupKind, namespace, name string) ClusterObjectKey + func NewClusterKeyForObject(cluster string, key ObjectKey) ClusterObjectKey + func ParseClusterObjectKey(clusterid string, key string) (ClusterObjectKey, error) + func (this ClusterObjectKey) AsRefFor(clusterid string) string + func (this ClusterObjectKey) Cluster() string + func (this ClusterObjectKey) ClusterGroupKind() ClusterGroupKind + func (this ClusterObjectKey) ObjectKey() ObjectKey + func (this ClusterObjectKey) String() string + type ClusterObjectKeySet map[ClusterObjectKey]struct + func NewClusterObjectKeSetBySets(sets ...ClusterObjectKeySet) ClusterObjectKeySet + func NewClusterObjectKeySet(a ...ClusterObjectKey) ClusterObjectKeySet + func NewClusterObjectKeySetByArray(a []ClusterObjectKey) ClusterObjectKeySet + func (this ClusterObjectKeySet) Add(n ...ClusterObjectKey) ClusterObjectKeySet + func (this ClusterObjectKeySet) AddAll(n []ClusterObjectKey) ClusterObjectKeySet + func (this ClusterObjectKeySet) AddSet(sets ...ClusterObjectKeySet) ClusterObjectKeySet + func (this ClusterObjectKeySet) AsArray() []ClusterObjectKey + func (this ClusterObjectKeySet) Contains(n ClusterObjectKey) bool + func (this ClusterObjectKeySet) Copy() ClusterObjectKeySet + func (this ClusterObjectKeySet) DiffFrom(set ClusterObjectKeySet) (add, del ClusterObjectKeySet) + func (this ClusterObjectKeySet) Equals(set ClusterObjectKeySet) bool + func (this ClusterObjectKeySet) Remove(n ClusterObjectKey) ClusterObjectKeySet + func (this ClusterObjectKeySet) String() string + type Decoder struct + func NewDecoder(scheme *runtime.Scheme) *Decoder + func (this *Decoder) Decode(bytes []byte) (runtime.Object, *schema.GroupVersionKind, error) + func (this *Decoder) DecodeInto(bytes []byte, into runtime.Object) error + type Factory interface + NewResource func(resources Resources, gvk schema.GroupVersionKind, otype, ltype reflect.Type) (Resource, error) + NewResources func(ResourceContext, Factory) Resources + ResolveGVK func(ResourceContext, schema.GroupKind, []schema.GroupVersionKind) (schema.GroupVersionKind, error) + type GenericObjectName interface + func NewObjectName(names ...string) GenericObjectName + func NewObjectNameFor(p ObjectNameProvider) GenericObjectName + func NewObjectNameForData(p ObjectDataName) GenericObjectName + func ParseObjectName(name string) (GenericObjectName, error) + type GroupKindProvider interface + GroupKind func() schema.GroupKind + type GroupKindSet map[schema.GroupKind]struct + func NewGroupKindSet(a ...schema.GroupKind) GroupKindSet + func NewGroupKindSetByArray(a []schema.GroupKind) GroupKindSet + func NewGroupKindSetBySets(sets ...GroupKindSet) GroupKindSet + func (this GroupKindSet) Add(n ...schema.GroupKind) GroupKindSet + func (this GroupKindSet) AddAll(n []schema.GroupKind) GroupKindSet + func (this GroupKindSet) AddSet(sets ...GroupKindSet) GroupKindSet + func (this GroupKindSet) AsArray() []schema.GroupKind + func (this GroupKindSet) Contains(n schema.GroupKind) bool + func (this GroupKindSet) Copy() GroupKindSet + func (this GroupKindSet) DiffFrom(set GroupKindSet) (add, del GroupKindSet) + func (this GroupKindSet) Equals(set GroupKindSet) bool + func (this GroupKindSet) Remove(n schema.GroupKind) GroupKindSet + func (this GroupKindSet) String() string + type GroupVersionKindProvider interface + GroupVersionKind func() schema.GroupVersionKind + type ModificationState struct + func NewModificationState(object Object, mod ...bool) *ModificationState + func (this *ModificationState) Apply(f func(obj Object) bool) *ModificationState + func (this *ModificationState) AssureLabel(name, value string) *ModificationState + func (this *ModificationState) Condition(t *conditions.ConditionType) *conditions.Condition + func (this *ModificationState) Conditions(layout *conditions.ConditionLayout) (*conditions.Conditions, error) + func (this *ModificationState) Data() ObjectData + func (this *ModificationState) Get(field fieldpath.Field) (interface{}, error) + func (this *ModificationState) Object() Object + func (this *ModificationState) Set(field fieldpath.Field, value interface{}) error + type NewResource func(resources Resources, gvk schema.GroupVersionKind, otype reflect.Type, ...) (Resource, error) + type Object interface + Data func() ObjectData + Description func() string + GetAnnotation func(name string) string + GetLabel func(name string) string + GetOwnerReference func() *metav1.OwnerReference + GroupVersionKind func() schema.GroupVersionKind + HasFinalizer func(key string) bool + IsA func(spec interface{}) bool + IsDeleting func() bool + Key func() ObjectKey + ObjectName func() ObjectName + RemoveFinalizer func(key string) error + SetFinalizer func(key string) error + Status func() interface{} + type ObjectData interface + type ObjectDataName interface + GetName func() string + GetNamespace func() string + type ObjectKey struct + func NewKey(groupKind schema.GroupKind, namespace, name string) ObjectKey + func NewKeyForData(data ObjectData) ObjectKey + func (this ObjectKey) ForCluster(id string) ClusterObjectKey + func (this ObjectKey) Group() string + func (this ObjectKey) GroupKind() schema.GroupKind + func (this ObjectKey) Kind() string + func (this ObjectKey) Name() string + func (this ObjectKey) Namespace() string + func (this ObjectKey) ObjectName() ObjectName + func (this ObjectKey) String() string + type ObjectMatcher func(Object) bool + type ObjectName interface + ForGroupKind func(gk schema.GroupKind) ObjectKey + String func() string + type ObjectNameProvider interface + Name func() string + Namespace func() string + type ObjectNameSet map[ObjectName]struct + func NewObjectNameSet(a ...ObjectName) ObjectNameSet + func NewObjectNameSetByArray(a []ObjectName) ObjectNameSet + func NewObjectNameSetBySets(sets ...ObjectNameSet) ObjectNameSet + func (this ObjectNameSet) Add(n ...ObjectName) ObjectNameSet + func (this ObjectNameSet) AddAll(n []ObjectName) ObjectNameSet + func (this ObjectNameSet) AddAllSplitted(n string) (ObjectNameSet, error) + func (this ObjectNameSet) AddSet(sets ...ObjectNameSet) ObjectNameSet + func (this ObjectNameSet) AsArray() []ObjectName + func (this ObjectNameSet) Contains(n ObjectName) bool + func (this ObjectNameSet) Copy() ObjectNameSet + func (this ObjectNameSet) DiffFrom(set ObjectNameSet) (add, del ObjectNameSet) + func (this ObjectNameSet) Equals(set ObjectNameSet) bool + func (this ObjectNameSet) Remove(n ObjectName) ObjectNameSet + func (this ObjectNameSet) String() string + type Resource interface + GroupVersionKind func() schema.GroupVersionKind + ListType func() reflect.Type + ObjectType func() reflect.Type + type ResourceContext interface + Decoder func() *Decoder + GetGVK func(obj runtime.Object) (schema.GroupVersionKind, error) + GetGVKForGK func(gk schema.GroupKind) (schema.GroupVersionKind, error) + GetGroups func() []schema.GroupVersion + KnownTypes func(gv schema.GroupVersion) map[string]reflect.Type + ObjectKinds func(obj runtime.Object) ([]schema.GroupVersionKind, bool, error) + Scheme func() *runtime.Scheme + type Resources interface + Scheme func() *runtime.Scheme