client

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2015 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultOpenShiftUserAgent added in v0.3.1

func DefaultOpenShiftUserAgent() string

DefaultOpenShiftUserAgent returns the default user agent that clients can use.

func SetOpenShiftDefaults added in v0.3.1

func SetOpenShiftDefaults(config *kclient.Config) error

SetOpenShiftDefaults sets the default settings on the passed client configuration

Types

type BuildConfigInterface

type BuildConfigInterface interface {
	List(label labels.Selector, field fields.Selector) (*buildapi.BuildConfigList, error)
	Get(name string) (*buildapi.BuildConfig, error)
	Create(config *buildapi.BuildConfig) (*buildapi.BuildConfig, error)
	Update(config *buildapi.BuildConfig) (*buildapi.BuildConfig, error)
	Delete(name string) error
	Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
	Instantiate(request *buildapi.BuildRequest) (result *buildapi.Build, err error)
}

BuildConfigInterface exposes methods on BuildConfig resources

type BuildConfigsNamespacer

type BuildConfigsNamespacer interface {
	BuildConfigs(namespace string) BuildConfigInterface
}

BuildConfigsNamespacer has methods to work with BuildConfig resources in a namespace

type BuildInterface

type BuildInterface interface {
	List(label labels.Selector, field fields.Selector) (*buildapi.BuildList, error)
	Get(name string) (*buildapi.Build, error)
	Create(build *buildapi.Build) (*buildapi.Build, error)
	Update(build *buildapi.Build) (*buildapi.Build, error)
	Delete(name string) error
	Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
	Clone(request *buildapi.BuildRequest) (*buildapi.Build, error)
}

BuildInterface exposes methods on Build resources.

type BuildLogsInterface added in v0.4.2

type BuildLogsInterface interface {
	Get(name string) *kclient.Request
}

BuildLogsInterface exposes methods on BuildLogs resources.

type BuildLogsNamespacer added in v0.4.1

type BuildLogsNamespacer interface {
	BuildLogs(namespace string) BuildLogsInterface
}

BuildLogsNamespacer has methods to work with BuildLogs resources in a namespace

type BuildsNamespacer

type BuildsNamespacer interface {
	Builds(namespace string) BuildInterface
}

BuildsNamespacer has methods to work with Build resources in a namespace

type Client

type Client struct {
	*kclient.RESTClient
}

Client is an OpenShift client object

func New

func New(c *kclient.Config) (*Client, error)

New creates an OpenShift client for the given config. This client works with builds, deployments, templates, routes, and images. It allows operations such as list, get, update and delete on these objects. An error is returned if the provided configuration is not valid.

func NewOrDie

func NewOrDie(c *kclient.Config) *Client

NewOrDie creates an OpenShift client and panics if the provided API version is not recognized.

func (*Client) BuildConfigs

func (c *Client) BuildConfigs(namespace string) BuildConfigInterface

BuildConfigs provides a REST client for BuildConfigs

func (*Client) BuildLogs added in v0.4.1

func (c *Client) BuildLogs(namespace string) BuildLogsInterface

BuildLogs provides a REST client for BuildLogs

func (*Client) Builds

func (c *Client) Builds(namespace string) BuildInterface

Builds provides a REST client for Builds

func (*Client) DeploymentConfigs

func (c *Client) DeploymentConfigs(namespace string) DeploymentConfigInterface

DeploymentConfigs provides a REST client for DeploymentConfig

func (*Client) Deployments

func (c *Client) Deployments(namespace string) DeploymentInterface

Deployments provides a REST client for Deployment

func (*Client) Identities added in v0.4.2

func (c *Client) Identities() IdentityInterface

Identities provides a REST client for Identity

func (*Client) ImageRepositories

func (c *Client) ImageRepositories(namespace string) ImageRepositoryInterface

ImageRepositories provides a REST client for ImageRepository

func (*Client) ImageRepositoryMappings

func (c *Client) ImageRepositoryMappings(namespace string) ImageRepositoryMappingInterface

ImageRepositoryMappings provides a REST client for ImageRepositoryMapping

func (*Client) ImageRepositoryTags

func (c *Client) ImageRepositoryTags(namespace string) ImageRepositoryTagInterface

ImageRepositoryTags provides a REST client for ImageRepositoryTag

func (*Client) ImageStreamImages added in v0.4.2

func (c *Client) ImageStreamImages(namespace string) ImageStreamImageInterface

ImageStreamImages provides a REST client for ImageStreamImage

func (*Client) ImageStreamMappings added in v0.4.3

func (c *Client) ImageStreamMappings(namespace string) ImageStreamMappingInterface

ImageStreamMappings provides a REST client for ImageStreamMapping

func (*Client) ImageStreamTags added in v0.4.3

func (c *Client) ImageStreamTags(namespace string) ImageStreamTagInterface

ImageStreamTags provides a REST client for ImageStreamTag

func (*Client) ImageStreams added in v0.4.3

func (c *Client) ImageStreams(namespace string) ImageStreamInterface

ImageStreams provides a REST client for ImageStream

func (*Client) Images

func (c *Client) Images() ImageInterface

Images provides a REST client for Images

func (*Client) Policies added in v0.2.2

func (c *Client) Policies(namespace string) PolicyInterface

Policies provides a REST client for Policies

func (*Client) PolicyBindings added in v0.2.2

func (c *Client) PolicyBindings(namespace string) PolicyBindingInterface

PolicyBindings provides a REST client for PolicyBindings

func (*Client) ProjectRequests added in v0.4.4

func (c *Client) ProjectRequests() ProjectRequestInterface

ProjectRequests provides a REST client for Projects

func (*Client) Projects

func (c *Client) Projects() ProjectInterface

Projects provides a REST client for Projects

func (*Client) ResourceAccessReviews added in v0.3.1

func (c *Client) ResourceAccessReviews(namespace string) ResourceAccessReviewInterface

ResourceAccessReviews provides a REST client for ResourceAccessReviews

func (*Client) RoleBindings added in v0.2.2

func (c *Client) RoleBindings(namespace string) RoleBindingInterface

RoleBindings provides a REST client for RoleBindings

func (*Client) Roles added in v0.2.2

func (c *Client) Roles(namespace string) RoleInterface

Roles provides a REST client for Roles

func (*Client) RootResourceAccessReviews added in v0.4.1

func (c *Client) RootResourceAccessReviews() ResourceAccessReviewInterface

RootResourceAccessReviews provides a REST client for RootResourceAccessReviews

func (*Client) RootSubjectAccessReviews added in v0.4.1

func (c *Client) RootSubjectAccessReviews() SubjectAccessReviewInterface

RootSubjectAccessReviews provides a REST client for RootSubjectAccessReviews

func (*Client) Routes

func (c *Client) Routes(namespace string) RouteInterface

Routes provides a REST client for Route

func (*Client) SubjectAccessReviews added in v0.3.1

func (c *Client) SubjectAccessReviews(namespace string) SubjectAccessReviewInterface

SubjectAccessReviews provides a REST client for SubjectAccessReviews

func (*Client) TemplateConfigs added in v0.2.2

func (c *Client) TemplateConfigs(namespace string) TemplateConfigInterface

TemplateConfigs provides a REST client for TemplateConfig

func (*Client) Templates added in v0.3.2

func (c *Client) Templates(namespace string) TemplateInterface

Templates provides a REST client for Templates

func (*Client) UserIdentityMappings

func (c *Client) UserIdentityMappings() UserIdentityMappingInterface

UserIdentityMappings provides a REST client for UserIdentityMapping

func (*Client) Users

func (c *Client) Users() UserInterface

Users provides a REST client for User

type DeploymentConfigInterface

type DeploymentConfigInterface interface {
	List(label labels.Selector, field fields.Selector) (*deployapi.DeploymentConfigList, error)
	Get(name string) (*deployapi.DeploymentConfig, error)
	Create(config *deployapi.DeploymentConfig) (*deployapi.DeploymentConfig, error)
	Update(config *deployapi.DeploymentConfig) (*deployapi.DeploymentConfig, error)
	Delete(name string) error
	Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
	Generate(name string) (*deployapi.DeploymentConfig, error)
	Rollback(config *deployapi.DeploymentConfigRollback) (*deployapi.DeploymentConfig, error)
}

DeploymentConfigInterface contains methods for working with DeploymentConfigs

type DeploymentConfigsNamespacer

