Versions in this module Expand all Collapse all v1 v1.16.3 Oct 23, 2019 Changes in this version + func AssertCategories(t *testing.T, storage rest.CategoriesProvider, expected []string) + func AssertShortNames(t *testing.T, storage rest.ShortNamesProvider, expected []string) + func MakeNodeList(nodes []string, nodeResources api.NodeResources) *api.NodeList + func NewEtcdStorage(t *testing.T, group string) (*storagebackend.Config, *etcd3testing.EtcdTestServer) + func NewEtcdStorageForResource(t *testing.T, resource schema.GroupResource) (*storagebackend.Config, *etcd3testing.EtcdTestServer) + func ValidateStorageStrategies(storageMap map[string]rest.Storage, exceptions StrategyExceptions) []error + type EndpointRegistry struct + Endpoints *api.EndpointsList + Err error + Updates []api.Endpoints + func (e *EndpointRegistry) Create(ctx context.Context, endpoints runtime.Object, ...) (runtime.Object, error) + func (e *EndpointRegistry) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, bool, error) + func (e *EndpointRegistry) DeleteCollection(ctx context.Context, _ rest.ValidateObjectFunc, _ *metav1.DeleteOptions, ...) (runtime.Object, error) + func (e *EndpointRegistry) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) + func (e *EndpointRegistry) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error) + func (e *EndpointRegistry) New() runtime.Object + func (e *EndpointRegistry) NewList() runtime.Object + func (e *EndpointRegistry) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error) + func (e *EndpointRegistry) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error) + type NodeRegistry struct + Err error + Node string + Nodes api.NodeList + func NewNodeRegistry(nodes []string, nodeResources api.NodeResources) *NodeRegistry + func (r *NodeRegistry) CreateNode(ctx context.Context, node *api.Node) error + func (r *NodeRegistry) DeleteNode(ctx context.Context, nodeID string) error + func (r *NodeRegistry) GetNode(ctx context.Context, nodeID string, options *metav1.GetOptions) (*api.Node, error) + func (r *NodeRegistry) ListNodes(ctx context.Context, options *metainternalversion.ListOptions) (*api.NodeList, error) + func (r *NodeRegistry) SetError(err error) + func (r *NodeRegistry) UpdateNode(ctx context.Context, node *api.Node) error + func (r *NodeRegistry) WatchNodes(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error) + type ServiceRegistry struct + DeletedID string + Err error + GottenID string + List api.ServiceList + Service *api.Service + UpdatedID string + Updates []api.Service + func NewServiceRegistry() *ServiceRegistry + func (r *ServiceRegistry) CreateService(ctx context.Context, svc *api.Service, ...) (*api.Service, error) + func (r *ServiceRegistry) DeleteService(ctx context.Context, id string) error + func (r *ServiceRegistry) ExportService(ctx context.Context, name string, options metav1.ExportOptions) (*api.Service, error) + func (r *ServiceRegistry) GetService(ctx context.Context, id string, options *metav1.GetOptions) (*api.Service, error) + func (r *ServiceRegistry) ListServices(ctx context.Context, options *metainternalversion.ListOptions) (*api.ServiceList, error) + func (r *ServiceRegistry) SetError(err error) + func (r *ServiceRegistry) UpdateService(ctx context.Context, svc *api.Service, ...) (*api.Service, error) + func (r *ServiceRegistry) WatchServices(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error) + type StrategyExceptions struct + HasExportStrategy []string