Documentation

Overview

    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

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type Convertible

    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

      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.

        Source Files