testclient

package
v1.5.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2017 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorClients added in v1.5.0

func NewErrorClients(err error) (client.Interface, kclientset.Interface)

func NewFixtureClients

func NewFixtureClients(objs ...runtime.Object) (client.Interface, kclientset.Interface)

NewFixtureClients returns mocks of the OpenShift and Kubernetes clients with data populated from provided path.

func ReadObjectsFromPath added in v1.5.0

func ReadObjectsFromPath(path, namespace string, decoder runtime.Decoder, typer runtime.ObjectTyper) ([]runtime.Object, error)

ReadObjectsFromPath reads objects from the specified file for testing.

Types

type Fake

type Fake struct {
	sync.RWMutex

	// ReactionChain is the list of reactors that will be attempted for every request in the order they are tried
	ReactionChain []core.Reactor
	// WatchReactionChain is the list of watch reactors that will be attempted for every request in the order they are tried
	WatchReactionChain []core.WatchReactor
	// contains filtered or unexported fields
}

Fake implements Interface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.

func NewSimpleFake

func NewSimpleFake(objects ...runtime.Object) *Fake

NewSimpleFake returns a client that will respond with the provided objects

func (*Fake) Actions

func (c *Fake) Actions() []core.Action

Actions returns a chronologically ordered slice fake actions called on the fake client

func (*Fake) AddReactor added in v1.0.7

func (c *Fake) AddReactor(verb, resource string, reaction core.ReactionFunc)

AddReactor appends a reactor to the end of the chain

func (*Fake) AddWatchReactor added in v1.0.7

func (c *Fake) AddWatchReactor(resource string, reaction core.WatchReactionFunc)

AddWatchReactor appends a reactor to the end of the chain

func (*Fake) AppliedClusterResourceQuotas added in v1.3.0

func (c *Fake) AppliedClusterResourceQuotas(namespace string) client.AppliedClusterResourceQuotaInterface

func (*Fake) BuildConfigs

func (c *Fake) BuildConfigs(namespace string) client.BuildConfigInterface

BuildConfigs provides a fake REST client for BuildConfigs

func (*Fake) BuildLogs

func (c *Fake) BuildLogs(namespace string) client.BuildLogsInterface

BuildLogs provides a fake REST client for BuildLogs

func (*Fake) Builds

func (c *Fake) Builds(namespace string) client.BuildInterface

Builds provides a fake REST client for Builds

func (*Fake) ClearActions added in v1.0.5

func (c *Fake) ClearActions()

ClearActions clears the history of actions called on the fake client

func (*Fake) ClusterNetwork

func (c *Fake) ClusterNetwork() client.ClusterNetworkInterface

ClusterNetwork provides a fake REST client for ClusterNetwork

func (*Fake) ClusterPolicies

func (c *Fake) ClusterPolicies() client.ClusterPolicyInterface

ClusterPolicies provides a fake REST client for ClusterPolicies

func (*Fake) ClusterPolicyBindings

func (c *Fake) ClusterPolicyBindings() client.ClusterPolicyBindingInterface

ClusterPolicyBindings provides a fake REST client for ClusterPolicyBindings

func (*Fake) ClusterResourceQuotas added in v1.3.0

func (c *Fake) ClusterResourceQuotas() client.ClusterResourceQuotaInterface

func (*Fake) ClusterRoleBindings

func (c *Fake) ClusterRoleBindings() client.ClusterRoleBindingInterface

ClusterRoleBindings provides a fake REST client for ClusterRoleBindings

func (*Fake) ClusterRoles

func (c *Fake) ClusterRoles() client.ClusterRoleInterface

ClusterRoles provides a fake REST client for ClusterRoles

func (*Fake) DeploymentConfigs

func (c *Fake) DeploymentConfigs(namespace string) client.DeploymentConfigInterface

DeploymentConfigs provides a fake REST client for DeploymentConfigs

func (*Fake) DeploymentLogs added in v1.0.7

func (c *Fake) DeploymentLogs(namespace string) client.DeploymentLogInterface

DeploymentLogs provides a fake REST client for DeploymentLogs

func (*Fake) EgressNetworkPolicies added in v1.3.0

func (c *Fake) EgressNetworkPolicies(namespace string) client.EgressNetworkPolicyInterface

EgressNetworkPolicies provides a fake REST client for EgressNetworkPolicies

func (*Fake) Groups added in v1.0.4

func (c *Fake) Groups() client.GroupInterface

Groups provides a fake REST client for Groups

func (*Fake) HostSubnets

func (c *Fake) HostSubnets() client.HostSubnetInterface

HostSubnets provides a fake REST client for HostSubnets

func (*Fake) Identities

func (c *Fake) Identities() client.IdentityInterface

Identities provides a fake REST client for Identities

func (*Fake) ImageSignatures added in v1.3.0

func (c *Fake) ImageSignatures() client.ImageSignatureInterface

ImageSignatures provides a fake REST client for ImageSignatures

func (*Fake) ImageStreamImages

func (c *Fake) ImageStreamImages(namespace string) client.ImageStreamImageInterface

ImageStreamImages provides a fake REST client for ImageStreamImages

func (*Fake) ImageStreamMappings

func (c *Fake) ImageStreamMappings(namespace string) client.ImageStreamMappingInterface

ImageStreamMappings provides a fake REST client for ImageStreamMappings

func (*Fake) ImageStreamSecrets added in v1.1.2

func (c *Fake) ImageStreamSecrets(namespace string) client.ImageStreamSecretInterface

ImageStreams provides a fake REST client for ImageStreams

func (*Fake) ImageStreamTags

func (c *Fake) ImageStreamTags(namespace string) client.ImageStreamTagInterface

ImageStreamTags provides a fake REST client for ImageStreamTags

func (*Fake) ImageStreams

func (c *Fake) ImageStreams(namespace string) client.ImageStreamInterface

ImageStreams provides a fake REST client for ImageStreams

func (*Fake) Images

func (c *Fake) Images() client.ImageInterface

Images provides a fake REST client for Images

func (*Fake) ImpersonateLocalSubjectAccessReviews added in v1.0.5

func (c *Fake) ImpersonateLocalSubjectAccessReviews(namespace, token string) client.LocalSubjectAccessReviewInterface

ImpersonateSubjectAccessReviews provides a fake REST client for SubjectAccessReviews

func (*Fake) ImpersonateSubjectAccessReviews added in v1.0.5

func (c *Fake) ImpersonateSubjectAccessReviews(token string) client.SubjectAccessReviewInterface

ImpersonateSubjectAccessReviews provides a fake REST client for SubjectAccessReviews

func (*Fake) Invokes

func (c *Fake) Invokes(action core.Action, defaultReturnObj runtime.Object) (runtime.Object, error)

Invokes records the provided Action and then invokes the ReactFn (if provided). defaultReturnObj is expected to be of the same type a normal call would return.

func (*Fake) InvokesWatch added in v1.0.7

func (c *Fake) InvokesWatch(action core.Action) (watch.Interface, error)

InvokesWatch records the provided Action and then invokes the ReactFn (if provided).

func (*Fake) LocalResourceAccessReviews added in v1.0.5

func (c *Fake) LocalResourceAccessReviews(namespace string) client.LocalResourceAccessReviewInterface

LocalResourceAccessReviews provides a fake REST client for ResourceAccessReviews

func (*Fake) LocalSubjectAccessReviews added in v1.0.5

func (c *Fake) LocalSubjectAccessReviews(namespace string) client.LocalSubjectAccessReviewInterface

LocalSubjectAccessReviews provides a fake REST client for SubjectAccessReviews

func (*Fake) NetNamespaces added in v1.0.5

func (c *Fake) NetNamespaces() client.NetNamespaceInterface

NetNamespaces provides a fake REST client for NetNamespaces

func (*Fake) OAuthAccessTokens

func (c *Fake) OAuthAccessTokens() client.OAuthAccessTokenInterface

func (*Fake) OAuthAuthorizeTokens added in v1.3.0

func (c *Fake) OAuthAuthorizeTokens() client.OAuthAuthorizeTokenInterface

func (*Fake) OAuthClientAuthorizations added in v1.3.0

func (c *Fake) OAuthClientAuthorizations() client.OAuthClientAuthorizationInterface

func (*Fake) OAuthClients added in v1.3.0

func (c *Fake) OAuthClients() client.OAuthClientInterface

func (*Fake) Policies

func (c *Fake) Policies(namespace string) client.PolicyInterface

Policies provides a fake REST client for Policies

func (*Fake) PolicyBindings

func (c *Fake) PolicyBindings(namespace string) client.PolicyBindingInterface

PolicyBindings provides a fake REST client for PolicyBindings

func (*Fake) PrependReactor added in v1.0.7

func (c *Fake) PrependReactor(verb, resource string, reaction core.ReactionFunc)

PrependReactor adds a reactor to the beginning of the chain

func (*Fake) PrependWatchReactor added in v1.5.0

