announced

package
v1.11.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2018 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupMetaFactory

type GroupMetaFactory struct {
	GroupArgs *GroupMetaFactoryArgs
	// map of version name to version factory
	VersionArgs map[string]*GroupVersionFactoryArgs
	// contains filtered or unexported fields
}

GroupMetaFactory has the logic for actually assembling and registering a group.

Note that GroupMetaFactory actually does construct GroupMeta objects, but currently it does so in a way that's very entangled with an APIRegistrationManager. It's a TODO item to cleanly separate that interface.

func NewGroupMetaFactory

func NewGroupMetaFactory(groupArgs *GroupMetaFactoryArgs, versions VersionToSchemeFunc) *GroupMetaFactory

NewGroupMetaFactory builds the args for you. This is for if you're constructing a factory all at once and not using the registry.

func (*GroupMetaFactory) Register

Register constructs the finalized prioritized version list and sanity checks the registered group & versions. Then it calls register.

type GroupMetaFactoryArgs

type GroupMetaFactoryArgs struct {
	// GroupName is the name of the API-Group
	//
	// example: 'servicecatalog.k8s.io'
	GroupName              string
	VersionPreferenceOrder []string

	// May be nil if there are no internal objects.
	AddInternalObjectsToScheme SchemeFunc
}

GroupMetaFactoryArgs contains the group-level args of a GroupMetaFactory.

type GroupVersionFactoryArgs

type GroupVersionFactoryArgs struct {
	GroupName   string
	VersionName string

	AddToScheme SchemeFunc
}

GroupVersionFactoryArgs contains all the per-version parts of a GroupMetaFactory.

type SchemeFunc

type SchemeFunc func(*runtime.Scheme) error

type VersionToSchemeFunc

type VersionToSchemeFunc map[string]SchemeFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL