testclient

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2015 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFixtureClients

NewFixtureClients returns mocks of the OpenShift and Kubernetes clients

Types

type Fake added in v0.5.3

type Fake struct {
	// Fake by default keeps a simple list of the methods that have been called.
	Actions []FakeAction
	Err     error
	// ReactFn is an optional function that will be invoked with the provided action
	// and return a response.
	ReactFn ktestclient.ReactionFunc
}

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 added in v0.5.4

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

NewSimpleFake returns a client that will respond with the provided objects

func (*Fake) BuildConfigs added in v0.5.3

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

BuildConfigs provides a fake REST client for BuildConfigs

func (*Fake) BuildLogs added in v0.5.3

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

BuildLogs provides a fake REST client for BuildLogs

func (*Fake) Builds added in v0.5.3

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

Builds provides a fake REST client for Builds

func (*Fake) ClusterNetwork added in v0.5.3

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

ClusterNetwork provides a fake REST client for ClusterNetwork

func (*Fake) ClusterPolicies added in v0.5.3

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

ClusterPolicies provides a fake REST client for ClusterPolicies

func (*Fake) ClusterPolicyBindings added in v0.5.3

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

ClusterPolicyBindings provides a fake REST client for ClusterPolicyBindings

func (*Fake) ClusterResourceAccessReviews added in v0.5.3

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

ClusterResourceAccessReviews provides a fake REST client for ClusterResourceAccessReviews

func (*Fake) ClusterRoleBindings added in v0.5.3

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

ClusterRoleBindings provides a fake REST client for ClusterRoleBindings

func (*Fake) ClusterRoles added in v0.5.3

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

ClusterRoles provides a fake REST client for ClusterRoles

func (*Fake) ClusterSubjectAccessReviews added in v0.5.3

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

ClusterSubjectAccessReviews provides a fake REST client for ClusterSubjectAccessReviews

func (*Fake) DeploymentConfigs added in v0.5.3

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

DeploymentConfigs provides a fake REST client for DeploymentConfigs

func (*Fake) HostSubnets added in v0.5.3

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

HostSubnets provides a fake REST client for HostSubnets

func (*Fake) Identities added in v0.5.3

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

Identities provides a fake REST client for Identities

func (*Fake) ImageStreamImages added in v0.5.3

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

ImageStreamImages provides a fake REST client for ImageStreamImages

func (*Fake) ImageStreamMappings added in v0.5.3

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

ImageStreamMappings provides a fake REST client for ImageStreamMappings

func (*Fake) ImageStreamTags added in v0.5.3

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

ImageStreamTags provides a fake REST client for ImageStreamTags

func (*Fake) ImageStreams added in v0.5.3

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

ImageStreams provides a fake REST client for ImageStreams

func (*Fake) Images added in v0.5.3

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

Images provides a fake REST client for Images

func (*Fake) Invokes added in v0.5.3

func (c *Fake) Invokes(action FakeAction, obj runtime.Object) (runtime.Object, error)

Invokes registers the passed fake action and reacts on it if a ReactFn has been defined

func (*Fake) OAuthAccessTokens added in v0.5.3

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

OAuthAccessTokens provides a fake REST client for OAuthAccessTokens

func (*Fake) Policies added in v0.5.3

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

Policies provides a fake REST client for Policies

func (*Fake) PolicyBindings added in v0.5.3

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

PolicyBindings provides a fake REST client for PolicyBindings

func (*Fake) ProjectRequests added in v0.5.3

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

ProjectRequests provides a fake REST client for ProjectRequests

func (*Fake) Projects added in v0.5.3

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

Projects provides a fake REST client for Projects

func (*Fake) ResourceAccessReviews added in v0.5.3

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

ResourceAccessReviews provides a fake REST client for ResourceAccessReviews

func (*Fake) RoleBindings added in v0.5.3

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

RoleBindings provides a fake REST client for RoleBindings

func (*Fake) Roles added in v0.5.3

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

Roles provides a fake REST client for Roles

func (*Fake) Routes added in v0.5.3

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

Routes provides a fake REST client for Routes

func (*Fake) SubjectAccessReviews added in v0.5.3

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

SubjectAccessReviews provides a fake REST client for SubjectAccessReviews

func (*Fake) TemplateConfigs added in v0.5.3

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

TemplateConfigs provides a fake REST client for TemplateConfigs

func (*Fake) Templates added in v0.5.3

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

Templates provides a fake REST client for Templates

func (*Fake) UserIdentityMappings added in v0.5.3

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

UserIdentityMappings provides a fake REST client for UserIdentityMappings

func (*Fake) Users added in v0.5.3

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

Users provides a fake REST client for Users

type FakeAction added in v0.5.3

type FakeAction ktestclient.FakeAction

FakeAction is a wrapper around the Kubernetes FakeAction. Used for faking various actions on resources.

type FakeBuildConfigs added in v0.5.3

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 added in v0.5.3

func (*FakeBuildConfigs) Delete added in v0.5.3

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

func (*FakeBuildConfigs) Get added in v0.5.3

func (*FakeBuildConfigs) Instantiate added in v0.5.3

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

func (*FakeBuildConfigs) List added in v0.5.3

func (*FakeBuildConfigs) Update added in v0.5.3

func (*FakeBuildConfigs) Watch added in v0.5.3

func (c *FakeBuildConfigs) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)

func (*FakeBuildConfigs) WebHookURL added in v0.5.3

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

type FakeBuildLogs added in v0.5.3

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 added in v0.5.3

Get builds and returns a buildLog request

type FakeBuilds added in v0.5.3

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 added in v0.5.3

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

func (*FakeBuilds) Create added in v0.5.3

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

func (*FakeBuilds) Delete added in v0.5.3

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

func (*FakeBuilds) Get added in v0.5.3

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

func (*FakeBuilds) List added in v0.5.3

func (c *FakeBuilds) List(label labels.Selector, field fields.Selector) (*buildapi.BuildList, error)

func (*FakeBuilds) Update added in v0.5.3

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

func (*FakeBuilds) Watch added in v0.5.3

func (c *FakeBuilds) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)

type FakeClusterNetwork added in v0.5.3

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 added in v0.5.3

func (*FakeClusterNetwork) Get added in v0.5.3

type FakeClusterPolicies added in v0.5.3

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 added in v0.5.3

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

func (*FakeClusterPolicies) Get added in v0.5.3

func (*FakeClusterPolicies) List added in v0.5.3

func (*FakeClusterPolicies) Watch added in v0.5.3

func (c *FakeClusterPolicies) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)

type FakeClusterPolicyBindings added in v0.5.3

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) Create added in v0.5.3

func (*FakeClusterPolicyBindings) Delete added in v0.5.3

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

func (*FakeClusterPolicyBindings) Get added in v0.5.3

func (*FakeClusterPolicyBindings) List added in v0.5.3

func (*FakeClusterPolicyBindings) Watch added in v0.5.3

func (c *FakeClusterPolicyBindings) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)

type FakeClusterResourceAccessReviews added in v0.5.3

type FakeClusterResourceAccessReviews struct {
	Fake *Fake
}

func (*FakeClusterResourceAccessReviews) Create added in v0.5.3

type FakeClusterRoleBindings added in v0.5.3

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 added in v0.5.3

func (*FakeClusterRoleBindings) Delete added in v0.5.3

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

func (*FakeClusterRoleBindings) Get added in v0.5.3

func (*FakeClusterRoleBindings) List added in v0.5.3

func (*FakeClusterRoleBindings) Update added in v0.5.3

type FakeClusterRoles added in v0.5.3

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 added in v0.5.3

func (*FakeClusterRoles) Delete added in v0.5.3

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

func (*FakeClusterRoles) Get added in v0.5.3

func (*FakeClusterRoles) List added in v0.5.3

func (*FakeClusterRoles) Update added in v0.5.3

type FakeClusterSubjectAccessReviews added in v0.5.3

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.

func (*FakeClusterSubjectAccessReviews) Create added in v0.5.3

type FakeDeploymentConfigs added in v0.5.3

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 added in v0.5.3

func (*FakeDeploymentConfigs) Delete added in v0.5.3

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

func (*FakeDeploymentConfigs) Generate added in v0.5.3

func (*FakeDeploymentConfigs) Get added in v0.5.3

func (*FakeDeploymentConfigs) List added in v0.5.3

func (*FakeDeploymentConfigs) Rollback added in v0.5.3

func (*FakeDeploymentConfigs) Update added in v0.5.3

func (*FakeDeploymentConfigs) Watch added in v0.5.3

func (c *FakeDeploymentConfigs) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)

type FakeHostSubnet added in v0.5.3

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 added in v0.5.3

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

func (*FakeHostSubnet) Delete added in v0.5.3

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

func (*FakeHostSubnet) Get added in v0.5.3

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

func (*FakeHostSubnet) List added in v0.5.3

func (c *FakeHostSubnet) List() (*sdnapi.HostSubnetList, error)

func (*FakeHostSubnet) Watch added in v0.5.3

func (c *FakeHostSubnet) Watch(resourceVersion string) (watch.Interface, error)

type FakeIdentities added in v0.5.3

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 added in v0.5.3

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

func (*FakeIdentities) Get added in v0.5.3

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

func (*FakeIdentities) List added in v0.5.3

func (*FakeIdentities) Update added in v0.5.3

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

type FakeImageStreamImages added in v0.5.3

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 added in v0.5.3

type FakeImageStreamMappings added in v0.5.3

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 added in v0.5.3

type FakeImageStreamTags added in v0.5.3

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) Delete added in v0.5.3

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

func (*FakeImageStreamTags) Get added in v0.5.3

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

type FakeImageStreams added in v0.5.3

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 added in v0.5.3

func (*FakeImageStreams) Delete added in v0.5.3

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

func (*FakeImageStreams) Get added in v0.5.3

func (*FakeImageStreams) List added in v0.5.3

func (*FakeImageStreams) Update added in v0.5.3

func (*FakeImageStreams) UpdateStatus added in v0.5.3

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