func (c *Fake) PrependWatchReactor(resource string, reaction core.WatchReactionFunc)

PrependWatchReactor adds a reactor to the beginning of the chain.

func (*Fake) ProjectRequests

func (c *Fake) ProjectRequests() client.ProjectRequestInterface

ProjectRequests provides a fake REST client for ProjectRequests

func (*Fake) Projects

func (c *Fake) Projects() client.ProjectInterface

Projects provides a fake REST client for Projects

func (*Fake) ResourceAccessReviews

func (c *Fake) ResourceAccessReviews() client.ResourceAccessReviewInterface

ResourceAccessReviews provides a fake REST client for ClusterResourceAccessReviews

func (*Fake) RoleBindingRestrictions added in v1.4.0

func (c *Fake) RoleBindingRestrictions(namespace string) client.RoleBindingRestrictionInterface

func (*Fake) RoleBindings

func (c *Fake) RoleBindings(namespace string) client.RoleBindingInterface

RoleBindings provides a fake REST client for RoleBindings

func (*Fake) Roles

func (c *Fake) Roles(namespace string) client.RoleInterface

Roles provides a fake REST client for Roles

func (*Fake) Routes

func (c *Fake) Routes(namespace string) client.RouteInterface

Routes provides a fake REST client for Routes

func (*Fake) SelfSubjectRulesReviews added in v1.3.0

func (c *Fake) SelfSubjectRulesReviews(namespace string) client.SelfSubjectRulesReviewInterface

func (*Fake) SubjectAccessReviews

func (c *Fake) SubjectAccessReviews() client.SubjectAccessReviewInterface

SubjectAccessReviews provides a fake REST client for ClusterSubjectAccessReviews

func (*Fake) SubjectRulesReviews added in v1.4.0

func (c *Fake) SubjectRulesReviews(namespace string) client.SubjectRulesReviewInterface

func (*Fake) TemplateConfigs

func (c *Fake) TemplateConfigs(namespace string) client.TemplateConfigInterface

TemplateConfigs provides a fake REST client for TemplateConfigs

func (*Fake) Templates

func (c *Fake) Templates(namespace string) client.TemplateInterface

Templates provides a fake REST client for Templates

func (*Fake) UserIdentityMappings

func (c *Fake) UserIdentityMappings() client.UserIdentityMappingInterface

UserIdentityMappings provides a fake REST client for UserIdentityMappings

func (*Fake) Users

func (c *Fake) Users() client.UserInterface

Users provides a fake REST client for Users

type FakeAppliedClusterResourceQuotas added in v1.3.0

type FakeAppliedClusterResourceQuotas struct {
	Fake      *Fake
	Namespace string
}

func (*FakeAppliedClusterResourceQuotas) Get added in v1.3.0

func (*FakeAppliedClusterResourceQuotas) List added in v1.3.0

type FakeBuildConfigs

type FakeBuildConfigs struct {
	Fake      *Fake
	Namespace string
}

FakeBuildConfigs implements BuildConfigInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeBuildConfigs) Create

func (*FakeBuildConfigs) Delete

func (c *FakeBuildConfigs) Delete(name string) error

func (*FakeBuildConfigs) Get

func (*FakeBuildConfigs) Instantiate

func (c *FakeBuildConfigs) Instantiate(request *buildapi.BuildRequest) (result *buildapi.Build, err error)

func (*FakeBuildConfigs) InstantiateBinary added in v1.0.7

func (c *FakeBuildConfigs) InstantiateBinary(request *buildapi.BinaryBuildRequestOptions, r io.Reader) (result *buildapi.Build, err error)

func (*FakeBuildConfigs) List

func (*FakeBuildConfigs) Update

func (*FakeBuildConfigs) Watch

func (*FakeBuildConfigs) WebHookURL

func (c *FakeBuildConfigs) WebHookURL(name string, trigger *buildapi.BuildTriggerPolicy) (*url.URL, error)

type FakeBuildLogs

type FakeBuildLogs struct {
	Fake      *Fake
	Namespace string
}

FakeBuildLogs implements BuildLogsInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeBuildLogs) Get

type FakeBuilds

type FakeBuilds struct {
	Fake      *Fake
	Namespace string
}

FakeBuilds implements BuildInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeBuilds) Clone

func (c *FakeBuilds) Clone(request *buildapi.BuildRequest) (result *buildapi.Build, err error)

func (*FakeBuilds) Create

func (c *FakeBuilds) Create(inObj *buildapi.Build) (*buildapi.Build, error)

