mocks

package
v0.0.0-...-814f547 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressAllocator

type AddressAllocator struct {
	mock.Mock
}

func (*AddressAllocator) LocateIpAddress

func (m *AddressAllocator) LocateIpAddress(uid string) (string, error)

func (*AddressAllocator) ReleaseIpAddress

func (m *AddressAllocator) ReleaseIpAddress(uid string)

type KubeClient

type KubeClient struct {
	NamespaceInterface *KubeNamespaceInterface
	// contains filtered or unexported fields
}

func NewKubeClient

func NewKubeClient() *KubeClient

func (*KubeClient) Autoscaling

func (c *KubeClient) Autoscaling() kubeclient.AutoscalingInterface

func (*KubeClient) Batch

func (*KubeClient) ComponentStatuses

func (c *KubeClient) ComponentStatuses() kubeclient.ComponentStatusInterface

func (*KubeClient) ConfigMaps

func (c *KubeClient) ConfigMaps(namespace string) kubeclient.ConfigMapsInterface

func (*KubeClient) Discovery

func (c *KubeClient) Discovery() discovery.DiscoveryInterface

func (*KubeClient) Endpoints

func (m *KubeClient) Endpoints(namespace string) kubeclient.EndpointsInterface

func (*KubeClient) Events

func (m *KubeClient) Events(namespace string) kubeclient.EventInterface

func (*KubeClient) Extensions

func (c *KubeClient) Extensions() kubeclient.ExtensionsInterface

func (*KubeClient) LimitRanges

func (c *KubeClient) LimitRanges(namespace string) kubeclient.LimitRangeInterface

func (*KubeClient) Namespaces

func (c *KubeClient) Namespaces() kubeclient.NamespaceInterface

func (*KubeClient) Nodes

func (c *KubeClient) Nodes() kubeclient.NodeInterface

func (*KubeClient) PersistentVolumeClaims

func (c *KubeClient) PersistentVolumeClaims(namespace string) kubeclient.PersistentVolumeClaimInterface

func (*KubeClient) PersistentVolumes

func (c *KubeClient) PersistentVolumes() kubeclient.PersistentVolumeInterface

func (*KubeClient) PodTemplates

func (c *KubeClient) PodTemplates(namespace string) kubeclient.PodTemplateInterface

func (*KubeClient) Pods

func (m *KubeClient) Pods(namespace string) kubeclient.PodInterface

func (*KubeClient) ReplicationControllers

func (m *KubeClient) ReplicationControllers(namespace string) kubeclient.ReplicationControllerInterface

func (*KubeClient) ResourceQuotas

func (c *KubeClient) ResourceQuotas(namespace string) kubeclient.ResourceQuotaInterface

func (*KubeClient) Secrets

func (c *KubeClient) Secrets(namespace string) kubeclient.SecretsInterface

func (*KubeClient) ServerAPIVersions

func (c *KubeClient) ServerAPIVersions() (*unversioned.APIVersions, error)

func (*KubeClient) ServerVersion

func (c *KubeClient) ServerVersion() (*version.Info, error)

func (*KubeClient) ServiceAccounts

func (c *KubeClient) ServiceAccounts(namespace string) kubeclient.ServiceAccountsInterface

func (*KubeClient) Services

func (m *KubeClient) Services(namespace string) kubeclient.ServiceInterface

func (*KubeClient) SwaggerSchema

func (c *KubeClient) SwaggerSchema(version string) (*swagger.ApiDeclaration, error)

func (*KubeClient) ValidateComponents

func (c *KubeClient) ValidateComponents() (*api.ComponentStatusList, error)

type KubeNamespaceInterface

type KubeNamespaceInterface struct {
	mock.Mock
}

func (*KubeNamespaceInterface) Create

func (m *KubeNamespaceInterface) Create(item *api.Namespace) (*api.Namespace, error)

func (*KubeNamespaceInterface) Delete

func (m *KubeNamespaceInterface) Delete(name string) error

func (*KubeNamespaceInterface) Finalize

func (m *KubeNamespaceInterface) Finalize(item *api.Namespace) (*api.Namespace, error)

func (*KubeNamespaceInterface) Get

func (m *KubeNamespaceInterface) Get(name string) (*api.Namespace, error)

func (*KubeNamespaceInterface) List

func (*KubeNamespaceInterface) Status

func (m *KubeNamespaceInterface) Status(item *api.Namespace) (*api.Namespace, error)

func (*KubeNamespaceInterface) Update

func (m *KubeNamespaceInterface) Update(item *api.Namespace) (*api.Namespace, error)

func (*KubeNamespaceInterface) Watch

type KubePodInterface

type KubePodInterface struct {
	mock.Mock
}

func (*KubePodInterface) Bind

func (m *KubePodInterface) Bind(binding *api.Binding) error

func (*KubePodInterface) Create

func (m *KubePodInterface) Create(pod *api.Pod) (*api.Pod, error)

func (*KubePodInterface) Delete

func (m *KubePodInterface) Delete(name string, options *api.DeleteOptions) error

func (*KubePodInterface) Get

func (m *KubePodInterface) Get(name string) (*api.Pod, error)

func (*KubePodInterface) GetLogs

func (m *KubePodInterface) GetLogs(name string, opts *api.PodLogOptions) *restclient.Request

func (*KubePodInterface) List

func (m *KubePodInterface) List(opts api.ListOptions) (*api.PodList, error)

func (*KubePodInterface) Update

func (m *KubePodInterface) Update(pod *api.Pod) (*api.Pod, error)

func (*KubePodInterface) UpdateStatus

func (m *KubePodInterface) UpdateStatus(pod *api.Pod) (*api.Pod, error)

func (*KubePodInterface) Watch

type KubeServiceInterface

type KubeServiceInterface struct {
	mock.Mock
}

func (*KubeServiceInterface) Create

func (m *KubeServiceInterface) Create(srv *api.Service) (*api.Service, error)

func (*KubeServiceInterface) Delete

func (m *KubeServiceInterface) Delete(name string) error

func (*KubeServiceInterface) Get

func (m *KubeServiceInterface) Get(name string) (*api.Service, error)

func (*KubeServiceInterface) List

func (*KubeServiceInterface) ProxyGet

func (m *KubeServiceInterface) ProxyGet(scheme, name, port, path string, params map[string]string) restclient.ResponseWrapper

func (*KubeServiceInterface) Update

func (m *KubeServiceInterface) Update(srv *api.Service) (*api.Service, error)

func (*KubeServiceInterface) UpdateStatus

func (m *KubeServiceInterface) UpdateStatus(srv *api.Service) (*api.Service, error)

func (*KubeServiceInterface) Watch

type NetworkManager

type NetworkManager struct {
	mock.Mock
}

func (*NetworkManager) Connect

func (m *NetworkManager) Connect(network *types.VirtualNetwork, networkFQN string) error

func (*NetworkManager) DeleteConnections

func (m *NetworkManager) DeleteConnections(network *types.VirtualNetwork, policies map[string]string) error

func (*NetworkManager) DeleteFloatingIp

func (m *NetworkManager) DeleteFloatingIp(network *types.VirtualNetwork, resourceName string) error

func (*NetworkManager) DeleteFloatingIpPool

func (m *NetworkManager) DeleteFloatingIpPool(network *types.VirtualNetwork, cascade bool) error

func (*NetworkManager) DeleteNetwork

func (m *NetworkManager) DeleteNetwork(_a0 *types.VirtualNetwork) error

func (*NetworkManager) Disconnect

func (m *NetworkManager) Disconnect(networkFQN []string, targetCDN string) error

func (*NetworkManager) GetGatewayAddress

func (m *NetworkManager) GetGatewayAddress(network *types.VirtualNetwork) (string, error)

func (*NetworkManager) GetPublicNetwork

func (m *NetworkManager) GetPublicNetwork() *types.VirtualNetwork

func (*NetworkManager) LocateFloatingIp

func (m *NetworkManager) LocateFloatingIp(network *types.VirtualNetwork, resourceName string, address string) (*types.FloatingIp, error)

func (*NetworkManager) LocateFloatingIpPool

func (m *NetworkManager) LocateFloatingIpPool(network *types.VirtualNetwork) (*types.FloatingIpPool, error)

func (*NetworkManager) LocateNetwork

func (m *NetworkManager) LocateNetwork(project string, name string, subnet string) (*types.VirtualNetwork, error)

func (*NetworkManager) LookupFloatingIpPool

func (m *NetworkManager) LookupFloatingIpPool(network *types.VirtualNetwork) (*types.FloatingIpPool, error)

func (*NetworkManager) LookupNetwork

func (m *NetworkManager) LookupNetwork(projectName string, networkName string) (*types.VirtualNetwork, error)

func (*NetworkManager) ReleaseNetworkIfEmpty

func (m *NetworkManager) ReleaseNetworkIfEmpty(namespace string, name string) (bool, error)

type Store

type Store struct {
	mock.Mock
}

func (*Store) Add

func (m *Store) Add(obj interface{}) error

func (*Store) Delete

func (m *Store) Delete(obj interface{}) error

func (*Store) Get

func (m *Store) Get(obj interface{}) (interface{}, bool, error)

func (*Store) GetByKey

func (m *Store) GetByKey(key string) (interface{}, bool, error)

func (*Store) List

func (m *Store) List() []interface{}

func (*Store) ListKeys

func (m *Store) ListKeys() []string

func (*Store) Replace

func (m *Store) Replace(_a0 []interface{}, _a1 string) error

func (*Store) Update

func (m *Store) Update(obj interface{}) error

Jump to

Keyboard shortcuts

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