type DeploymentConfigsNamespacer interface {
	DeploymentConfigs(namespace string) DeploymentConfigInterface
}

DeploymentConfigsNamespacer has methods to work with DeploymentConfig resources in a namespace

type DeploymentInterface

type DeploymentInterface interface {
	List(label labels.Selector, field fields.Selector) (*deployapi.DeploymentList, error)
	Get(name string) (*deployapi.Deployment, error)
	Create(deployment *deployapi.Deployment) (*deployapi.Deployment, error)
	Update(deployment *deployapi.Deployment) (*deployapi.Deployment, error)
	Delete(name string) error
	Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
}

DeploymentInterface contains methods for working with Deployments

type DeploymentsNamespacer

type DeploymentsNamespacer interface {
	Deployments(namespace string) DeploymentInterface
}

DeploymentsNamespacer has methods to work with Deployment resources in a namespace

type Fake

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 testclient.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 (*Fake) BuildConfigs

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

func (*Fake) BuildLogs added in v0.4.1

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

func (*Fake) Builds

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

func (*Fake) DeploymentConfigs

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

func (*Fake) Deployments

func (c *Fake) Deployments(namespace string) DeploymentInterface

func (*Fake) Identities added in v0.4.2

func (c *Fake) Identities() IdentityInterface

func (*Fake) ImageRepositories

func (c *Fake) ImageRepositories(namespace string) ImageRepositoryInterface

func (*Fake) ImageRepositoryMappings

func (c *Fake) ImageRepositoryMappings(namespace string) ImageRepositoryMappingInterface

func (*Fake) ImageRepositoryTags

func (c *Fake) ImageRepositoryTags(namespace string) ImageRepositoryTagInterface

func (*Fake) ImageStreamImages added in v0.4.2

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

func (*Fake) ImageStreamMappings added in v0.4.3

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

func (*Fake) ImageStreamTags added in v0.4.3

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

func (*Fake) ImageStreams added in v0.4.3

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

func (*Fake) Images

func (c *Fake) Images() ImageInterface

func (*Fake) Invokes added in v0.4.4

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

func (*Fake) Policies added in v0.2.2

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

func (*Fake) PolicyBindings added in v0.2.2

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

func (*Fake) ProjectRequests added in v0.4.4

func (c *Fake) ProjectRequests() ProjectRequestInterface

func (*Fake) Projects

func (c *Fake) Projects() ProjectInterface

func (*Fake) ResourceAccessReviews added in v0.3.1

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

func (*Fake) RoleBindings added in v0.2.2

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

func (*Fake) Roles added in v0.2.2

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

func (*Fake) RootResourceAccessReviews added in v0.4.1

func (c *Fake) RootResourceAccessReviews() ResourceAccessReviewInterface

func (*Fake) Routes

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

func (*Fake) SubjectAccessReviews added in v0.3.1

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

func (*Fake) TemplateConfigs added in v0.4.4

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

func (*Fake) Templates added in v0.3.2

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

func (*Fake) UserIdentityMappings

func (c *Fake) UserIdentityMappings() UserIdentityMappingInterface

func (*Fake) Users

func (c *Fake) Users() UserInterface

type FakeAction

type FakeAction testclient.FakeAction

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

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

func (*FakeBuildConfigs) List

func (*FakeBuildConfigs) Update

func (*FakeBuildConfigs) Watch

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

type FakeBuildLogs added in v0.4.1

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.4.3

func (c *FakeBuildLogs) Get(name string) *kclient.Request

Get builds and returns a buildLog request

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

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

func (*FakeBuilds) Create

