Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAPIResourceConfigSource ¶
func DefaultAPIResourceConfigSource() *serverstorage.ResourceConfig
DefaultAPIResourceConfigSource returns which groupVersion enabled and its resources enabled/disabled.
Types ¶
type APIServer ¶
type APIServer struct {
GenericAPIServer *genericapiserver.GenericAPIServer
}
APIServer contains state for a onex-apiserver.
func (*APIServer) InstallAPIs ¶
func (s *APIServer) InstallAPIs( apiResourceConfigSource serverstorage.APIResourceConfigSource, restOptionsGetter generic.RESTOptionsGetter, restStorageProviders ...storage.RESTStorageProvider, ) error
APIServer will install the APIs for the restStorageProviders if they are enabled.
func (*APIServer) InstallLegacyAPI ¶
func (s *APIServer) InstallLegacyAPI(c *completedConfig, restOptionsGetter generic.RESTOptionsGetter) error
InstallLegacyAPI will install the legacy APIs for the restStorageProviders if they are enabled.
func (*APIServer) PrepareRun ¶
PrepareRun prepares the apiserver to run, by calling the generic PrepareRun.
type CompletedConfig ¶
type CompletedConfig struct {
// contains filtered or unexported fields
}
CompletedConfig embeds a private pointer that cannot be instantiated outside of this package.
type Config ¶
type Config struct { GenericConfig *genericapiserver.RecommendedConfig ExtraConfig ExtraConfig }
Config defines configuration for the onex-apiserver.
func (*Config) Complete ¶
func (c *Config) Complete() (CompletedConfig, error)
Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.
type ExtraConfig ¶
type ExtraConfig struct { // Place you custom config here. APIResourceConfigSource serverstorage.APIResourceConfigSource StorageFactory serverstorage.StorageFactory EventTTL time.Duration EnableLogsSupport bool VersionedInformers informers.SharedInformerFactory }
ExtraConfig defines extra configuration for the onex-apiserver.