Documentation ¶
Index ¶
- type BytesSource
- type FileResource
- type FileSource
- type HTTPFileSource
- type LocalFileSource
- type Path
- type PathPart
- type PathPartArrayIndex
- type Resource
- type ResourceImpl
- func (r *ResourceImpl) APIGroup() string
- func (r *ResourceImpl) APIVersion() string
- func (r *ResourceImpl) Annotations() map[string]string
- func (r *ResourceImpl) AsYAMLBytes() ([]byte, error)
- func (r *ResourceImpl) DeepCopy() Resource
- func (r *ResourceImpl) DeepCopyRaw() map[string]interface{}
- func (r *ResourceImpl) Description() string
- func (r *ResourceImpl) Equal(res Resource) bool
- func (r *ResourceImpl) GroupVersionResource() schema.GroupVersionResource
- func (r *ResourceImpl) Kind() string
- func (r *ResourceImpl) Labels() map[string]string
- func (r *ResourceImpl) Name() string
- func (r *ResourceImpl) Namespace() string
- type StdinSource
- type YAMLFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BytesSource ¶ added in v0.22.0
type BytesSource struct {
// contains filtered or unexported fields
}
func NewBytesSource ¶ added in v0.22.0
func NewBytesSource(bs []byte) BytesSource
func (BytesSource) Bytes ¶ added in v0.22.0
func (s BytesSource) Bytes() ([]byte, error)
func (BytesSource) Description ¶ added in v0.22.0
func (s BytesSource) Description() string
type FileResource ¶
type FileResource struct {
// contains filtered or unexported fields
}
func NewFileResources ¶
func NewFileResources(file string) ([]FileResource, error)
func (FileResource) Description ¶
func (r FileResource) Description() string
func (FileResource) Resources ¶
func (r FileResource) Resources() ([]Resource, error)
type FileSource ¶
type HTTPFileSource ¶
type HTTPFileSource struct {
// contains filtered or unexported fields
}
func NewHTTPFileSource ¶
func NewHTTPFileSource(path string) HTTPFileSource
func (HTTPFileSource) Bytes ¶
func (s HTTPFileSource) Bytes() ([]byte, error)
func (HTTPFileSource) Description ¶
func (s HTTPFileSource) Description() string
type LocalFileSource ¶
type LocalFileSource struct {
// contains filtered or unexported fields
}
func NewLocalFileSource ¶
func NewLocalFileSource(path string) LocalFileSource
func (LocalFileSource) Bytes ¶
func (s LocalFileSource) Bytes() ([]byte, error)
func (LocalFileSource) Description ¶
func (s LocalFileSource) Description() string
type Path ¶ added in v0.21.0
type Path []*PathPart
func NewPathFromInterfaces ¶ added in v0.21.0
func NewPathFromInterfaces(parts []interface{}) Path
func NewPathFromStrings ¶ added in v0.21.0
func (Path) ContainsNonMapKeys ¶ added in v0.21.0
func (Path) HasMatchingSuffix ¶ added in v0.21.0
func (Path) MarshalJSON ¶ added in v0.21.0
type PathPart ¶ added in v0.21.0
type PathPart struct { MapKey *string `json:"mapKey,omitempty"` ArrayIndex *PathPartArrayIndex `json:"arrayIndex,omitempty"` }
func NewPathPartFromIndex ¶ added in v0.21.0
func NewPathPartFromIndexAll ¶ added in v0.21.0
func NewPathPartFromIndexAll() *PathPart
func NewPathPartFromString ¶ added in v0.21.0
func (*PathPart) UnmarshalJSON ¶ added in v0.21.0
type PathPartArrayIndex ¶ added in v0.21.0
type Resource ¶
type Resource interface { GroupVersionResource() schema.GroupVersionResource Kind() string APIVersion() string APIGroup() string Name() string Description() string Annotations() map[string]string Labels() map[string]string Equal(res Resource) bool DeepCopy() Resource DeepCopyRaw() map[string]interface{} AsYAMLBytes() ([]byte, error) // contains filtered or unexported methods }
func NewResourcesFromBytes ¶
type ResourceImpl ¶
type ResourceImpl struct {
// contains filtered or unexported fields
}
func MustNewResourceFromBytes ¶
func MustNewResourceFromBytes(data []byte) *ResourceImpl
func NewResourceFromBytes ¶
func NewResourceFromBytes(data []byte) (*ResourceImpl, error)
func NewResourceUnstructured ¶
func NewResourceUnstructured(un unstructured.Unstructured, gvr schema.GroupVersionResource) *ResourceImpl
func (*ResourceImpl) APIGroup ¶
func (r *ResourceImpl) APIGroup() string
func (*ResourceImpl) APIVersion ¶
func (r *ResourceImpl) APIVersion() string
func (*ResourceImpl) Annotations ¶
func (r *ResourceImpl) Annotations() map[string]string
func (*ResourceImpl) AsYAMLBytes ¶
func (r *ResourceImpl) AsYAMLBytes() ([]byte, error)
func (*ResourceImpl) DeepCopy ¶
func (r *ResourceImpl) DeepCopy() Resource
func (*ResourceImpl) DeepCopyRaw ¶
func (r *ResourceImpl) DeepCopyRaw() map[string]interface{}
func (*ResourceImpl) Description ¶
func (r *ResourceImpl) Description() string
func (*ResourceImpl) Equal ¶
func (r *ResourceImpl) Equal(res Resource) bool
func (*ResourceImpl) GroupVersionResource ¶
func (r *ResourceImpl) GroupVersionResource() schema.GroupVersionResource
func (*ResourceImpl) Kind ¶
func (r *ResourceImpl) Kind() string
func (*ResourceImpl) Labels ¶
func (r *ResourceImpl) Labels() map[string]string
func (*ResourceImpl) Name ¶
func (r *ResourceImpl) Name() string
func (*ResourceImpl) Namespace ¶
func (r *ResourceImpl) Namespace() string
type StdinSource ¶
type StdinSource struct{}
func NewStdinSource ¶
func NewStdinSource() StdinSource
func (StdinSource) Bytes ¶
func (s StdinSource) Bytes() ([]byte, error)
func (StdinSource) Description ¶
func (s StdinSource) Description() string
Click to show internal directories.
Click to hide internal directories.