Documentation
¶
Index ¶
- func ExtractSecrets(componentName string, schema Schema, spec map[string]interface{}) (map[string]string, error)
- func Fetch(configDir, version string) (string, error)
- func ListSources(crdFile string) ([]string, error)
- func ListTargets(crdFile string) ([]string, error)
- type CRD
- type EventTypes
- type Property
- type Schema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractSecrets ¶
func ListSources ¶
ListSources returns the list of resources of the "source" API group from CRD.
func ListTargets ¶
ListTargets returns the list of resources of the "target" API group from CRD.
Types ¶
type CRD ¶
type CRD struct {
APIVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
Metadata struct {
Name string `yaml:"name"`
Annotations struct {
EventTypes string `yaml:"registry.knative.dev/eventTypes"`
} `yaml:"annotations"`
} `yaml:"metadata"`
Spec struct {
Group string `yaml:"group"`
Scope string `yaml:"scope"`
Names struct {
Kind string `yaml:"kind"`
Plural string `yaml:"plural"`
Categories []string `yaml:"categories"`
} `yaml:"names"`
Versions []struct {
Name string `yaml:"name"`
Served bool `yaml:"served"`
Storage bool `yaml:"storage"`
Subresources struct {
Status struct {
} `yaml:"status"`
} `yaml:"subresources"`
Schema struct {
OpenAPIV3Schema struct {
Properties struct {
Spec map[string]interface{} `yaml:"spec"`
} `yaml:"properties"`
} `yaml:"openAPIV3Schema"`
} `yaml:"schema"`
} `yaml:"versions"`
} `yaml:"spec"`
}
func GetResourceCRD ¶
type EventTypes ¶
type EventTypes []struct {
Type string `json:"type"`
}
Click to show internal directories.
Click to hide internal directories.