Documentation ¶
Index ¶
- func ComputeGVK(jsonObject JSONObject) (*schema.GroupVersionKind, error)
- func GetResourceName(resource JSONObject) (string, error)
- func ReadAllFiles(folderPath string, fileSuffix string) ([][]byte, error)
- func WriteFile(content []byte, path string) error
- type JSONArray
- type JSONObject
- type JSONValue
- type OrderKey
- type PatchGenerator
- type PatchPartition
- type PatchSource
- type SchemaClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeGVK ¶
func ComputeGVK(jsonObject JSONObject) (*schema.GroupVersionKind, error)
func GetResourceName ¶
func GetResourceName(resource JSONObject) (string, error)
Types ¶
type JSONObject ¶
func ExecutePatchOrdering ¶
func ExecutePatchOrdering(o JSONObject) (JSONObject, error)
func ParseYAMLFileIntoJSONObjects ¶
func ParseYAMLFileIntoJSONObjects(y []byte) ([]JSONObject, error)
type PatchGenerator ¶
type PatchGenerator struct {
// contains filtered or unexported fields
}
func NewPatchGenerator ¶
func NewPatchGenerator(schemaFolderPath string) (*PatchGenerator, error)
func (*PatchGenerator) Execute ¶
func (pg *PatchGenerator) Execute(resources []JSONObject) ([]PatchPartition, error)
type PatchPartition ¶
type PatchPartition struct {
// contains filtered or unexported fields
}
func (*PatchPartition) DumpToFolder ¶
func (pgr *PatchPartition) DumpToFolder(directoryPath string) error
func (*PatchPartition) GetBaseYAML ¶
func (pgr *PatchPartition) GetBaseYAML() ([]byte, error)
func (*PatchPartition) GetOriginalYAMLs ¶
func (pgr *PatchPartition) GetOriginalYAMLs() ([][]byte, error)
func (*PatchPartition) GetPatchYAMLs ¶
func (pgr *PatchPartition) GetPatchYAMLs() ([][]byte, error)
func (*PatchPartition) String ¶
func (pgr *PatchPartition) String() string
type PatchSource ¶
type PatchSource struct {
// contains filtered or unexported fields
}
type SchemaClient ¶
type SchemaClient struct {
// contains filtered or unexported fields
}
func NewSchemaClient ¶
func NewSchemaClient(schemaFolderPath string) (*SchemaClient, error)
func (*SchemaClient) GetPatchMetadata ¶
func (sc *SchemaClient) GetPatchMetadata(gvk schema.GroupVersionKind) (k8spatch.LookupPatchMeta, error)
func (*SchemaClient) GetSchemaByGVK ¶
func (sc *SchemaClient) GetSchemaByGVK(manifest JSONObject) (*proto.Schema, error)
Click to show internal directories.
Click to hide internal directories.