Documentation ¶
Index ¶
- Constants
- Variables
- func GVKToTypeMeta(gvk schema.GroupVersionKind) metav1.TypeMeta
- func GetObject(ctx context.Context, reader client.Reader, scheme *runtime.Scheme, ...) (runtime.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 []runtime.Object, err error)
- func MapObjects(input []runtime.Object, fn func(runtime.Object) error) ([]runtime.Object, error)
- func NewScheme() (*runtime.Scheme, error)
- func ToObject(scheme *runtime.Scheme, data interface{}) (runtime.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 ToUnstructured ¶ added in v1.0.0
func ToUnstructured(data interface{}) (*unstructured.Unstructured, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.