func (c *FakeBuilds) Create(build *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(label labels.Selector, field fields.Selector) (*buildapi.BuildList, error)

func (*FakeBuilds) Update

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

func (*FakeBuilds) Watch

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

type FakeDeploymentConfigs

type FakeDeploymentConfigs struct {
	Fake      *Fake
	Namespace string
}

FakeDeploymentConfigs 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 (*FakeDeploymentConfigs) Create

func (*FakeDeploymentConfigs) Delete

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

func (*FakeDeploymentConfigs) Generate

func (*FakeDeploymentConfigs) Get

func (*FakeDeploymentConfigs) List

func (*FakeDeploymentConfigs) Rollback added in v0.2.2

func (*FakeDeploymentConfigs) Update

func (*FakeDeploymentConfigs) Watch

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

type FakeDeployments

type FakeDeployments struct {
	Fake      *Fake
	Namespace string
}

FakeDeployments 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 (*FakeDeployments) Create

func (c *FakeDeployments) Create(deployment *deployapi.Deployment) (*deployapi.Deployment, error)

func (*FakeDeployments) Delete

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

func (*FakeDeployments) Get

func (c *FakeDeployments) Get(name string) (*deployapi.Deployment, error)

func (*FakeDeployments) List

func (*FakeDeployments) Update

func (c *FakeDeployments) Update(deployment *deployapi.Deployment) (*deployapi.Deployment, error)

func (*FakeDeployments) Watch

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

type FakeIdentities added in v0.4.2

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.4.2

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

func (*FakeIdentities) Get added in v0.4.2

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

func (*FakeIdentities) List added in v0.4.2

func (*FakeIdentities) Update added in v0.4.2

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

type FakeImageRepositories

type FakeImageRepositories struct {
	Fake      *Fake
	Namespace string
}

FakeImageRepositories implements ImageRepositoryInterface. 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 (*FakeImageRepositories) Create

func (*FakeImageRepositories) Delete

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

func (*FakeImageRepositories) Get

func (*FakeImageRepositories) List

func (*FakeImageRepositories) Update

func (*FakeImageRepositories) Watch

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

type FakeImageRepositoryMappings

type FakeImageRepositoryMappings struct {
	Fake      *Fake
	Namespace string
}

FakeImageRepositories implements ImageRepositoryMappingInterface. 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 (*FakeImageRepositoryMappings) Create

type FakeImageRepositoryTags

type FakeImageRepositoryTags struct {
	Fake      *Fake
	Namespace string
}

FakeImageRepositoryTags implements ImageRepositoryTagInterface. 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 (*FakeImageRepositoryTags) Delete added in v0.4.2

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

func (*FakeImageRepositoryTags) Get

func (c *FakeImageRepositoryTags) Get(name, tag string) (result *imageapi.ImageRepositoryTag, err error)

type FakeImageStreamImages added in v0.4.2

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.4.2

func (c *FakeImageStreamImages) Get(name, id string) (result *imageapi.ImageStreamImage, err error)

type FakeImageStreamMappings added in v0.4.3

type FakeImageStreamMappings struct {
	Fake      *Fake
	Namespace string
}

FakeImageStreams 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.4.3

type FakeImageStreamTags added in v0.4.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.4.3

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

func (*FakeImageStreamTags) Get added in v0.4.3

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

type FakeImageStreams added in v0.4.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.4.3

func (*FakeImageStreams) Delete added in v0.4.3

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

func (*FakeImageStreams) Get added in v0.4.3

func (*FakeImageStreams) List added in v0.4.3

func (*FakeImageStreams) Update added in v0.4.3

func (*FakeImageStreams) Watch added in v0.4.3

func (c *FakeImageStreams) Watch(label labels.Selector, field fields.Selector, resourceVersion string) (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) Create

func (c *FakeImages) Create(image *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(label labels.Selector, field fields.Selector) (*imageapi.ImageList, error)

type FakePolicies added in v0.2.2

type FakePolicies struct {
	Fake *Fake
}

func (*FakePolicies) Delete added in v0.2.2

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

func (*FakePolicies) Get added in v0.2.2

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

func (*FakePolicies) List added in v0.2.2

func (*FakePolicies) Watch added in v0.3.1

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

type FakePolicyBindings added in v0.2.2

type FakePolicyBindings struct {
	Fake *Fake
}

func (*FakePolicyBindings) Create added in v0.2.2

func (*FakePolicyBindings) Delete added in v0.2.2

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

func (*FakePolicyBindings) Get added in v0.2.2

func (*FakePolicyBindings) List added in v0.2.2

func (*FakePolicyBindings) Watch added in v0.3.1

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

type FakeProjectRequests added in v0.4.4

type FakeProjectRequests struct {
	Fake *Fake
}

func (*FakeProjectRequests) Create added in v0.4.4

type FakeProjects

type FakeProjects struct {
	Fake *Fake
}

func (*FakeProjects) Create

func (c *FakeProjects) Create(project *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(project *projectapi.Project) (*projectapi.Project, error)

type FakeResourceAccessReviews added in v0.3.1

type FakeResourceAccessReviews struct {
	Fake *Fake
}

func (*FakeResourceAccessReviews) Create added in v0.3.1

type FakeRoleBindings added in v0.2.2

type FakeRoleBindings struct {
	Fake *Fake
}

func (*FakeRoleBindings) Create added in v0.2.2

func (*FakeRoleBindings) Delete added in v0.2.2

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

func (*FakeRoleBindings) Get added in v0.4.2

func (*FakeRoleBindings) List added in v0.4.2

func (*FakeRoleBindings) Update added in v0.2.2

type FakeRoles added in v0.2.2

type FakeRoles struct {
	Fake *Fake
}

func (*FakeRoles) Create added in v0.2.2

func (*FakeRoles) Delete added in v0.2.2

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

func (*FakeRoles) Get added in v0.4.2

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

func (*FakeRoles) List added in v0.4.2

func (*FakeRoles) Update added in v0.2.2

type FakeRootResourceAccessReviews added in v0.4.1

type FakeRootResourceAccessReviews struct {
	Fake *Fake
}

func (*FakeRootResourceAccessReviews) Create added in v0.4.1

type FakeRoutes

type FakeRoutes struct {
	Fake      *Fake
	Namespace string
}

FakeRoutes 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 (*FakeRoutes) Create

func (c *FakeRoutes) Create(route *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(label labels.Selector, field fields.Selector) (*routeapi.RouteList, error)

func (*FakeRoutes) Update

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

func (*FakeRoutes) Watch

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

type FakeSubjectAccessReviews added in v0.3.1

type FakeSubjectAccessReviews struct {
	Fake *Fake
}

func (*FakeSubjectAccessReviews) Create added in v0.3.1

type FakeTemplateConfigs added in v0.4.4

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.4.4

func (c *FakeTemplateConfigs) Create(template *templateapi.Template) (*kapi.List, error)

type FakeTemplates added in v0.3.2

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.3.2

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

func (*FakeTemplates) Delete added in v0.3.2

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

func (*FakeTemplates) Get added in v0.3.2

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

func (*FakeTemplates) List added in v0.3.2

func (*FakeTemplates) Update added in v0.3.2

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

func (*FakeTemplates) Watch added in v0.3.2

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

type FakeUserIdentityMappings

type FakeUserIdentityMappings struct {
	Fake *Fake
}

FakeUserIdentityMappings 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 (*FakeUserIdentityMappings) Create added in v0.4.2

func (*FakeUserIdentityMappings) Delete added in v0.4.2

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

func (*FakeUserIdentityMappings) Get added in v0.4.2

func (*FakeUserIdentityMappings) Update added in v0.4.2

type FakeUsers

type FakeUsers struct {
	Fake *Fake
}

FakeUsers 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 (*FakeUsers) Create added in v0.4.2

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

func (*FakeUsers) Get

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

func (*FakeUsers) List added in v0.4.2

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

func (*FakeUsers) Update added in v0.4.2

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

type IdentitiesInterface added in v0.4.2

type IdentitiesInterface interface {
	Identities() IdentityInterface
}

IdentitiesInterface has methods to work with Identity resources

type IdentityInterface added in v0.4.2

type IdentityInterface interface {
	List(label labels.Selector, field fields.Selector) (*userapi.IdentityList, error)
	Get(name string) (*userapi.Identity, error)
	Create(identity *userapi.Identity) (*userapi.Identity, error)
	Update(identity *userapi.Identity) (*userapi.Identity, error)
}

IdentityInterface exposes methods on identity resources.

type ImageInterface

type ImageInterface interface {
	List(label labels.Selector, field fields.Selector) (*imageapi.ImageList, error)
	Get(name string) (*imageapi.Image, error)
	Create(image *imageapi.Image) (*imageapi.Image, error)
	Delete(name string) error
}

ImageInterface exposes methods on Image resources.

type ImageRepositoriesNamespacer

type ImageRepositoriesNamespacer interface {
	ImageRepositories(namespace string) ImageRepositoryInterface
}

ImageRepositoriesNamespacer has methods to work with ImageRepository resources in a namespace

type ImageRepositoryInterface

type ImageRepositoryInterface interface {
	List(label labels.Selector, field fields.Selector) (*imageapi.ImageRepositoryList, error)
	Get(name string) (*imageapi.ImageRepository, error)
	Create(repo *imageapi.ImageRepository) (*imageapi.ImageRepository, error)
	Update(repo *imageapi.ImageRepository) (*imageapi.ImageRepository, error)
	Delete(name string) error
	Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
}

ImageRepositoryInterface exposes methods on ImageRepository resources.

type ImageRepositoryMappingInterface

type ImageRepositoryMappingInterface interface {
	Create(mapping *imageapi.ImageRepositoryMapping) error
}

ImageRepositoryMappingInterface exposes methods on ImageRepositoryMapping resources.

type ImageRepositoryMappingsNamespacer

type ImageRepositoryMappingsNamespacer interface {
	ImageRepositoryMappings(namespace string) ImageRepositoryMappingInterface
}

ImageRepositoryMappingsNamespacer has methods to work with ImageRepositoryMapping resources in a namespace

type ImageRepositoryNamespaceGetter added in v0.3.1

type ImageRepositoryNamespaceGetter interface {
	GetByNamespace(namespace, name string) (*imageapi.ImageRepository, error)
}

ImageRepositoryNamespaceGetter exposes methods to get ImageRepositories by Namespace

type ImageRepositoryTagInterface

type ImageRepositoryTagInterface interface {
	Get(name, tag string) (*api.ImageRepositoryTag, error)
	Delete(name, tag string) error
}

ImageRepositoryTagInterface exposes methods on ImageRepositoryTag resources.

type ImageRepositoryTagsNamespacer

type ImageRepositoryTagsNamespacer interface {
	ImageRepositoryTags(namespace string) ImageRepositoryTagInterface
}

ImageRepositoryTagsNamespacer has methods to work with ImageRepositoryTag resources in a namespace

type ImageStreamImageInterface added in v0.4.2

type ImageStreamImageInterface interface {
	Get(name, id string) (*api.ImageStreamImage, error)
}

ImageStreamImageInterface exposes methods on ImageStreamImage resources.

type ImageStreamImagesNamespacer added in v0.4.2

type ImageStreamImagesNamespacer interface {
	ImageStreamImages(namespace string) ImageStreamImageInterface
}

ImageStreamImagesNamespacer has methods to work with ImageStreamImage resources in a namespace

type ImageStreamInterface added in v0.4.3

type ImageStreamInterface interface {
	List(label labels.Selector, field fields.Selector) (*imageapi.ImageStreamList, error)
	Get(name string) (*imageapi.ImageStream, error)
	Create(stream *imageapi.ImageStream) (*imageapi.ImageStream, error)
	Update(stream *imageapi.ImageStream) (*imageapi.ImageStream, error)
	Delete(name string) error
	Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
}

ImageStreamInterface exposes methods on ImageStream resources.

type ImageStreamMappingInterface added in v0.4.3

type ImageStreamMappingInterface interface {
	Create(mapping *imageapi.ImageStreamMapping) error
}

ImageStreamMappingInterface exposes methods on ImageStreamMapping resources.

type ImageStreamMappingsNamespacer added in v0.4.3

type ImageStreamMappingsNamespacer interface {
	ImageStreamMappings(namespace string) ImageStreamMappingInterface
}

ImageStreamMappingsNamespacer has methods to work with ImageStreamMapping resources in a namespace

type ImageStreamNamespaceGetter added in v0.4.3

type ImageStreamNamespaceGetter interface {
	GetByNamespace(namespace, name string) (*imageapi.ImageStream, error)
}

ImageStreamNamespaceGetter exposes methods to get ImageStreams by Namespace

type ImageStreamTagInterface added in v0.4.3

type ImageStreamTagInterface interface {
	Get(name, tag string) (*api.ImageStreamTag, error)
	Delete(name, tag string) error
}

ImageStreamTagInterface exposes methods on ImageStreamTag resources.

type ImageStreamTagsNamespacer added in v0.4.3

type ImageStreamTagsNamespacer interface {
	ImageStreamTags(namespace string) ImageStreamTagInterface
}

ImageStreamTagsNamespacer has methods to work with ImageStreamTag resources in a namespace

type ImageStreamsNamespacer added in v0.4.3

type ImageStreamsNamespacer interface {
	ImageStreams(namespace string) ImageStreamInterface
}

ImageStreamsNamespacer has methods to work with ImageStream resources in a namespace

type ImagesInterfacer added in v0.4.2

type ImagesInterfacer interface {
	Images() ImageInterface
}

ImagesInterfacer has methods to work with Image resources

type PoliciesNamespacer added in v0.2.2

type PoliciesNamespacer interface {
	Policies(namespace string) PolicyInterface
}

PoliciesNamespacer has methods to work with Policy resources in a namespace

type PolicyBindingInterface added in v0.2.2

type PolicyBindingInterface interface {
	List(label labels.Selector, field fields.Selector) (*authorizationapi.PolicyBindingList, error)
	Get(name string) (*authorizationapi.PolicyBinding, error)
	Create(policyBinding *authorizationapi.PolicyBinding) (*authorizationapi.PolicyBinding, error)
	Delete(name string) error
	Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
}

PolicyBindingInterface exposes methods on PolicyBinding resources.

type PolicyBindingsNamespacer added in v0.2.2

type PolicyBindingsNamespacer interface {
	PolicyBindings(namespace string) PolicyBindingInterface
}

PolicyBindingsNamespacer has methods to work with PolicyBinding resources in a namespace

type PolicyInterface added in v0.2.2

type PolicyInterface interface {
	List(label labels.Selector, field fields.Selector) (*authorizationapi.PolicyList, error)
	Get(name string) (*authorizationapi.Policy, error)
	Delete(name string) error
	Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
}

PolicyInterface exposes methods on Policy resources.

type ProjectInterface

type ProjectInterface interface {
	Create(p *projectapi.Project) (*projectapi.Project, error)
	Delete(name string) error
	Get(name string) (*projectapi.Project, error)
	List(label labels.Selector, field fields.Selector) (*projectapi.ProjectList, error)
}

UserInterface exposes methods on user resources.

type ProjectRequestInterface added in v0.4.4

type ProjectRequestInterface interface {
	Create(p *projectapi.ProjectRequest) (*projectapi.Project, error)
}

UserInterface exposes methods on user resources.

type ProjectRequestsInterface added in v0.4.4

type ProjectRequestsInterface interface {
	ProjectRequests() ProjectRequestInterface
}

UsersInterface has methods to work with User resources in a namespace

type ProjectsInterface

type ProjectsInterface interface {
	Projects() ProjectInterface
}

UsersInterface has methods to work with User resources in a namespace

type ResourceAccessReviewInterface added in v0.3.1

type ResourceAccessReviewInterface interface {
	Create(policy *authorizationapi.ResourceAccessReview) (*authorizationapi.ResourceAccessReviewResponse, error)
}

ResourceAccessReviewInterface exposes methods on ResourceAccessReview resources.

type ResourceAccessReviewsNamespacer added in v0.3.1

type ResourceAccessReviewsNamespacer interface {
	ResourceAccessReviews(namespace string) ResourceAccessReviewInterface
}

ResourceAccessReviewsNamespacer has methods to work with ResourceAccessReview resources in a namespace

type RoleBindingInterface added in v0.2.2

type RoleBindingInterface interface {
	List(label labels.Selector, field fields.Selector) (*authorizationapi.RoleBindingList, error)
	Get(name string) (*authorizationapi.RoleBinding, error)
	Create(roleBinding *authorizationapi.RoleBinding) (*authorizationapi.RoleBinding, error)
	Update(roleBinding *authorizationapi.RoleBinding) (*authorizationapi.RoleBinding, error)
	Delete(name string) error
}

RoleBindingInterface exposes methods on RoleBinding resources.

type RoleBindingsNamespacer added in v0.2.2

type RoleBindingsNamespacer interface {
	RoleBindings(namespace string) RoleBindingInterface
}

RoleBindingsNamespacer has methods to work with RoleBinding resources in a namespace

type RoleInterface added in v0.2.2

type RoleInterface interface {
	List(label labels.Selector, field fields.Selector) (*authorizationapi.RoleList, error)
	Get(name string) (*authorizationapi.Role, error)
	Create(role *authorizationapi.Role) (*authorizationapi.Role, error)
	Update(role *authorizationapi.Role) (*authorizationapi.Role, error)
	Delete(name string) error
}

RoleInterface exposes methods on Role resources.

type RolesNamespacer added in v0.2.2

type RolesNamespacer interface {
	Roles(namespace string) RoleInterface
}

RolesNamespacer has methods to work with Role resources in a namespace

type RootResourceAccessReviews added in v0.4.1

type RootResourceAccessReviews interface {
	RootResourceAccessReviews() ResourceAccessReviewInterface
}

RootResourceAccessReviews has methods to work with ResourceAccessReview resources in the root scope

type RouteInterface

type RouteInterface interface {
	List(label labels.Selector, field fields.Selector) (*routeapi.RouteList, error)
	Get(name string) (*routeapi.Route, error)
	Create(route *routeapi.Route) (*routeapi.Route, error)
	Update(route *routeapi.Route) (*routeapi.Route, error)
	Delete(name string) error
	Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
}

RouteInterface exposes methods on Route resources

type RoutesNamespacer

type RoutesNamespacer interface {
	Routes(namespace string) RouteInterface
}

RoutesNamespacer has methods to work with Route resources in a namespace

type SubjectAccessReviewInterface added in v0.3.1

type SubjectAccessReviewInterface interface {
	Create(policy *authorizationapi.SubjectAccessReview) (*authorizationapi.SubjectAccessReviewResponse, error)
}

SubjectAccessReviewInterface exposes methods on SubjectAccessReview resources.

type SubjectAccessReviewsNamespacer added in v0.3.1

type SubjectAccessReviewsNamespacer interface {
	SubjectAccessReviews(namespace string) SubjectAccessReviewInterface
}

SubjectAccessReviewsNamespacer has methods to work with SubjectAccessReview resources in a namespace

type TemplateConfigInterface added in v0.2.2

type TemplateConfigInterface interface {
	Create(t *templateapi.Template) (*kapi.List, error)
}

TemplateConfigInterface exposes methods on Image resources.

type TemplateConfigsNamespacer added in v0.2.2

type TemplateConfigsNamespacer interface {
	TemplateConfigs(namespace string) TemplateConfigInterface
}

TemplateConfigNamespacer has methods to work with Image resources in a namespace TODO: Rename to ProcessedTemplates

type TemplateInterface added in v0.3.2

type TemplateInterface interface {
	List(label labels.Selector, field fields.Selector) (*templateapi.TemplateList, error)
	Get(name string) (*templateapi.Template, error)
	Create(template *templateapi.Template) (*templateapi.Template, error)
	Update(template *templateapi.Template) (*templateapi.Template, error)
	Delete(name string) error
	Watch(label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
}

TemplateInterface exposes methods on Template resources.

type TemplatesNamespacer added in v0.3.2

type TemplatesNamespacer interface {
	Templates(namespace string) TemplateInterface
}

TemplatesNamespacer has methods to work with Template resources in a namespace

type UserIdentityMappingInterface

type UserIdentityMappingInterface interface {
	Get(string) (*userapi.UserIdentityMapping, error)
	Create(*userapi.UserIdentityMapping) (*userapi.UserIdentityMapping, error)
	Update(*userapi.UserIdentityMapping) (*userapi.UserIdentityMapping, error)
	Delete(string) error
}

UserIdentityMappingInterface exposes methods on UserIdentityMapping resources.

type UserIdentityMappingsInterface

type UserIdentityMappingsInterface interface {
	UserIdentityMappings() UserIdentityMappingInterface
}

UserIdentityMappingsInterface has methods to work with UserIdentityMapping resources in a namespace

type UserInterface

type UserInterface interface {
	List(label labels.Selector, field fields.Selector) (*userapi.UserList, error)
	Get(name string) (*userapi.User, error)
	Create(user *userapi.User) (*userapi.User, error)
	Update(user *userapi.User) (*userapi.User, error)
}

UserInterface exposes methods on user resources.

type UsersInterface

type UsersInterface interface {
	Users() UserInterface
}

UsersInterface has methods to work with User resources

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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