Documentation ¶
Index ¶
- Variables
- func ApplyGenericAPIServerFns(in *pkgserver.GenericAPIServer) *pkgserver.GenericAPIServer
- func BuildAPIGroupInfos(s *runtime.Scheme, g genericregistry.RESTOptionsGetter) ([]*pkgserver.APIGroupInfo, error)
- type CompletedConfig
- type Config
- type ExtraConfig
- type StorageProvider
- type WardleServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Scheme defines methods for serializing and deserializing API objects. Scheme = runtime.NewScheme() // Codecs provides methods for retrieving codecs and serializers for specific // versions and content types. Codecs = serializer.NewCodecFactory(Scheme) )
View Source
var ( APIs = map[schema.GroupVersionResource]StorageProvider{} GenericAPIServerFns []func(*pkgserver.GenericAPIServer) *pkgserver.GenericAPIServer )
View Source
var ( ParameterScheme = runtime.NewScheme() ParameterCodec = runtime.NewParameterCodec(ParameterScheme) )
Functions ¶
func ApplyGenericAPIServerFns ¶
func ApplyGenericAPIServerFns(in *pkgserver.GenericAPIServer) *pkgserver.GenericAPIServer
func BuildAPIGroupInfos ¶
func BuildAPIGroupInfos(s *runtime.Scheme, g genericregistry.RESTOptionsGetter) ([]*pkgserver.APIGroupInfo, error)
Types ¶
type CompletedConfig ¶
type CompletedConfig struct {
// contains filtered or unexported fields
}
CompletedConfig embeds a private pointer that cannot be instantiated outside of this package.
func (CompletedConfig) New ¶
func (c CompletedConfig) New() (*WardleServer, error)
New returns a new instance of WardleServer from the given config.
type Config ¶
type Config struct { GenericConfig *genericapiserver.RecommendedConfig ExtraConfig ExtraConfig }
Config defines the config for the apiserver
func (*Config) Complete ¶
func (cfg *Config) Complete() CompletedConfig
Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.
type StorageProvider ¶
type StorageProvider func(s *runtime.Scheme, g genericregistry.RESTOptionsGetter) (rest.Storage, error)
type WardleServer ¶
type WardleServer struct {
GenericAPIServer *genericapiserver.GenericAPIServer
}
WardleServer contains state for a Kubernetes cluster master/api server.
Click to show internal directories.
Click to hide internal directories.