func (*FakeBuilds) Delete

func (c *FakeBuilds) Delete(name string) error

func (*FakeBuilds) Get

func (c *FakeBuilds) Get(name string) (*buildapi.Build, error)

func (*FakeBuilds) List

func (c *FakeBuilds) List(opts kapi.ListOptions) (*buildapi.BuildList, error)

func (*FakeBuilds) Update

func (c *FakeBuilds) Update(inObj *buildapi.Build) (*buildapi.Build, error)

func (*FakeBuilds) UpdateDetails added in v1.1.1

func (c *FakeBuilds) UpdateDetails(inObj *buildapi.Build) (*buildapi.Build, error)

func (*FakeBuilds) Watch

func (c *FakeBuilds) Watch(opts kapi.ListOptions) (watch.Interface, error)

type FakeClusterNetwork

type FakeClusterNetwork struct {
	Fake *Fake
}

FakeClusterNetwork implements ClusterNetworkInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeClusterNetwork) Create

func (*FakeClusterNetwork) Get

func (*FakeClusterNetwork) Update added in v1.0.6

type FakeClusterPolicies

type FakeClusterPolicies struct {
	Fake *Fake
}

FakeClusterPolicies implements ClusterPolicyInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeClusterPolicies) Delete

func (c *FakeClusterPolicies) Delete(name string) error

func (*FakeClusterPolicies) Get

func (*FakeClusterPolicies) List

func (*FakeClusterPolicies) Watch

type FakeClusterPolicyBindings

type FakeClusterPolicyBindings struct {
	Fake *Fake
}

FakeClusterPolicyBindings implements ClusterPolicyBindingInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeClusterPolicyBindings) Delete

func (c *FakeClusterPolicyBindings) Delete(name string) error

func (*FakeClusterPolicyBindings) Get

func (*FakeClusterPolicyBindings) List

func (*FakeClusterPolicyBindings) Watch

type FakeClusterResourceAccessReviews

type FakeClusterResourceAccessReviews struct {
	Fake *Fake
}

type FakeClusterResourceQuotas added in v1.3.0

type FakeClusterResourceQuotas struct {
	Fake *Fake
}

FakeClusterResourceQuotas implements ClusterResourceQuotaInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeClusterResourceQuotas) Create added in v1.3.0

func (*FakeClusterResourceQuotas) Delete added in v1.3.0

func (c *FakeClusterResourceQuotas) Delete(name string) error

func (*FakeClusterResourceQuotas) Get added in v1.3.0

func (*FakeClusterResourceQuotas) List added in v1.3.0

func (*FakeClusterResourceQuotas) Update added in v1.3.0

func (*FakeClusterResourceQuotas) UpdateStatus added in v1.3.0

func (*FakeClusterResourceQuotas) Watch added in v1.3.0

type FakeClusterRoleBindings

type FakeClusterRoleBindings struct {
	Fake *Fake
}

FakeClusterRoleBindings implements ClusterRoleBindingInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeClusterRoleBindings) Create

func (*FakeClusterRoleBindings) Delete

func (c *FakeClusterRoleBindings) Delete(name string) error

func (*FakeClusterRoleBindings) Get

func (*FakeClusterRoleBindings) List

func (*FakeClusterRoleBindings) Update

type FakeClusterRoles

type FakeClusterRoles struct {
	Fake *Fake
}

FakeClusterRoles implements ClusterRoleInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeClusterRoles) Create

func (*FakeClusterRoles) Delete

func (c *FakeClusterRoles) Delete(name string) error

func (*FakeClusterRoles) Get

func (*FakeClusterRoles) List

func (*FakeClusterRoles) Update

type FakeClusterSubjectAccessReviews

type FakeClusterSubjectAccessReviews struct {
	Fake *Fake
}

FakeClusterSubjectAccessReviews implements the ClusterSubjectAccessReviews interface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

type FakeDeploymentConfigs

type FakeDeploymentConfigs struct {
	Fake      *Fake
	Namespace string
}

FakeDeploymentConfigs implements DeploymentConfigInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeDeploymentConfigs) Create

func (*FakeDeploymentConfigs) Delete

func (c *FakeDeploymentConfigs) Delete(name string) error

func (*FakeDeploymentConfigs) Generate

func (*FakeDeploymentConfigs) Get

func (*FakeDeploymentConfigs) GetScale added in v1.0.8

func (c *FakeDeploymentConfigs) GetScale(name string) (*extensions.Scale, error)

