controller-runtime: sigs.k8s.io/controller-runtime/pkg/conversion Index | Files

package conversion

import "sigs.k8s.io/controller-runtime/pkg/conversion"

Package conversion provides interface definitions that an API Type needs to implement for it to be supported by the generic conversion webhook handler defined under pkg/webhook/conversion.

Index

Package Files

conversion.go

type Convertible Uses

type Convertible interface {
    runtime.Object
    ConvertTo(dst Hub) error
    ConvertFrom(src Hub) error
}

Convertible defines capability of a type to convertible i.e. it can be converted to/from a hub type.

type Hub Uses

type Hub interface {
    runtime.Object
    Hub()
}

Hub marks that a given type is the hub type for conversion. This means that all conversions will first convert to the hub type, then convert from the hub type to the destination type. All types besides the hub type should implement Convertible.

Package conversion imports 1 packages (graph) and is imported by 4 packages. Updated 2019-05-09. Refresh now. Tools for package owners.