Documentation
¶
Index ¶
- Constants
- func GetOperator(gvk schema.GroupVersionKind) string
- func Group(operator string) string
- func GroupVersion(operator string) schema.GroupVersion
- func GroupVersionKind(operator, view string) schema.GroupVersionKind
- func HasViewGroupVersion(group string, gv schema.GroupVersion) bool
- func HasViewGroupVersionKind(group string, gvk schema.GroupVersionKind) bool
- func IsViewGroup(group string) bool
- func IsViewGroupVersion(gv schema.GroupVersion) bool
- func IsViewKind(gvk schema.GroupVersionKind) bool
- func MapFromView(gvk schema.GroupVersionKind) (schema.GroupVersionKind, error)
- func MapIntoView(operator string, gvk schema.GroupVersionKind) schema.GroupVersionKind
Constants ¶
const ( GroupSuffix = "view.dcontroller.io" Version = "v1alpha1" )
Variables ¶
This section is empty.
Functions ¶
func GetOperator ¶
func GetOperator(gvk schema.GroupVersionKind) string
GetOperator returns the operator name for a view resource.
func GroupVersion ¶
func GroupVersion(operator string) schema.GroupVersion
GroupVersion returns the group-version for the view objects created by an operator.
func GroupVersionKind ¶
func GroupVersionKind(operator, view string) schema.GroupVersionKind
GroupVersionKind returns the group-version-kind for the view objects created by an operator.
func HasViewGroupVersion ¶ added in v0.1.1
func HasViewGroupVersion(group string, gv schema.GroupVersion) bool
HasViewGroupVersion checks whether a group-version belongs to a view resource for a particular group.
func HasViewGroupVersionKind ¶ added in v0.1.1
func HasViewGroupVersionKind(group string, gvk schema.GroupVersionKind) bool
HasViewGroupVersionKind checks whether a group-version-kind belongs to a view resource for a particular group.
func IsViewGroup ¶
IsViewGroup checks whether a group belongs to a view resource.
func IsViewGroupVersion ¶
func IsViewGroupVersion(gv schema.GroupVersion) bool
IsViewGroupVersion checks whether a group-version belongs to a view resource.
func IsViewKind ¶
func IsViewKind(gvk schema.GroupVersionKind) bool
IsViewGroupVersion checks whether a group-version-kind belongs to a view resource.
func MapFromView ¶
func MapFromView(gvk schema.GroupVersionKind) (schema.GroupVersionKind, error)
MapIntoView restores a native object back from an operator view into its native GVK.
func MapIntoView ¶
func MapIntoView(operator string, gvk schema.GroupVersionKind) schema.GroupVersionKind
MapIntoView maps a native object into an operator view resource.
Types ¶
This section is empty.