Documentation ¶
Index ¶
- Constants
- Variables
- func GVKToTypeMeta(gvk schema.GroupVersionKind) metav1.TypeMeta
- func GetObject(ctx context.Context, reader client.Reader, scheme *runtime.Scheme, ...) (client.Object, error)
- func LoadConfig(config Config) (*rest.Config, error)
- func LoadDocuments(path string) ([]map[string]interface{}, error)
- func LoadObjects(scheme *runtime.Scheme, path string) (output []client.Object, err error)
- func MapObjects(input []client.Object, fn func(client.Object) error) ([]client.Object, error)
- func NewEmptyObject(scheme *runtime.Scheme, gvk schema.GroupVersionKind) (client.Object, error)
- func NewScheme() (*runtime.Scheme, error)
- func ToObject(scheme *runtime.Scheme, data interface{}) (client.Object, error)
- func ToUnstructured(data interface{}) (*unstructured.Unstructured, error)
- type Config
Constants ¶
View Source
const ( LabelWebhookName = "webhook-name" LabelPullRequestNumber = "pull-request-number" )
Variables ¶
View Source
var Set = wire.NewSet(LoadConfig, NewScheme)
Set provides config and scheme. nolint: gochecknoglobals
Functions ¶
func GVKToTypeMeta ¶
func GVKToTypeMeta(gvk schema.GroupVersionKind) metav1.TypeMeta
func LoadDocuments ¶ added in v1.0.0
func LoadObjects ¶ added in v1.0.0
func MapObjects ¶ added in v1.0.0
func NewEmptyObject ¶ added in v1.0.0
func ToUnstructured ¶ added in v1.0.0
func ToUnstructured(data interface{}) (*unstructured.Unstructured, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.