func (*FakeDeploymentConfigs) Instantiate added in v1.4.0

func (*FakeDeploymentConfigs) List

func (*FakeDeploymentConfigs) Rollback

func (*FakeDeploymentConfigs) RollbackDeprecated added in v1.3.0

func (c *FakeDeploymentConfigs) RollbackDeprecated(inObj *deployapi.DeploymentConfigRollback) (result *deployapi.DeploymentConfig, err error)

func (*FakeDeploymentConfigs) Update

func (*FakeDeploymentConfigs) UpdateScale added in v1.0.8

func (c *FakeDeploymentConfigs) UpdateScale(inObj *extensions.Scale) (*extensions.Scale, error)

func (*FakeDeploymentConfigs) UpdateStatus added in v1.3.0

func (*FakeDeploymentConfigs) Watch

type FakeDeploymentLogs added in v1.0.7

type FakeDeploymentLogs struct {
	Fake      *Fake
	Namespace string
}

FakeDeploymentLogs implements DeploymentLogsInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeDeploymentLogs) Get added in v1.0.7

Get builds and returns a buildLog request

type FakeEgressNetworkPolicy added in v1.3.0

type FakeEgressNetworkPolicy struct {
	Fake      *Fake
	Namespace string
}

FakeEgressNetworkPolicy implements EgressNetworkPolicyInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeEgressNetworkPolicy) Create added in v1.3.0

func (*FakeEgressNetworkPolicy) Delete added in v1.3.0

func (c *FakeEgressNetworkPolicy) Delete(name string) error

func (*FakeEgressNetworkPolicy) Get added in v1.3.0

func (*FakeEgressNetworkPolicy) List added in v1.3.0

func (*FakeEgressNetworkPolicy) Update added in v1.3.0

func (*FakeEgressNetworkPolicy) Watch added in v1.3.0

type FakeGroups added in v1.0.4

type FakeGroups struct {
	Fake *Fake
}

FakeGroups implements GroupsInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeGroups) Create added in v1.0.4

func (c *FakeGroups) Create(inObj *userapi.Group) (*userapi.Group, error)

func (*FakeGroups) Delete added in v1.0.4

func (c *FakeGroups) Delete(name string) error

func (*FakeGroups) Get added in v1.0.4

func (c *FakeGroups) Get(name string) (*userapi.Group, error)

func (*FakeGroups) List added in v1.0.4

func (c *FakeGroups) List(opts kapi.ListOptions) (*userapi.GroupList, error)

func (*FakeGroups) Update added in v1.0.4

func (c *FakeGroups) Update(inObj *userapi.Group) (*userapi.Group, error)

func (*FakeGroups) Watch added in v1.3.0

func (c *FakeGroups) Watch(opts kapi.ListOptions) (watch.Interface, error)

type FakeHostSubnet

type FakeHostSubnet struct {
	Fake *Fake
}

FakeHostSubnet implements HostSubnetInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeHostSubnet) Create

func (c *FakeHostSubnet) Create(inObj *sdnapi.HostSubnet) (*sdnapi.HostSubnet, error)

func (*FakeHostSubnet) Delete

func (c *FakeHostSubnet) Delete(name string) error

func (*FakeHostSubnet) Get

func (c *FakeHostSubnet) Get(name string) (*sdnapi.HostSubnet, error)

func (*FakeHostSubnet) List

func (*FakeHostSubnet) Update added in v1.3.0

func (c *FakeHostSubnet) Update(inObj *sdnapi.HostSubnet) (*sdnapi.HostSubnet, error)

func (*FakeHostSubnet) Watch

func (c *FakeHostSubnet) Watch(opts kapi.ListOptions) (watch.Interface, error)

type FakeIdentities

type FakeIdentities struct {
	Fake *Fake
}

FakeIdentities implements IdentitiesInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeIdentities) Create

func (c *FakeIdentities) Create(inObj *userapi.Identity) (*userapi.Identity, error)

func (*FakeIdentities) Delete added in v1.1.1

func (c *FakeIdentities) Delete(name string) error

func (*FakeIdentities) Get

func (c *FakeIdentities) Get(name string) (*userapi.Identity, error)

func (*FakeIdentities) List

func (*FakeIdentities) Update

func (c *FakeIdentities) Update(inObj *userapi.Identity) (*userapi.Identity, error)

type FakeImageSignatures added in v1.3.0

type FakeImageSignatures struct {
	Fake *Fake
}

FakeImageSignatures implements ImageSignatureInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeImageSignatures) Create added in v1.3.0