func (*FakeImageStreams) Watch added in v0.5.3

func (c *FakeImageStreams) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)

type FakeImages added in v0.5.3

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 added in v0.5.3

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

func (*FakeImages) Delete added in v0.5.3

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

func (*FakeImages) Get added in v0.5.3

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

func (*FakeImages) List added in v0.5.3

func (c *FakeImages) List(label labels.Selector, field fields.Selector) (*imageapi.ImageList, error)

type FakeOAuthAccessTokens added in v0.5.3

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) Delete added in v0.5.3

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

Delete mocks deleting an OAuthAccessToken

type FakePolicies added in v0.5.3

type FakePolicies struct {
	Fake *Fake
}

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 added in v0.5.3

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

func (*FakePolicies) Get added in v0.5.3

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

func (*FakePolicies) List added in v0.5.3

func (*FakePolicies) Watch added in v0.5.3

func (c *FakePolicies) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)

type FakePolicyBindings added in v0.5.3

type FakePolicyBindings struct {
	Fake *Fake
}

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 added in v0.5.3

func (*FakePolicyBindings) Delete added in v0.5.3

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

func (*FakePolicyBindings) Get added in v0.5.3

func (*FakePolicyBindings) List added in v0.5.3

func (*FakePolicyBindings) Watch added in v0.5.3

func (c *FakePolicyBindings) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)

type FakeProjectRequests added in v0.5.3

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 added in v0.5.3

func (*FakeProjectRequests) List added in v0.5.3

func (c *FakeProjectRequests) List(label labels.Selector, field fields.Selector) (*kapi.Status, error)

type FakeProjects added in v0.5.3

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 added in v0.5.3

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

func (*FakeProjects) Delete added in v0.5.3

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

func (*FakeProjects) Get added in v0.5.3

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

func (*FakeProjects) List added in v0.5.3

func (*FakeProjects) Update added in v0.5.3

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

type FakeResourceAccessReviews added in v0.5.3

type FakeResourceAccessReviews struct {
	Fake *Fake
}

FakeResourceAccessReviews implements ResourceAccessReviewInterface. 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 (*FakeResourceAccessReviews) Create added in v0.5.3

type FakeRoleBindings added in v0.5.3

type FakeRoleBindings struct {
	Fake *Fake
}

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 added in v0.5.3

func (*FakeRoleBindings) Delete added in v0.5.3

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

func (*FakeRoleBindings) Get added in v0.5.3

func (*FakeRoleBindings) List added in v0.5.3

func (*FakeRoleBindings) Update added in v0.5.3

type FakeRoles added in v0.5.3

type FakeRoles struct {
	Fake *Fake
}

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 added in v0.5.3

func (*FakeRoles) Delete added in v0.5.3

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

func (*FakeRoles) Get added in v0.5.3

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

func (*FakeRoles) List added in v0.5.3

func (*FakeRoles) Update added in v0.5.3

type FakeRoutes added in v0.5.3

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 added in v0.5.3

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

func (*FakeRoutes) Delete added in v0.5.3

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

func (*FakeRoutes) Get added in v0.5.3

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

func (*FakeRoutes) List added in v0.5.3

func (c *FakeRoutes) List(label labels.Selector, field fields.Selector) (*routeapi.RouteList, error)

func (*FakeRoutes) Update added in v0.5.3

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

func (*FakeRoutes) Watch added in v0.5.3

func (c *FakeRoutes) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)

type FakeSubjectAccessReviews added in v0.5.3

type FakeSubjectAccessReviews struct {
	Fake *Fake
}

FakeSubjectAccessReviews implements SubjectAccessReviewInterface. 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 (*FakeSubjectAccessReviews) Create added in v0.5.3

type FakeTemplateConfigs added in v0.5.3

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 added in v0.5.3

type FakeTemplates added in v0.5.3

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 added in v0.5.3

func (c *FakeTemplates) Create(template *templateapi.Template) (*templateapi.Template, error)

func (*FakeTemplates) Delete added in v0.5.3

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

func (*FakeTemplates) Get added in v0.5.3

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

func (*FakeTemplates) List added in v0.5.3

func (*FakeTemplates) Update added in v0.5.3

func (c *FakeTemplates) Update(template *templateapi.Template) (*templateapi.Template, error)

func (*FakeTemplates) Watch added in v0.5.3

func (c *FakeTemplates) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)

type FakeUserIdentityMappings added in v0.5.3

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 added in v0.5.3

func (*FakeUserIdentityMappings) Delete added in v0.5.3

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

func (*FakeUserIdentityMappings) Get added in v0.5.3

func (*FakeUserIdentityMappings) Update added in v0.5.3

type FakeUsers added in v0.5.3

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 added in v0.5.3

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

func (*FakeUsers) Get added in v0.5.3

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

func (*FakeUsers) List added in v0.5.3

func (c *FakeUsers) List(label labels.Selector, field fields.Selector) (*userapi.UserList, error)

func (*FakeUsers) Update added in v0.5.3

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

Jump to

Keyboard shortcuts

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