Documentation
¶
Index ¶
- func DefaultOpenShiftUserAgent() string
- func SetOpenShiftDefaults(config *kclient.Config) error
- type BuildConfigInterface
- type BuildConfigsNamespacer
- type BuildInterface
- type BuildsNamespacer
- type Client
- func (c *Client) BuildConfigs(namespace string) BuildConfigInterface
- func (c *Client) Builds(namespace string) BuildInterface
- func (c *Client) DeploymentConfigs(namespace string) DeploymentConfigInterface
- func (c *Client) Deployments(namespace string) DeploymentInterface
- func (c *Client) ImageRepositories(namespace string) ImageRepositoryInterface
- func (c *Client) ImageRepositoryMappings(namespace string) ImageRepositoryMappingInterface
- func (c *Client) ImageRepositoryTags(namespace string) ImageRepositoryTagInterface
- func (c *Client) Images(namespace string) ImageInterface
- func (c *Client) Policies(namespace string) PolicyInterface
- func (c *Client) PolicyBindings(namespace string) PolicyBindingInterface
- func (c *Client) Projects() ProjectInterface
- func (c *Client) ResourceAccessReviews(namespace string) ResourceAccessReviewInterface
- func (c *Client) RoleBindings(namespace string) RoleBindingInterface
- func (c *Client) Roles(namespace string) RoleInterface
- func (c *Client) Routes(namespace string) RouteInterface
- func (c *Client) SubjectAccessReviews(namespace string) SubjectAccessReviewInterface
- func (c *Client) TemplateConfigs(namespace string) TemplateConfigInterface
- func (c *Client) Templates(namespace string) TemplateInterface
- func (c *Client) UserIdentityMappings() UserIdentityMappingInterface
- func (c *Client) Users() UserInterface
- type DeploymentConfigInterface
- type DeploymentConfigsNamespacer
- type DeploymentInterface
- type DeploymentsNamespacer
- type Fake
- func (c *Fake) BuildConfigs(namespace string) BuildConfigInterface
- func (c *Fake) Builds(namespace string) BuildInterface
- func (c *Fake) DeploymentConfigs(namespace string) DeploymentConfigInterface
- func (c *Fake) Deployments(namespace string) DeploymentInterface
- func (c *Fake) ImageRepositories(namespace string) ImageRepositoryInterface
- func (c *Fake) ImageRepositoryMappings(namespace string) ImageRepositoryMappingInterface
- func (c *Fake) ImageRepositoryTags(namespace string) ImageRepositoryTagInterface
- func (c *Fake) Images(namespace string) ImageInterface
- func (c *Fake) Policies(namespace string) PolicyInterface
- func (c *Fake) PolicyBindings(namespace string) PolicyBindingInterface
- func (c *Fake) Projects() ProjectInterface
- func (c *Fake) ResourceAccessReviews(namespace string) ResourceAccessReviewInterface
- func (c *Fake) RoleBindings(namespace string) RoleBindingInterface
- func (c *Fake) Roles(namespace string) RoleInterface
- func (c *Fake) Routes(namespace string) RouteInterface
- func (c *Fake) SubjectAccessReviews(namespace string) SubjectAccessReviewInterface
- func (c *Fake) Templates(namespace string) TemplateInterface
- func (c *Fake) UserIdentityMappings() UserIdentityMappingInterface
- func (c *Fake) Users() UserInterface
- type FakeAction
- type FakeBuildConfigs
- func (c *FakeBuildConfigs) Create(config *buildapi.BuildConfig) (*buildapi.BuildConfig, error)
- func (c *FakeBuildConfigs) Delete(name string) error
- func (c *FakeBuildConfigs) Get(name string) (*buildapi.BuildConfig, error)
- func (c *FakeBuildConfigs) List(label, field labels.Selector) (*buildapi.BuildConfigList, error)
- func (c *FakeBuildConfigs) Update(config *buildapi.BuildConfig) (*buildapi.BuildConfig, error)
- func (c *FakeBuildConfigs) Watch(label, field labels.Selector, resourceVersion string) (watch.Interface, error)
- type FakeBuilds
- func (c *FakeBuilds) Create(build *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(label, field labels.Selector) (*buildapi.BuildList, error)
- func (c *FakeBuilds) Update(build *buildapi.Build) (*buildapi.Build, error)
- func (c *FakeBuilds) Watch(label, field labels.Selector, resourceVersion string) (watch.Interface, error)
- type FakeDeploymentConfigs
- func (c *FakeDeploymentConfigs) Create(config *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) List(label, field labels.Selector) (*deployapi.DeploymentConfigList, error)
- func (c *FakeDeploymentConfigs) Rollback(config *deployapi.DeploymentConfigRollback) (result *deployapi.DeploymentConfig, err error)
- func (c *FakeDeploymentConfigs) Update(config *deployapi.DeploymentConfig) (*deployapi.DeploymentConfig, error)
- func (c *FakeDeploymentConfigs) Watch(label, field labels.Selector, resourceVersion string) (watch.Interface, error)
- type FakeDeployments
- func (c *FakeDeployments) Create(deployment *deployapi.Deployment) (*deployapi.Deployment, error)
- func (c *FakeDeployments) Delete(name string) error
- func (c *FakeDeployments) Get(name string) (*deployapi.Deployment, error)
- func (c *FakeDeployments) List(label, field labels.Selector) (*deployapi.DeploymentList, error)
- func (c *FakeDeployments) Update(deployment *deployapi.Deployment) (*deployapi.Deployment, error)
- func (c *FakeDeployments) Watch(label, field labels.Selector, resourceVersion string) (watch.Interface, error)
- type FakeImageRepositories
- func (c *FakeImageRepositories) Create(repo *imageapi.ImageRepository) (*imageapi.ImageRepository, error)
- func (c *FakeImageRepositories) Delete(name string) error
- func (c *FakeImageRepositories) Get(name string) (*imageapi.ImageRepository, error)
- func (c *FakeImageRepositories) List(label, field labels.Selector) (*imageapi.ImageRepositoryList, error)
- func (c *FakeImageRepositories) Update(repo *imageapi.ImageRepository) (*imageapi.ImageRepository, error)
- func (c *FakeImageRepositories) Watch(label, field labels.Selector, resourceVersion string) (watch.Interface, error)
- type FakeImageRepositoryMappings
- type FakeImageRepositoryTags
- type FakeImages
- type FakePolicies
- func (c *FakePolicies) Delete(name string) error
- func (c *FakePolicies) Get(name string) (*authorizationapi.Policy, error)
- func (c *FakePolicies) List(label, field labels.Selector) (*authorizationapi.PolicyList, error)
- func (c *FakePolicies) Watch(label, field labels.Selector, resourceVersion string) (watch.Interface, error)
- type FakePolicyBindings
- func (c *FakePolicyBindings) Create(policyBinding *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(label, field labels.Selector) (*authorizationapi.PolicyBindingList, error)
- func (c *FakePolicyBindings) Watch(label, field labels.Selector, resourceVersion string) (watch.Interface, error)
- type FakeProjects
- func (c *FakeProjects) Create(project *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(label, field labels.Selector) (*projectapi.ProjectList, error)
- func (c *FakeProjects) Update(project *projectapi.Project) (*projectapi.Project, error)
- type FakeResourceAccessReviews
- type FakeRoleBindings
- type FakeRoles
- type FakeRoutes
- func (c *FakeRoutes) Create(route *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(label, field labels.Selector) (*routeapi.RouteList, error)
- func (c *FakeRoutes) Update(route *routeapi.Route) (*routeapi.Route, error)
- func (c *FakeRoutes) Watch(label, field labels.Selector, resourceVersion string) (watch.Interface, error)
- type FakeSubjectAccessReviews
- type FakeTemplates
- func (c *FakeTemplates) Create(template *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(label, field labels.Selector) (*templateapi.TemplateList, error)
- func (c *FakeTemplates) Update(template *templateapi.Template) (*templateapi.Template, error)
- func (c *FakeTemplates) Watch(label, field labels.Selector, resourceVersion string) (watch.Interface, error)
- type FakeUserIdentityMappings
- type FakeUsers
- type ImageInterface
- type ImageRepositoriesNamespacer
- type ImageRepositoryInterface
- type ImageRepositoryMappingInterface
- type ImageRepositoryMappingsNamespacer
- type ImageRepositoryNamespaceGetter
- type ImageRepositoryTagInterface
- type ImageRepositoryTagsNamespacer
- type ImagesNamespacer
- type Interface
- type PoliciesNamespacer
- type PolicyBindingInterface
- type PolicyBindingsNamespacer
- type PolicyInterface
- type ProjectInterface
- type ProjectsInterface
- type ResourceAccessReviewInterface
- type ResourceAccessReviewsNamespacer
- type RoleBindingInterface
- type RoleBindingsNamespacer
- type RoleInterface
- type RolesNamespacer
- type RouteInterface
- type RoutesNamespacer
- type SubjectAccessReviewInterface
- type SubjectAccessReviewsNamespacer
- type TemplateConfigInterface
- type TemplateConfigsNamespacer
- type TemplateInterface
- type TemplatesNamespacer
- type UserIdentityMappingInterface
- type UserIdentityMappingsInterface
- type UserInterface
- type UsersInterface
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
Types ¶
type BuildConfigInterface ¶
type BuildConfigInterface interface {
List(label, field labels.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, field labels.Selector, resourceVersion string) (watch.Interface, error)
}
BuildConfigInterface exposes methods on BuildConfig resources
type BuildConfigsNamespacer ¶ added in v0.2.1
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, field labels.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, field labels.Selector, resourceVersion string) (watch.Interface, error)
}
BuildInterface exposes methods on Build resources.
type BuildsNamespacer ¶ added in v0.2.1
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 ¶
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 ¶
NewOrDie creates an OpenShift client and panics if the provided API version is not recognized.
func (*Client) BuildConfigs ¶ added in v0.2.1
func (c *Client) BuildConfigs(namespace string) BuildConfigInterface
func (*Client) Builds ¶ added in v0.2.1
func (c *Client) Builds(namespace string) BuildInterface
func (*Client) DeploymentConfigs ¶ added in v0.2.1
func (c *Client) DeploymentConfigs(namespace string) DeploymentConfigInterface
DeploymentConfigs provides a REST client for DeploymentConfig
func (*Client) Deployments ¶ added in v0.2.1
func (c *Client) Deployments(namespace string) DeploymentInterface
Deployments provides a REST client for Deployment
func (*Client) ImageRepositories ¶ added in v0.2.1
func (c *Client) ImageRepositories(namespace string) ImageRepositoryInterface
ImageRepositories provides a REST client for ImageRepository
func (*Client) ImageRepositoryMappings ¶ added in v0.2.1
func (c *Client) ImageRepositoryMappings(namespace string) ImageRepositoryMappingInterface
ImageRepositoryMappings provides a REST client for ImageRepositoryMapping
func (*Client) ImageRepositoryTags ¶ added in v0.2.1
func (c *Client) ImageRepositoryTags(namespace string) ImageRepositoryTagInterface
ImageRepositoryTags provides a REST client for ImageRepositoryTag
func (*Client) Images ¶ added in v0.2.1
func (c *Client) Images(namespace string) ImageInterface
func (*Client) Policies ¶ added in v0.2.2
func (c *Client) Policies(namespace string) PolicyInterface
func (*Client) PolicyBindings ¶ added in v0.2.2
func (c *Client) PolicyBindings(namespace string) PolicyBindingInterface
func (*Client) Projects ¶ added in v0.2.1
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
func (*Client) RoleBindings ¶ added in v0.2.2
func (c *Client) RoleBindings(namespace string) RoleBindingInterface
func (*Client) Roles ¶ added in v0.2.2
func (c *Client) Roles(namespace string) RoleInterface
func (*Client) Routes ¶ added in v0.2.1
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
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
TemplateConfigs provides a REST client for TemplateConfig
func (*Client) UserIdentityMappings ¶ added in v0.2.1
func (c *Client) UserIdentityMappings() UserIdentityMappingInterface
UserIdentityMappings provides a REST client for UserIdentityMapping
func (*Client) Users ¶ added in v0.2.1
func (c *Client) Users() UserInterface
Users provides a REST client for User
type DeploymentConfigInterface ¶
type DeploymentConfigInterface interface {
List(label, field labels.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, field labels.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 ¶ added in v0.2.1
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, field labels.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, field labels.Selector, resourceVersion string) (watch.Interface, error)
}
DeploymentInterface contains methods for working with Deployments
type DeploymentsNamespacer ¶ added in v0.2.1
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
}
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 ¶ added in v0.2.1
func (c *Fake) BuildConfigs(namespace string) BuildConfigInterface
func (*Fake) Builds ¶ added in v0.2.1
func (c *Fake) Builds(namespace string) BuildInterface
func (*Fake) DeploymentConfigs ¶ added in v0.2.1
func (c *Fake) DeploymentConfigs(namespace string) DeploymentConfigInterface
func (*Fake) Deployments ¶ added in v0.2.1
func (c *Fake) Deployments(namespace string) DeploymentInterface
func (*Fake) ImageRepositories ¶ added in v0.2.1
func (c *Fake) ImageRepositories(namespace string) ImageRepositoryInterface
func (*Fake) ImageRepositoryMappings ¶ added in v0.2.1
func (c *Fake) ImageRepositoryMappings(namespace string) ImageRepositoryMappingInterface
func (*Fake) ImageRepositoryTags ¶ added in v0.2.1
func (c *Fake) ImageRepositoryTags(namespace string) ImageRepositoryTagInterface
func (*Fake) Images ¶ added in v0.2.1
func (c *Fake) Images(namespace string) ImageInterface
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) Projects ¶ added in v0.2.1
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) Routes ¶ added in v0.2.1
func (c *Fake) Routes(namespace string) RouteInterface
func (*Fake) SubjectAccessReviews ¶ added in v0.3.1
func (c *Fake) SubjectAccessReviews(namespace string) SubjectAccessReviewInterface
func (*Fake) Templates ¶ added in v0.3.2
func (c *Fake) Templates(namespace string) TemplateInterface
func (*Fake) UserIdentityMappings ¶ added in v0.2.1
func (c *Fake) UserIdentityMappings() UserIdentityMappingInterface
func (*Fake) Users ¶ added in v0.2.1
func (c *Fake) Users() UserInterface
type FakeAction ¶
type FakeAction struct {
Action string
Value interface{}
}
type FakeBuildConfigs ¶ added in v0.2.1
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.2.1
func (c *FakeBuildConfigs) Create(config *buildapi.BuildConfig) (*buildapi.BuildConfig, error)
func (*FakeBuildConfigs) Delete ¶ added in v0.2.1
func (c *FakeBuildConfigs) Delete(name string) error
func (*FakeBuildConfigs) Get ¶ added in v0.2.1
func (c *FakeBuildConfigs) Get(name string) (*buildapi.BuildConfig, error)
func (*FakeBuildConfigs) List ¶ added in v0.2.1
func (c *FakeBuildConfigs) List(label, field labels.Selector) (*buildapi.BuildConfigList, error)
func (*FakeBuildConfigs) Update ¶ added in v0.2.1
func (c *FakeBuildConfigs) Update(config *buildapi.BuildConfig) (*buildapi.BuildConfig, error)
type FakeBuilds ¶ added in v0.2.1
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) Delete ¶ added in v0.2.1
func (c *FakeBuilds) Delete(name string) error
func (*FakeBuilds) Get ¶ added in v0.2.1
func (c *FakeBuilds) Get(name string) (*buildapi.Build, error)
type FakeDeploymentConfigs ¶ added in v0.2.1
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 ¶ added in v0.2.1
func (c *FakeDeploymentConfigs) Create(config *deployapi.DeploymentConfig) (*deployapi.DeploymentConfig, error)
func (*FakeDeploymentConfigs) Delete ¶ added in v0.2.1
func (c *FakeDeploymentConfigs) Delete(name string) error
func (*FakeDeploymentConfigs) Generate ¶ added in v0.2.1
func (c *FakeDeploymentConfigs) Generate(name string) (*deployapi.DeploymentConfig, error)
func (*FakeDeploymentConfigs) Get ¶ added in v0.2.1
func (c *FakeDeploymentConfigs) Get(name string) (*deployapi.DeploymentConfig, error)
func (*FakeDeploymentConfigs) List ¶ added in v0.2.1
func (c *FakeDeploymentConfigs) List(label, field labels.Selector) (*deployapi.DeploymentConfigList, error)
func (*FakeDeploymentConfigs) Rollback ¶ added in v0.2.2
func (c *FakeDeploymentConfigs) Rollback(config *deployapi.DeploymentConfigRollback) (result *deployapi.DeploymentConfig, err error)
func (*FakeDeploymentConfigs) Update ¶ added in v0.2.1
func (c *FakeDeploymentConfigs) Update(config *deployapi.DeploymentConfig) (*deployapi.DeploymentConfig, error)
type FakeDeployments ¶ added in v0.2.1
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 ¶ added in v0.2.1
func (c *FakeDeployments) Create(deployment *deployapi.Deployment) (*deployapi.Deployment, error)