func (*FakeImageSignatures) Delete added in v1.3.0

func (c *FakeImageSignatures) Delete(name string) error

type FakeImageStreamImages

type FakeImageStreamImages struct {
	Fake      *Fake
	Namespace string
}

FakeImageStreamImages implements ImageStreamImageInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeImageStreamImages) Get

func (c *FakeImageStreamImages) Get(repo, imageID string) (*imageapi.ImageStreamImage, error)

type FakeImageStreamMappings

type FakeImageStreamMappings struct {
	Fake      *Fake
	Namespace string
}

FakeImageStreamMappings implements ImageStreamMappingInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeImageStreamMappings) Create

type FakeImageStreamSecrets added in v1.1.2

type FakeImageStreamSecrets struct {
	Fake      *Fake
	Namespace string
}

FakeImageStreamSecrets implements ImageStreamSecretInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeImageStreamSecrets) Secrets added in v1.1.2

func (c *FakeImageStreamSecrets) Secrets(name string, options kapi.ListOptions) (*kapi.SecretList, error)

type FakeImageStreamTags

type FakeImageStreamTags struct {
	Fake      *Fake
	Namespace string
}

FakeImageStreamTags implements ImageStreamTagInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeImageStreamTags) Create added in v1.3.0

func (*FakeImageStreamTags) Delete

func (c *FakeImageStreamTags) Delete(name, tag string) error

func (*FakeImageStreamTags) Get

func (c *FakeImageStreamTags) Get(name, tag string) (*imageapi.ImageStreamTag, error)

func (*FakeImageStreamTags) Update added in v1.1.3

type FakeImageStreams

type FakeImageStreams struct {
	Fake      *Fake
	Namespace string
}

FakeImageStreams implements ImageStreamInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeImageStreams) Create

func (*FakeImageStreams) Delete

func (c *FakeImageStreams) Delete(name string) error

func (*FakeImageStreams) Get

func (*FakeImageStreams) Import added in v1.1.2

func (*FakeImageStreams) List

func (*FakeImageStreams) Update

func (*FakeImageStreams) UpdateStatus

func (c *FakeImageStreams) UpdateStatus(inObj *imageapi.ImageStream) (result *imageapi.ImageStream, err error)

func (*FakeImageStreams) Watch

type FakeImages

type FakeImages struct {
	Fake *Fake
}

FakeImages implements ImageInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeImages) Create

func (c *FakeImages) Create(inObj *imageapi.Image) (*imageapi.Image, error)

func (*FakeImages) Delete

func (c *FakeImages) Delete(name string) error

func (*FakeImages) Get

func (c *FakeImages) Get(name string) (*imageapi.Image, error)

func (*FakeImages) List

func (c *FakeImages) List(opts kapi.ListOptions) (*imageapi.ImageList, error)

func (*FakeImages) Update added in v1.3.0

func (c *FakeImages) Update(inObj *imageapi.Image) (*imageapi.Image, error)

type FakeLocalResourceAccessReviews added in v1.0.5

type FakeLocalResourceAccessReviews struct {
	Fake      *Fake
	Namespace string
}

func (*FakeLocalResourceAccessReviews) Create added in v1.0.5

type FakeLocalSubjectAccessReviews added in v1.0.5

type FakeLocalSubjectAccessReviews struct {
	Fake      *Fake
	Namespace string
}

func (*FakeLocalSubjectAccessReviews) Create added in v1.0.5

type FakeNetNamespace added in v1.0.5

type FakeNetNamespace struct {
	Fake *Fake
}

FakeNetNamespace implements NetNamespaceInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeNetNamespace) Create added in v1.0.5

func (*FakeNetNamespace) Delete added in v1.0.5

func (c *FakeNetNamespace) Delete(name string) error

func (*FakeNetNamespace) Get added in v1.0.5

func (c *FakeNetNamespace) Get(name string) (*sdnapi.NetNamespace, error)

func (*FakeNetNamespace) List added in v1.0.5

func (*FakeNetNamespace) Update added in v1.0.7

func (*FakeNetNamespace) Watch added in v1.0.5

type FakeOAuthAccessTokens

type FakeOAuthAccessTokens struct {
	Fake *Fake
}

FakeOAuthAccessTokens implements OAuthAccessTokenInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeOAuthAccessTokens) Create added in v1.3.0

func (*FakeOAuthAccessTokens) Delete

func (c *FakeOAuthAccessTokens) Delete(name string) error

func (*FakeOAuthAccessTokens) Get added in v1.3.0

