Documentation ¶
Index ¶
- func NewFixtureClients(o testclient.ObjectRetriever) (osclient.Interface, kclient.Interface)
- type Fake
- func (c *Fake) Actions() []ktestclient.Action
- func (c *Fake) AddReactor(verb, resource string, reaction ktestclient.ReactionFunc)
- func (c *Fake) AddWatchReactor(resource string, reaction ktestclient.WatchReactionFunc)
- func (c *Fake) BuildConfigs(namespace string) client.BuildConfigInterface
- func (c *Fake) BuildLogs(namespace string) client.BuildLogsInterface
- func (c *Fake) Builds(namespace string) client.BuildInterface
- func (c *Fake) ClearActions()
- func (c *Fake) ClusterNetwork() client.ClusterNetworkInterface
- func (c *Fake) ClusterPolicies() client.ClusterPolicyInterface
- func (c *Fake) ClusterPolicyBindings() client.ClusterPolicyBindingInterface
- func (c *Fake) ClusterRoleBindings() client.ClusterRoleBindingInterface
- func (c *Fake) ClusterRoles() client.ClusterRoleInterface
- func (c *Fake) DeploymentConfigs(namespace string) client.DeploymentConfigInterface
- func (c *Fake) DeploymentLogs(namespace string) client.DeploymentLogInterface
- func (c *Fake) Groups() client.GroupInterface
- func (c *Fake) HostSubnets() client.HostSubnetInterface
- func (c *Fake) Identities() client.IdentityInterface
- func (c *Fake) ImageStreamImages(namespace string) client.ImageStreamImageInterface
- func (c *Fake) ImageStreamMappings(namespace string) client.ImageStreamMappingInterface
- func (c *Fake) ImageStreamSecrets(namespace string) client.ImageStreamSecretInterface
- func (c *Fake) ImageStreamTags(namespace string) client.ImageStreamTagInterface
- func (c *Fake) ImageStreams(namespace string) client.ImageStreamInterface
- func (c *Fake) Images() client.ImageInterface
- func (c *Fake) ImpersonateLocalSubjectAccessReviews(namespace, token string) client.LocalSubjectAccessReviewInterface
- func (c *Fake) ImpersonateSubjectAccessReviews(token string) client.SubjectAccessReviewInterface
- func (c *Fake) Invokes(action ktestclient.Action, defaultReturnObj runtime.Object) (runtime.Object, error)
- func (c *Fake) InvokesWatch(action ktestclient.Action) (watch.Interface, error)
- func (c *Fake) LocalResourceAccessReviews(namespace string) client.LocalResourceAccessReviewInterface
- func (c *Fake) LocalSubjectAccessReviews(namespace string) client.LocalSubjectAccessReviewInterface
- func (c *Fake) NetNamespaces() client.NetNamespaceInterface
- func (c *Fake) OAuthAccessTokens() client.OAuthAccessTokenInterface
- func (c *Fake) Policies(namespace string) client.PolicyInterface
- func (c *Fake) PolicyBindings(namespace string) client.PolicyBindingInterface
- func (c *Fake) PrependReactor(verb, resource string, reaction ktestclient.ReactionFunc)
- func (c *Fake) ProjectRequests() client.ProjectRequestInterface
- func (c *Fake) Projects() client.ProjectInterface
- func (c *Fake) ResourceAccessReviews() client.ResourceAccessReviewInterface
- func (c *Fake) RoleBindings(namespace string) client.RoleBindingInterface
- func (c *Fake) Roles(namespace string) client.RoleInterface
- func (c *Fake) Routes(namespace string) client.RouteInterface
- func (c *Fake) SubjectAccessReviews() client.SubjectAccessReviewInterface
- func (c *Fake) TemplateConfigs(namespace string) client.TemplateConfigInterface
- func (c *Fake) Templates(namespace string) client.TemplateInterface
- func (c *Fake) UserIdentityMappings() client.UserIdentityMappingInterface
- func (c *Fake) Users() client.UserInterface
- type FakeBuildConfigs
- func (c *FakeBuildConfigs) Create(inObj *buildapi.BuildConfig) (*buildapi.BuildConfig, error)
- func (c *FakeBuildConfigs) Delete(name string) error
- func (c *FakeBuildConfigs) Get(name string) (*buildapi.BuildConfig, error)
- func (c *FakeBuildConfigs) Instantiate(request *buildapi.BuildRequest) (result *buildapi.Build, err error)
- func (c *FakeBuildConfigs) InstantiateBinary(request *buildapi.BinaryBuildRequestOptions, r io.Reader) (result *buildapi.Build, err error)
- func (c *FakeBuildConfigs) List(opts kapi.ListOptions) (*buildapi.BuildConfigList, error)
- func (c *FakeBuildConfigs) Update(inObj *buildapi.BuildConfig) (*buildapi.BuildConfig, error)
- func (c *FakeBuildConfigs) Watch(opts kapi.ListOptions) (watch.Interface, error)
- func (c *FakeBuildConfigs) WebHookURL(name string, trigger *buildapi.BuildTriggerPolicy) (*url.URL, error)
- type FakeBuildLogs
- type FakeBuilds
- func (c *FakeBuilds) Clone(request *buildapi.BuildRequest) (result *buildapi.Build, err error)
- func (c *FakeBuilds) Create(inObj *buildapi.Build) (*buildapi.Build, error)
- func (c *FakeBuilds) Delete(name string) error
- func (c *FakeBuilds) Get(name string) (*buildapi.Build, error)
- func (c *FakeBuilds) List(opts kapi.ListOptions) (*buildapi.BuildList, error)
- func (c *FakeBuilds) Update(inObj *buildapi.Build) (*buildapi.Build, error)
- func (c *FakeBuilds) UpdateDetails(inObj *buildapi.Build) (*buildapi.Build, error)
- func (c *FakeBuilds) Watch(opts kapi.ListOptions) (watch.Interface, error)
- type FakeClusterNetwork
- type FakeClusterPolicies
- func (c *FakeClusterPolicies) Delete(name string) error
- func (c *FakeClusterPolicies) Get(name string) (*authorizationapi.ClusterPolicy, error)
- func (c *FakeClusterPolicies) List(opts kapi.ListOptions) (*authorizationapi.ClusterPolicyList, error)
- func (c *FakeClusterPolicies) Watch(opts kapi.ListOptions) (watch.Interface, error)
- type FakeClusterPolicyBindings
- func (c *FakeClusterPolicyBindings) Create(inObj *authorizationapi.ClusterPolicyBinding) (*authorizationapi.ClusterPolicyBinding, error)
- func (c *FakeClusterPolicyBindings) Delete(name string) error
- func (c *FakeClusterPolicyBindings) Get(name string) (*authorizationapi.ClusterPolicyBinding, error)
- func (c *FakeClusterPolicyBindings) List(opts kapi.ListOptions) (*authorizationapi.ClusterPolicyBindingList, error)
- func (c *FakeClusterPolicyBindings) Watch(opts kapi.ListOptions) (watch.Interface, error)
- type FakeClusterResourceAccessReviews
- type FakeClusterRoleBindings
- func (c *FakeClusterRoleBindings) Create(inObj *authorizationapi.ClusterRoleBinding) (*authorizationapi.ClusterRoleBinding, error)
- func (c *FakeClusterRoleBindings) Delete(name string) error
- func (c *FakeClusterRoleBindings) Get(name string) (*authorizationapi.ClusterRoleBinding, error)
- func (c *FakeClusterRoleBindings) List(opts kapi.ListOptions) (*authorizationapi.ClusterRoleBindingList, error)
- func (c *FakeClusterRoleBindings) Update(inObj *authorizationapi.ClusterRoleBinding) (*authorizationapi.ClusterRoleBinding, error)
- type FakeClusterRoles
- func (c *FakeClusterRoles) Create(inObj *authorizationapi.ClusterRole) (*authorizationapi.ClusterRole, error)
- func (c *FakeClusterRoles) Delete(name string) error
- func (c *FakeClusterRoles) Get(name string) (*authorizationapi.ClusterRole, error)
- func (c *FakeClusterRoles) List(opts kapi.ListOptions) (*authorizationapi.ClusterRoleList, error)
- func (c *FakeClusterRoles) Update(inObj *authorizationapi.ClusterRole) (*authorizationapi.ClusterRole, error)
- type FakeClusterSubjectAccessReviews
- type FakeDeploymentConfigs
- func (c *FakeDeploymentConfigs) Create(inObj *deployapi.DeploymentConfig) (*deployapi.DeploymentConfig, error)
- func (c *FakeDeploymentConfigs) Delete(name string) error
- func (c *FakeDeploymentConfigs) Generate(name string) (*deployapi.DeploymentConfig, error)
- func (c *FakeDeploymentConfigs) Get(name string) (*deployapi.DeploymentConfig, error)
- func (c *FakeDeploymentConfigs) GetScale(name string) (*extensions.Scale, error)
- func (c *FakeDeploymentConfigs) List(opts kapi.ListOptions) (*deployapi.DeploymentConfigList, error)
- func (c *FakeDeploymentConfigs) Rollback(inObj *deployapi.DeploymentConfigRollback) (result *deployapi.DeploymentConfig, err error)
- func (c *FakeDeploymentConfigs) Update(inObj *deployapi.DeploymentConfig) (*deployapi.DeploymentConfig, error)
- func (c *FakeDeploymentConfigs) UpdateScale(inObj *extensions.Scale) (*extensions.Scale, error)
- func (c *FakeDeploymentConfigs) Watch(opts kapi.ListOptions) (watch.Interface, error)
- type FakeDeploymentLogs
- type FakeGroups
- func (c *FakeGroups) Create(inObj *userapi.Group) (*userapi.Group, error)
- func (c *FakeGroups) Delete(name string) error
- func (c *FakeGroups) Get(name string) (*userapi.Group, error)
- func (c *FakeGroups) List(opts kapi.ListOptions) (*userapi.GroupList, error)
- func (c *FakeGroups) Update(inObj *userapi.Group) (*userapi.Group, error)
- type FakeHostSubnet
- func (c *FakeHostSubnet) Create(inObj *sdnapi.HostSubnet) (*sdnapi.HostSubnet, error)
- func (c *FakeHostSubnet) Delete(name string) error
- func (c *FakeHostSubnet) Get(name string) (*sdnapi.HostSubnet, error)
- func (c *FakeHostSubnet) List(opts kapi.ListOptions) (*sdnapi.HostSubnetList, error)
- func (c *FakeHostSubnet) Watch(opts kapi.ListOptions) (watch.Interface, error)
- type FakeIdentities
- func (c *FakeIdentities) Create(inObj *userapi.Identity) (*userapi.Identity, error)
- func (c *FakeIdentities) Delete(name string) error
- func (c *FakeIdentities) Get(name string) (*userapi.Identity, error)
- func (c *FakeIdentities) List(opts kapi.ListOptions) (*userapi.IdentityList, error)
- func (c *FakeIdentities) Update(inObj *userapi.Identity) (*userapi.Identity, error)
- type FakeImageStreamImages
- type FakeImageStreamMappings
- type FakeImageStreamSecrets
- type FakeImageStreamTags
- type FakeImageStreams
- func (c *FakeImageStreams) Create(inObj *imageapi.ImageStream) (*imageapi.ImageStream, error)
- func (c *FakeImageStreams) Delete(name string) error
- func (c *FakeImageStreams) Get(name string) (*imageapi.ImageStream, error)
- func (c *FakeImageStreams) Import(inObj *imageapi.ImageStreamImport) (*imageapi.ImageStreamImport, error)
- func (c *FakeImageStreams) List(opts kapi.ListOptions) (*imageapi.ImageStreamList, error)
- func (c *FakeImageStreams) Update(inObj *imageapi.ImageStream) (*imageapi.ImageStream, error)
- func (c *FakeImageStreams) UpdateStatus(inObj *imageapi.ImageStream) (result *imageapi.ImageStream, err error)
- func (c *FakeImageStreams) Watch(opts kapi.ListOptions) (watch.Interface, error)
- type FakeImages
- type FakeLocalResourceAccessReviews
- type FakeLocalSubjectAccessReviews
- type FakeNetNamespace
- func (c *FakeNetNamespace) Create(inObj *sdnapi.NetNamespace) (*sdnapi.NetNamespace, error)
- func (c *FakeNetNamespace) Delete(name string) error
- func (c *FakeNetNamespace) Get(name string) (*sdnapi.NetNamespace, error)
- func (c *FakeNetNamespace) List(opts kapi.ListOptions) (*sdnapi.NetNamespaceList, error)
- func (c *FakeNetNamespace) Update(inObj *sdnapi.NetNamespace) (*sdnapi.NetNamespace, error)
- func (c *FakeNetNamespace) Watch(opts kapi.ListOptions) (watch.Interface, error)
- type FakeOAuthAccessTokens
- type FakePolicies
- type FakePolicyBindings
- func (c *FakePolicyBindings) Create(inObj *authorizationapi.PolicyBinding) (*authorizationapi.PolicyBinding, error)
- func (c *FakePolicyBindings) Delete(name string) error
- func (c *FakePolicyBindings) Get(name string) (*authorizationapi.PolicyBinding, error)
- func (c *FakePolicyBindings) List(opts kapi.ListOptions) (*authorizationapi.PolicyBindingList, error)
- func (c *FakePolicyBindings) Watch(opts kapi.ListOptions) (watch.Interface, error)
- type FakeProjectRequests
- type FakeProjects
- func (c *FakeProjects) Create(inObj *projectapi.Project) (*projectapi.Project, error)
- func (c *FakeProjects) Delete(name string) error
- func (c *FakeProjects) Get(name string) (*projectapi.Project, error)
- func (c *FakeProjects) List(opts kapi.ListOptions) (*projectapi.ProjectList, error)
- func (c *FakeProjects) Update(inObj *projectapi.Project) (*projectapi.Project, error)
- type FakeRoleBindings
- func (c *FakeRoleBindings) Create(inObj *authorizationapi.RoleBinding) (*authorizationapi.RoleBinding, error)
- func (c *FakeRoleBindings) Delete(name string) error
- func (c *FakeRoleBindings) Get(name string) (*authorizationapi.RoleBinding, error)
- func (c *FakeRoleBindings) List(opts kapi.ListOptions) (*authorizationapi.RoleBindingList, error)
- func (c *FakeRoleBindings) Update(inObj *authorizationapi.RoleBinding) (*authorizationapi.RoleBinding, error)
- type FakeRoles
- func (c *FakeRoles) Create(inObj *authorizationapi.Role) (*authorizationapi.Role, error)
- func (c *FakeRoles) Delete(name string) error
- func (c *FakeRoles) Get(name string) (*authorizationapi.Role, error)
- func (c *FakeRoles) List(opts kapi.ListOptions) (*authorizationapi.RoleList, error)
- func (c *FakeRoles) Update(inObj *authorizationapi.Role) (*authorizationapi.Role, error)
- type FakeRoutes
- func (c *FakeRoutes) Create(inObj *routeapi.Route) (*routeapi.Route, error)
- func (c *FakeRoutes) Delete(name string) error
- func (c *FakeRoutes) Get(name string) (*routeapi.Route, error)
- func (c *FakeRoutes) List(opts kapi.ListOptions) (*routeapi.RouteList, error)
- func (c *FakeRoutes) Update(inObj *routeapi.Route) (*routeapi.Route, error)
- func (c *FakeRoutes) Watch(opts kapi.ListOptions) (watch.Interface, error)
- type FakeTemplateConfigs
- type FakeTemplates
- func (c *FakeTemplates) Create(inObj *templateapi.Template) (*templateapi.Template, error)
- func (c *FakeTemplates) Delete(name string) error
- func (c *FakeTemplates) Get(name string) (*templateapi.Template, error)
- func (c *FakeTemplates) List(opts kapi.ListOptions) (*templateapi.TemplateList, error)
- func (c *FakeTemplates) Update(inObj *templateapi.Template) (*templateapi.Template, error)
- func (c *FakeTemplates) Watch(opts kapi.ListOptions) (watch.Interface, error)
- type FakeUserIdentityMappings
- func (c *FakeUserIdentityMappings) Create(inObj *userapi.UserIdentityMapping) (*userapi.UserIdentityMapping, error)
- func (c *FakeUserIdentityMappings) Delete(name string) error
- func (c *FakeUserIdentityMappings) Get(name string) (*userapi.UserIdentityMapping, error)
- func (c *FakeUserIdentityMappings) Update(inObj *userapi.UserIdentityMapping) (*userapi.UserIdentityMapping, error)
- type FakeUsers
- func (c *FakeUsers) Create(inObj *userapi.User) (*userapi.User, error)
- func (c *FakeUsers) Delete(name string) error
- func (c *FakeUsers) Get(name string) (*userapi.User, error)
- func (c *FakeUsers) List(opts kapi.ListOptions) (*userapi.UserList, error)
- func (c *FakeUsers) Update(inObj *userapi.User) (*userapi.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFixtureClients ¶
func NewFixtureClients(o testclient.ObjectRetriever) (osclient.Interface, kclient.Interface)
NewFixtureClients returns mocks of the OpenShift and Kubernetes clients
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 []ktestclient.Reactor // WatchReactionChain is the list of watch reactors that will be attempted for every request in the order they are tried WatchReactionChain []ktestclient.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 ¶
NewSimpleFake returns a client that will respond with the provided objects
func (*Fake) Actions ¶
func (c *Fake) Actions() []ktestclient.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 ktestclient.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 ktestclient.WatchReactionFunc)
AddWatchReactor appends a reactor to the end of the chain
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) 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) 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) 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 ktestclient.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
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
OAuthAccessTokens provides a fake REST client for OAuthAccessTokens
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 ktestclient.ReactionFunc)
PrependReactor 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) 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) SubjectAccessReviews ¶
func (c *Fake) SubjectAccessReviews() client.SubjectAccessReviewInterface
SubjectAccessReviews provides a fake REST client for ClusterSubjectAccessReviews
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 FakeBuildConfigs ¶
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 (c *FakeBuildConfigs) Create(inObj *buildapi.BuildConfig) (*buildapi.BuildConfig, error)
func (*FakeBuildConfigs) Delete ¶
func (c *FakeBuildConfigs) Delete(name string) error
func (*FakeBuildConfigs) Get ¶
func (c *FakeBuildConfigs) Get(name string) (*buildapi.BuildConfig, error)
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 (c *FakeBuildConfigs) List(opts kapi.ListOptions) (*buildapi.BuildConfigList, error)
func (*FakeBuildConfigs) Update ¶
func (c *FakeBuildConfigs) Update(inObj *buildapi.BuildConfig) (*buildapi.BuildConfig, error)
func (*FakeBuildConfigs) Watch ¶
func (c *FakeBuildConfigs) Watch(opts kapi.ListOptions) (watch.Interface, error)
func (*FakeBuildConfigs) WebHookURL ¶
func (c *FakeBuildConfigs) WebHookURL(name string, trigger *buildapi.BuildTriggerPolicy) (*url.URL, error)
type FakeBuildLogs ¶
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 ¶
func (c *FakeBuildLogs) Get(name string, opt buildapi.BuildLogOptions) *kclient.Request
type FakeBuilds ¶
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) Delete ¶
func (c *FakeBuilds) Delete(name string) error
func (*FakeBuilds) List ¶
func (c *FakeBuilds) List(opts kapi.ListOptions) (*buildapi.BuildList, error)
func (*FakeBuilds) UpdateDetails ¶ added in v1.1.1
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 (c *FakeClusterNetwork) Create(inObj *sdnapi.ClusterNetwork) (*sdnapi.ClusterNetwork, error)
func (*FakeClusterNetwork) Get ¶
func (c *FakeClusterNetwork) Get(name string) (*sdnapi.ClusterNetwork, error)
func (*FakeClusterNetwork) Update ¶ added in v1.0.6
func (c *FakeClusterNetwork) Update(inObj *sdnapi.ClusterNetwork) (*sdnapi.ClusterNetwork, error)
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 (c *FakeClusterPolicies) Get(name string) (*authorizationapi.ClusterPolicy, error)
func (*FakeClusterPolicies) List ¶
func (c *FakeClusterPolicies) List(opts kapi.ListOptions) (*authorizationapi.ClusterPolicyList, error)
func (*FakeClusterPolicies) Watch ¶
func (c *FakeClusterPolicies) Watch(opts kapi.ListOptions) (watch.Interface, error)
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) Create ¶
func (c *FakeClusterPolicyBindings) Create(inObj *authorizationapi.ClusterPolicyBinding) (*authorizationapi.ClusterPolicyBinding, error)
func (*FakeClusterPolicyBindings) Delete ¶
func (c *FakeClusterPolicyBindings) Delete(name string) error
func (*FakeClusterPolicyBindings) Get ¶
func (c *FakeClusterPolicyBindings) Get(name string) (*authorizationapi.ClusterPolicyBinding, error)
func (*FakeClusterPolicyBindings) List ¶
func (c *FakeClusterPolicyBindings) List(opts kapi.ListOptions) (*authorizationapi.ClusterPolicyBindingList, error)
func (*FakeClusterPolicyBindings) Watch ¶
func (c *FakeClusterPolicyBindings) Watch(opts kapi.ListOptions) (watch.Interface, error)
type FakeClusterResourceAccessReviews ¶
type FakeClusterResourceAccessReviews struct {
Fake *Fake
}
func (*FakeClusterResourceAccessReviews) Create ¶
func (c *FakeClusterResourceAccessReviews) Create(inObj *authorizationapi.ResourceAccessReview) (*authorizationapi.ResourceAccessReviewResponse, error)
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 (c *FakeClusterRoleBindings) Create(inObj *authorizationapi.ClusterRoleBinding) (*authorizationapi.ClusterRoleBinding, error)
func (*FakeClusterRoleBindings) Delete ¶
func (c *FakeClusterRoleBindings) Delete(name string) error
func (*FakeClusterRoleBindings) Get ¶
func (c *FakeClusterRoleBindings) Get(name string) (*authorizationapi.ClusterRoleBinding, error)
func (*FakeClusterRoleBindings) List ¶
func (c *FakeClusterRoleBindings) List(opts kapi.ListOptions) (*authorizationapi.ClusterRoleBindingList, error)
func (*FakeClusterRoleBindings) Update ¶
func (c *FakeClusterRoleBindings) Update(inObj *authorizationapi.ClusterRoleBinding) (*authorizationapi.ClusterRoleBinding, error)
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 (c *FakeClusterRoles) Create(inObj *authorizationapi.ClusterRole) (*authorizationapi.ClusterRole, error)
func (*FakeClusterRoles) Delete ¶
func (c *FakeClusterRoles) Delete(name string) error
func (*FakeClusterRoles) Get ¶
func (c *FakeClusterRoles) Get(name string) (*authorizationapi.ClusterRole, error)
func (*FakeClusterRoles) List ¶
func (c *FakeClusterRoles) List(opts kapi.ListOptions) (*authorizationapi.ClusterRoleList, error)
func (*FakeClusterRoles) Update ¶
func (c *FakeClusterRoles) Update(inObj *authorizationapi.ClusterRole) (*authorizationapi.ClusterRole, error)
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.
func (*FakeClusterSubjectAccessReviews) Create ¶
func (c *FakeClusterSubjectAccessReviews) Create(inObj *authorizationapi.SubjectAccessReview) (*authorizationapi.SubjectAccessReviewResponse, error)
type FakeDeploymentConfigs ¶
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 (c *FakeDeploymentConfigs) Create(inObj *deployapi.DeploymentConfig) (*deployapi.DeploymentConfig, error)
func (*FakeDeploymentConfigs) Delete ¶
func (c *FakeDeploymentConfigs) Delete(name string) error
func (*FakeDeploymentConfigs) Generate ¶
func (c *FakeDeploymentConfigs) Generate(name string) (*deployapi.DeploymentConfig, error)
func (*FakeDeploymentConfigs) Get ¶
func (c *FakeDeploymentConfigs) Get(name string) (*deployapi.DeploymentConfig, error)
func (*FakeDeploymentConfigs) GetScale ¶ added in v1.0.8
func (c *FakeDeploymentConfigs) GetScale(name string) (*extensions.Scale, error)
func (*FakeDeploymentConfigs) List ¶
func (c *FakeDeploymentConfigs) List(opts kapi.ListOptions) (*deployapi.DeploymentConfigList, error)
func (*FakeDeploymentConfigs) Rollback ¶
func (c *FakeDeploymentConfigs) Rollback(inObj *deployapi.DeploymentConfigRollback) (result *deployapi.DeploymentConfig, err error)
func (*FakeDeploymentConfigs) Update ¶
func (c *FakeDeploymentConfigs) Update(inObj *deployapi.DeploymentConfig) (*deployapi.DeploymentConfig, error)
func (*FakeDeploymentConfigs) UpdateScale ¶ added in v1.0.8
func (c *FakeDeploymentConfigs) UpdateScale(inObj *extensions.Scale) (*extensions.Scale, error)
func (*FakeDeploymentConfigs) Watch ¶
func (c *FakeDeploymentConfigs) Watch(opts kapi.ListOptions) (watch.Interface, error)
type FakeDeploymentLogs ¶ added in v1.0.7
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
func (c *FakeDeploymentLogs) Get(name string, opt api.DeploymentLogOptions) *kclient.Request
Get builds and returns a buildLog request
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) 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)
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 (c *FakeHostSubnet) List(opts kapi.ListOptions) (*sdnapi.HostSubnetList, 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) Delete ¶ added in v1.1.1
func (c *FakeIdentities) Delete(name string) error
func (*FakeIdentities) List ¶
func (c *FakeIdentities) List(opts kapi.ListOptions) (*userapi.IdentityList, error)
type FakeImageStreamImages ¶
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 ¶
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 ¶
func (c *FakeImageStreamMappings) Create(inObj *imageapi.ImageStreamMapping) error
type FakeImageStreamSecrets ¶ added in v1.1.2
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 ¶
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 ¶
func (c *FakeImageStreamTags) Delete(name, tag string) error
func (*FakeImageStreamTags) Get ¶
func (c *FakeImageStreamTags) Get(name, tag string) (*imageapi.ImageStreamTag, error)
type FakeImageStreams ¶
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 (c *FakeImageStreams) Create(inObj *imageapi.ImageStream) (*imageapi.ImageStream, error)
func (*FakeImageStreams) Delete ¶
func (c *FakeImageStreams) Delete(name string) error
func (*FakeImageStreams) Get ¶
func (c *FakeImageStreams) Get(name string) (*imageapi.ImageStream, error)
func (*FakeImageStreams) Import ¶ added in v1.1.2
func (c *FakeImageStreams) Import(inObj *imageapi.ImageStreamImport) (*imageapi.ImageStreamImport, error)
func (*FakeImageStreams) List ¶
func (c *FakeImageStreams) List(opts kapi.ListOptions) (*imageapi.ImageStreamList, error)
func (*FakeImageStreams) Update ¶
func (c *FakeImageStreams) Update(inObj *imageapi.ImageStream) (*imageapi.ImageStream, error)
func (*FakeImageStreams) UpdateStatus ¶
func (c *FakeImageStreams) UpdateStatus(inObj *imageapi.ImageStream) (result *imageapi.ImageStream, err error)
func (*FakeImageStreams) Watch ¶
func (c *FakeImageStreams) Watch(opts kapi.ListOptions) (watch.Interface, error)
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) Delete ¶
func (c *FakeImages) Delete(name string) error
func (*FakeImages) List ¶
func (c *FakeImages) List(opts kapi.ListOptions) (*imageapi.ImageList, error)
type FakeLocalResourceAccessReviews ¶ added in v1.0.5
func (*FakeLocalResourceAccessReviews) Create ¶ added in v1.0.5
func (c *FakeLocalResourceAccessReviews) Create(inObj *authorizationapi.LocalResourceAccessReview) (*authorizationapi.ResourceAccessReviewResponse, error)
type FakeLocalSubjectAccessReviews ¶ added in v1.0.5
func (*FakeLocalSubjectAccessReviews) Create ¶ added in v1.0.5
func (c *FakeLocalSubjectAccessReviews) Create(inObj *authorizationapi.LocalSubjectAccessReview) (*authorizationapi.SubjectAccessReviewResponse, error)
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 (c *FakeNetNamespace) Create(inObj *sdnapi.NetNamespace) (*sdnapi.NetNamespace, error)
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 (c *FakeNetNamespace) List(opts kapi.ListOptions) (*sdnapi.NetNamespaceList, error)
func (*FakeNetNamespace) Update ¶ added in v1.0.7
func (c *FakeNetNamespace) Update(inObj *sdnapi.NetNamespace) (*sdnapi.NetNamespace, error)
func (*FakeNetNamespace) Watch ¶ added in v1.0.5
func (c *FakeNetNamespace) Watch(opts kapi.ListOptions) (watch.Interface, error)
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) Delete ¶
func (c *FakeOAuthAccessTokens) Delete(name string) error
type FakePolicies ¶
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 (c *FakePolicies) List(opts kapi.ListOptions) (*authorizationapi.PolicyList, error)
func (*FakePolicies) Watch ¶
func (c *FakePolicies) Watch(opts kapi.ListOptions) (watch.Interface, error)
type FakePolicyBindings ¶
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 (c *FakePolicyBindings) Create(inObj *authorizationapi.PolicyBinding) (*authorizationapi.PolicyBinding, error)
func (*FakePolicyBindings) Delete ¶
func (c *FakePolicyBindings) Delete(name string) error
func (*FakePolicyBindings) Get ¶
func (c *FakePolicyBindings) Get(name string) (*authorizationapi.PolicyBinding, error)
func (*FakePolicyBindings) List ¶
func (c *FakePolicyBindings) List(opts kapi.ListOptions) (*authorizationapi.PolicyBindingList, error)
func (*FakePolicyBindings) Watch ¶
func (c *FakePolicyBindings) Watch(opts kapi.ListOptions) (watch.Interface, error)
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 (c *FakeProjectRequests) Create(inObj *projectapi.ProjectRequest) (*projectapi.Project, error)
func (*FakeProjectRequests) List ¶
func (c *FakeProjectRequests) List(opts kapi.ListOptions) (*unversioned.Status, error)
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 (c *FakeProjects) List(opts kapi.ListOptions) (*projectapi.ProjectList, error)
func (*FakeProjects) Update ¶
func (c *FakeProjects) Update(inObj *projectapi.Project) (*projectapi.Project, error)
type FakeRoleBindings ¶
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 (c *FakeRoleBindings) Create(inObj *authorizationapi.RoleBinding) (*authorizationapi.RoleBinding, error)
func (*FakeRoleBindings) Delete ¶
func (c *FakeRoleBindings) Delete(name string) error
func (*FakeRoleBindings) Get ¶
func (c *FakeRoleBindings) Get(name string) (*authorizationapi.RoleBinding, error)
func (*FakeRoleBindings) List ¶
func (c *FakeRoleBindings) List(opts kapi.ListOptions) (*authorizationapi.RoleBindingList, error)
func (*FakeRoleBindings) Update ¶
func (c *FakeRoleBindings) Update(inObj *authorizationapi.RoleBinding) (*authorizationapi.RoleBinding, error)
type FakeRoles ¶
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) List ¶
func (c *FakeRoles) List(opts kapi.ListOptions) (*authorizationapi.RoleList, error)
func (*FakeRoles) Update ¶
func (c *FakeRoles) Update(inObj *authorizationapi.Role) (*authorizationapi.Role, error)
type FakeRoutes ¶
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) Delete ¶
func (c *FakeRoutes) Delete(name string) error
func (*FakeRoutes) List ¶
func (c *FakeRoutes) List(opts kapi.ListOptions) (*routeapi.RouteList, error)
func (*FakeRoutes) Watch ¶
func (c *FakeRoutes) Watch(opts kapi.ListOptions) (watch.Interface, error)
type FakeTemplateConfigs ¶
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 ¶
func (c *FakeTemplateConfigs) Create(inObj *templateapi.Template) (*templateapi.Template, error)
type FakeTemplates ¶
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 (c *FakeTemplates) Create(inObj *templateapi.Template) (*templateapi.Template, error)
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 (c *FakeTemplates) List(opts kapi.ListOptions) (*templateapi.TemplateList, error)
func (*FakeTemplates) Update ¶
func (c *FakeTemplates) Update(inObj *templateapi.Template) (*templateapi.Template, error)
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 (c *FakeUserIdentityMappings) Create(inObj *userapi.UserIdentityMapping) (*userapi.UserIdentityMapping, error)
func (*FakeUserIdentityMappings) Delete ¶
func (c *FakeUserIdentityMappings) Delete(name string) error
func (*FakeUserIdentityMappings) Get ¶
func (c *FakeUserIdentityMappings) Get(name string) (*userapi.UserIdentityMapping, error)
func (*FakeUserIdentityMappings) Update ¶
func (c *FakeUserIdentityMappings) Update(inObj *userapi.UserIdentityMapping) (*userapi.UserIdentityMapping, error)
Source Files ¶
- fake.go
- fake_buildconfigs.go
- fake_buildlogs.go
- fake_builds.go
- fake_clusternetwork.go
- fake_clusterpolicies.go
- fake_clusterpolicybindings.go
- fake_clusterrolebindings.go
- fake_clusterroles.go
- fake_deploymentconfigs.go
- fake_deploymentlogs.go
- fake_groups.go
- fake_hostsubnets.go
- fake_identities.go
- fake_images.go
- fake_imagestreamimages.go
- fake_imagestreammappings.go
- fake_imagestreams.go
- fake_imagestreamsecrets.go
- fake_imagestreamtags.go
- fake_localresourceaccessreview.go
- fake_localsubjectaccessreview.go
- fake_netnamespaces.go
- fake_oauthaccesstoken.go
- fake_policies.go
- fake_policybindings.go
- fake_projectrequests.go
- fake_projects.go
- fake_resourceaccessreview.go
- fake_rolebindings.go
- fake_roles.go
- fake_routes.go
- fake_subjectaccessreview.go
- fake_template_configs.go
- fake_templates.go
- fake_useridentitymappings.go
- fake_users.go
- testclient.go