Documentation
¶
Index ¶
- func CreateApplyAnnotation(obj runtime.Object) error
- func FormatTime(t time.Time) string
- func GetGroupVersionKind(obj runtime.Object) (*schema.GroupVersionKind, error)
- func GetModifiedConfiguration(obj runtime.Object) ([]byte, error)
- func GetOriginalConfiguration(obj runtime.Object) ([]byte, error)
- func GetSvcNamesFromManifest(manifest string) ([]string, error)
- func IgnoreNotFoundError(err error) error
- func MergeLabels(from, to map[string]string) map[string]string
- func NewDecoder(rs *runtime.Scheme) *decoder
- func NewResources(parsedYaml string, rs *runtime.Scheme) ([]*unstructured.Unstructured, error)
- func ParseTime(s string) (time.Time, error)
- func SetFieldValueIsNotExist(obj map[string]interface{}, value interface{}, fields ...string) map[string]interface{}
- func SetGroupVersionKind(obj runtime.Object, gvk *schema.GroupVersionKind) (runtime.Object, error)
- func Verify(yamlStr string) ([]*unstructured.Unstructured, []error)
- type ObjGVK
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateApplyAnnotation ¶
func FormatTime ¶
func GetGroupVersionKind ¶
func GetGroupVersionKind(obj runtime.Object) (*schema.GroupVersionKind, error)
func GetOriginalConfiguration ¶
GetOriginalConfiguration retrieves the original configuration of the object from the annotation, or nil if no annotation was found.
func GetSvcNamesFromManifest ¶
func IgnoreNotFoundError ¶
func MergeLabels ¶
MergeLabels 新扩展的label 合并到之前的
func NewDecoder ¶
func NewResources ¶
func NewResources(parsedYaml string, rs *runtime.Scheme) ([]*unstructured.Unstructured, error)
func SetFieldValueIsNotExist ¶
func SetGroupVersionKind ¶
func Verify ¶
func Verify(yamlStr string) ([]*unstructured.Unstructured, []error)
Types ¶
Click to show internal directories.
Click to hide internal directories.