Get returns information about a particular image and error if one occurs.

func (*FakeOAuthAccessTokens) List added in v1.5.0

type FakeOAuthAuthorizeTokens added in v1.3.0

type FakeOAuthAuthorizeTokens struct {
	Fake *Fake
}

func (*FakeOAuthAuthorizeTokens) Create added in v1.3.0

func (*FakeOAuthAuthorizeTokens) Delete added in v1.3.0

func (c *FakeOAuthAuthorizeTokens) Delete(name string) error

type FakeOAuthClient added in v1.3.0

type FakeOAuthClient struct {
	Fake *Fake
}

func (*FakeOAuthClient) Create added in v1.3.0

func (*FakeOAuthClient) Delete added in v1.3.0

func (c *FakeOAuthClient) Delete(name string) error

func (*FakeOAuthClient) Get added in v1.3.0

func (c *FakeOAuthClient) Get(name string) (*oauthapi.OAuthClient, error)

func (*FakeOAuthClient) List added in v1.3.0

func (*FakeOAuthClient) Update added in v1.4.0

func (*FakeOAuthClient) Watch added in v1.3.0

type FakeOAuthClientAuthorization added in v1.3.0

type FakeOAuthClientAuthorization struct {
	Fake *Fake
}

func (*FakeOAuthClientAuthorization) Create added in v1.3.0

func (*FakeOAuthClientAuthorization) Delete added in v1.3.0

func (c *FakeOAuthClientAuthorization) Delete(name string) error

func (*FakeOAuthClientAuthorization) Get added in v1.3.0

func (*FakeOAuthClientAuthorization) List added in v1.3.0

func (*FakeOAuthClientAuthorization) Update added in v1.3.0

func (*FakeOAuthClientAuthorization) Watch added in v1.3.0

type FakePolicies

type FakePolicies struct {
	Fake      *Fake
	Namespace string
}

FakePolicies implements PolicyInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakePolicies) Delete

func (c *FakePolicies) Delete(name string) error

func (*FakePolicies) Get

func (c *FakePolicies) Get(name string) (*authorizationapi.Policy, error)

func (*FakePolicies) List

func (*FakePolicies) Watch

func (c *FakePolicies) Watch(opts kapi.ListOptions) (watch.Interface, error)

type FakePolicyBindings

type FakePolicyBindings struct {
	Fake      *Fake
	Namespace string
}

FakePolicyBindings implements PolicyBindingInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakePolicyBindings) Create

func (*FakePolicyBindings) Delete

func (c *FakePolicyBindings) Delete(name string) error

func (*FakePolicyBindings) Get

func (*FakePolicyBindings) List

func (*FakePolicyBindings) Watch

type FakeProjectRequests

type FakeProjectRequests struct {
	Fake *Fake
}

FakeProjectRequests implements ProjectInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeProjectRequests) Create

func (*FakeProjectRequests) List

type FakeProjects

type FakeProjects struct {
	Fake *Fake
}

FakeProjects implements ProjectInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeProjects) Create

func (c *FakeProjects) Create(inObj *projectapi.Project) (*projectapi.Project, error)

func (*FakeProjects) Delete

func (c *FakeProjects) Delete(name string) error

func (*FakeProjects) Get

func (c *FakeProjects) Get(name string) (*projectapi.Project, error)

func (*FakeProjects) List

func (*FakeProjects) Update

func (c *FakeProjects) Update(inObj *projectapi.Project) (*projectapi.Project, error)

func (*FakeProjects) Watch added in v1.3.0

func (c *FakeProjects) Watch(opts kapi.ListOptions) (watch.Interface, error)

type FakeRoleBindingRestrictions added in v1.4.0

type FakeRoleBindingRestrictions struct {
	Fake      *Fake
	Namespace string
}

FakeRoleBindingRestrictions implements RoleBindingRestrictionInterface. It is meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeRoleBindingRestrictions) Create added in v1.4.0

func (*FakeRoleBindingRestrictions) Delete added in v1.4.0

func (c *FakeRoleBindingRestrictions) Delete(name string) error

func (*FakeRoleBindingRestrictions) Get added in v1.4.0

func (*FakeRoleBindingRestrictions) List added in v1.4.0

func (*FakeRoleBindingRestrictions) Update added in v1.4.0

func (*FakeRoleBindingRestrictions) Watch added in v1.4.0

type FakeRoleBindings

type FakeRoleBindings struct {
	Fake      *Fake
	Namespace string
}

FakeRoleBindings implements RoleBindingInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeRoleBindings) Create

func (*FakeRoleBindings) Delete

func (c *FakeRoleBindings) Delete(name string) error

func (*FakeRoleBindings) Get

func (*FakeRoleBindings) List

func (*FakeRoleBindings) Update

type FakeRoles

type FakeRoles struct {
	Fake      *Fake
	Namespace string
}

FakeRoles implements RoleInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeRoles) Create

func (c *FakeRoles) Create(inObj *authorizationapi.Role) (*authorizationapi.Role, error)

func (*FakeRoles) Delete

func (c *FakeRoles) Delete(name string) error

func (*FakeRoles) Get

func (c *FakeRoles) Get(name string) (*authorizationapi.Role, error)

func (*FakeRoles) List

func (*FakeRoles) Update

func (c *FakeRoles) Update(inObj *authorizationapi.Role) (*authorizationapi.Role, error)

type FakeRoutes

type FakeRoutes struct {
	Fake      *Fake
	Namespace string
}

FakeRoutes implements RouteInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeRoutes) Create

func (c *FakeRoutes) Create(inObj *routeapi.Route) (*routeapi.Route, error)

func (*FakeRoutes) Delete

func (c *FakeRoutes) Delete(name string) error

func (*FakeRoutes) Get

func (c *FakeRoutes) Get(name string) (*routeapi.Route, error)

func (*FakeRoutes) List

func (c *FakeRoutes) List(opts kapi.ListOptions) (*routeapi.RouteList, error)

func (*FakeRoutes) Update

func (c *FakeRoutes) Update(inObj *routeapi.Route) (*routeapi.Route, error)

func (*FakeRoutes) UpdateStatus added in v1.1.3

func (c *FakeRoutes) UpdateStatus(inObj *routeapi.Route) (*routeapi.Route, error)

func (*FakeRoutes) Watch

func (c *FakeRoutes) Watch(opts kapi.ListOptions) (watch.Interface, error)

type FakeSelfSubjectRulesReviews added in v1.3.0

type FakeSelfSubjectRulesReviews struct {
	Fake      *Fake
	Namespace string
}

func (*FakeSelfSubjectRulesReviews) Create added in v1.3.0

type FakeSubjectRulesReviews added in v1.4.0

type FakeSubjectRulesReviews struct {
	Fake      *Fake
	Namespace string
}

func (*FakeSubjectRulesReviews) Create added in v1.4.0

type FakeTemplateConfigs

type FakeTemplateConfigs struct {
	Fake      *Fake
	Namespace string
}

FakeTemplateConfigs implements TemplateConfigsInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeTemplateConfigs) Create

type FakeTemplates

type FakeTemplates struct {
	Fake      *Fake
	Namespace string
}

FakeTemplates implements TemplateInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeTemplates) Create

func (*FakeTemplates) Delete

func (c *FakeTemplates) Delete(name string) error

func (*FakeTemplates) Get

func (c *FakeTemplates) Get(name string) (*templateapi.Template, error)

func (*FakeTemplates) List

func (*FakeTemplates) Update

func (*FakeTemplates) Watch

func (c *FakeTemplates) Watch(opts kapi.ListOptions) (watch.Interface, error)

type FakeUserIdentityMappings

type FakeUserIdentityMappings struct {
	Fake *Fake
}

FakeUserIdentityMappings implements UserIdentityMappingInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeUserIdentityMappings) Create

func (*FakeUserIdentityMappings) Delete

func (c *FakeUserIdentityMappings) Delete(name string) error

func (*FakeUserIdentityMappings) Get

func (*FakeUserIdentityMappings) Update

type FakeUsers

type FakeUsers struct {
	Fake *Fake
}

FakeUsers implements UsersInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func (*FakeUsers) Create

func (c *FakeUsers) Create(inObj *userapi.User) (*userapi.User, error)

func (*FakeUsers) Delete added in v1.1.1

func (c *FakeUsers) Delete(name string) error

func (*FakeUsers) Get

func (c *FakeUsers) Get(name string) (*userapi.User, error)

func (*FakeUsers) List

func (c *FakeUsers) List(opts kapi.ListOptions) (*userapi.UserList, error)

func (*FakeUsers) Update

func (c *FakeUsers) Update(inObj *userapi.User) (*userapi.User, error)

func (*FakeUsers) Watch added in v1.3.0

func (c *FakeUsers) Watch(opts kapi.ListOptions) (watch.Interface, error)

Jump to

Keyboard shortcuts

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