Documentation ¶
Index ¶
- Variables
- func DefaultMultiRESTMapper() meta.MultiRESTMapper
- func DefaultOpenShiftUserAgent() string
- func IsStatusErrorKind(err error, kind string) bool
- func NewDelegatingScaleNamespacer(dcNamespacer DeploymentConfigsNamespacer, sNamespacer kclient.ScaleNamespacer) unversioned_extensions.ScalesGetter
- func SetOpenShiftDefaults(config *restclient.Config) error
- type BuildConfigInterface
- type BuildConfigsNamespacer
- type BuildInterface
- type BuildLogsInterface
- type BuildLogsNamespacer
- type BuildsNamespacer
- type Client
- func (c *Client) BuildConfigs(namespace string) BuildConfigInterface
- func (c *Client) BuildLogs(namespace string) BuildLogsInterface
- func (c *Client) Builds(namespace string) BuildInterface
- func (c *Client) ClusterNetwork() ClusterNetworkInterface
- func (c *Client) ClusterPolicies() ClusterPolicyInterface
- func (c *Client) ClusterPolicyBindings() ClusterPolicyBindingInterface
- func (c *Client) ClusterRoleBindings() ClusterRoleBindingInterface
- func (c *Client) ClusterRoles() ClusterRoleInterface
- func (c *Client) DeploymentConfigs(namespace string) DeploymentConfigInterface
- func (c *Client) DeploymentLogs(namespace string) DeploymentLogInterface
- func (c *Client) Groups() GroupInterface
- func (c *Client) HostSubnets() HostSubnetInterface
- func (c *Client) Identities() IdentityInterface
- func (c *Client) ImageStreamImages(namespace string) ImageStreamImageInterface
- func (c *Client) ImageStreamMappings(namespace string) ImageStreamMappingInterface
- func (c *Client) ImageStreamSecrets(namespace string) ImageStreamSecretInterface
- func (c *Client) ImageStreamTags(namespace string) ImageStreamTagInterface
- func (c *Client) ImageStreams(namespace string) ImageStreamInterface
- func (c *Client) Images() ImageInterface
- func (c *Client) ImpersonateLocalSubjectAccessReviews(namespace, token string) LocalSubjectAccessReviewInterface
- func (c *Client) ImpersonateSubjectAccessReviews(token string) SubjectAccessReviewInterface
- func (c *Client) LocalResourceAccessReviews(namespace string) LocalResourceAccessReviewInterface
- func (c *Client) LocalSubjectAccessReviews(namespace string) LocalSubjectAccessReviewInterface
- func (c *Client) NetNamespaces() NetNamespaceInterface
- func (c *Client) OAuthAccessTokens() OAuthAccessTokenInterface
- func (c *Client) OAuthAuthorizeTokens() OAuthAuthorizeTokenInterface
- func (c *Client) OAuthClientAuthorizations() OAuthClientAuthorizationInterface
- func (c *Client) OAuthClients() OAuthClientInterface
- func (c *Client) Policies(namespace string) PolicyInterface
- func (c *Client) PolicyBindings(namespace string) PolicyBindingInterface
- func (c *Client) ProjectRequests() ProjectRequestInterface
- func (c *Client) Projects() ProjectInterface
- func (c *Client) ResourceAccessReviews() 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) SelfSubjectRulesReviews(namespace string) SelfSubjectRulesReviewInterface
- func (c *Client) SubjectAccessReviews() 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 ClusterNetworkInterface
- type ClusterNetworkingInterface
- type ClusterPoliciesInterface
- type ClusterPolicyBindingInterface
- type ClusterPolicyBindingsInterface
- type ClusterPolicyInterface
- type ClusterRoleBindingInterface
- type ClusterRoleBindingsInterface
- type ClusterRoleInterface
- type ClusterRolesInterface
- type DeploymentConfigInterface
- type DeploymentConfigsNamespacer
- type DeploymentLogInterface
- type DeploymentLogsNamespacer
- type DiscoveryClient
- type GroupInterface
- type GroupsInterface
- type HostSubnetInterface
- type HostSubnetsInterface
- type IdentitiesInterface
- type IdentityInterface
- type ImageInterface
- type ImageStreamImageInterface
- type ImageStreamImagesNamespacer
- type ImageStreamInterface
- type ImageStreamMappingInterface
- type ImageStreamMappingsNamespacer
- type ImageStreamNamespaceGetter
- type ImageStreamSecretInterface
- type ImageStreamSecretsNamespacer
- type ImageStreamTagInterface
- type ImageStreamTagsNamespacer
- type ImageStreamsNamespacer
- type ImagesInterfacer
- type Interface
- type LocalResourceAccessReviewInterface
- type LocalResourceAccessReviewsNamespacer
- type LocalSubjectAccessReviewInterface
- type LocalSubjectAccessReviewsImpersonator
- type LocalSubjectAccessReviewsNamespacer
- type NetNamespaceInterface
- type NetNamespacesInterface
- type OAuthAccessTokenInterface
- type OAuthAccessTokensInterface
- type OAuthAuthorizeTokenInterface
- type OAuthAuthorizeTokensInterface
- type OAuthClientAuthorizationInterface
- type OAuthClientAuthorizationsInterface
- type OAuthClientInterface
- type OAuthClientsInterface
- type PoliciesNamespacer
- type PolicyBindingInterface
- type PolicyBindingsNamespacer
- type PolicyInterface
- type ProjectInterface
- type ProjectRequestInterface
- type ProjectRequestsInterface
- type ProjectsInterface
- type ResourceAccessReviewInterface
- type ResourceAccessReviews
- type RoleBindingInterface
- type RoleBindingsNamespacer
- type RoleInterface
- type RolesNamespacer
- type RouteInterface
- type RoutesNamespacer
- type SelfSubjectRulesReviewInterface
- type SelfSubjectRulesReviewsNamespacer
- type SubjectAccessReviewInterface
- type SubjectAccessReviews
- type SubjectAccessReviewsImpersonator
- type TemplateConfigInterface
- type TemplateConfigsNamespacer
- type TemplateInterface
- type TemplatesNamespacer
- type UserIdentityMappingInterface
- type UserIdentityMappingsInterface
- type UserInterface
- type UsersInterface
Constants ¶
This section is empty.
Variables ¶
var ErrImageStreamImportUnsupported = errors.New("the server does not support directly importing images - create an image stream with tags or the dockerImageRepository field set")
var ErrTriggerIsNotAWebHook = fmt.Errorf("the specified trigger is not a webhook")
ErrTriggerIsNotAWebHook is returned when a webhook URL is requested for a trigger that is not a webhook type.
Functions ¶
func DefaultMultiRESTMapper ¶ added in v1.3.0
func DefaultMultiRESTMapper() meta.MultiRESTMapper
DefaultMultiRESTMapper returns the multi REST mapper with all OpenShift and Kubernetes objects already registered.
func DefaultOpenShiftUserAgent ¶
func DefaultOpenShiftUserAgent() string
DefaultOpenShiftUserAgent returns the default user agent that clients can use.
func IsStatusErrorKind ¶ added in v1.1.2
IsStatusErrorKind returns true if this error describes the provided kind.
func NewDelegatingScaleNamespacer ¶ added in v1.0.8
func NewDelegatingScaleNamespacer(dcNamespacer DeploymentConfigsNamespacer, sNamespacer kclient.ScaleNamespacer) unversioned_extensions.ScalesGetter
func SetOpenShiftDefaults ¶
func SetOpenShiftDefaults(config *restclient.Config) error
SetOpenShiftDefaults sets the default settings on the passed client configuration
Types ¶
type BuildConfigInterface ¶
type BuildConfigInterface interface { List(opts kapi.ListOptions) (*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(opts kapi.ListOptions) (watch.Interface, error) Instantiate(request *buildapi.BuildRequest) (result *buildapi.Build, err error) InstantiateBinary(request *buildapi.BinaryBuildRequestOptions, r io.Reader) (result *buildapi.Build, err error) WebHookURL(name string, trigger *buildapi.BuildTriggerPolicy) (*url.URL, 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(opts kapi.ListOptions) (*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(opts kapi.ListOptions) (watch.Interface, error) Clone(request *buildapi.BuildRequest) (*buildapi.Build, error) UpdateDetails(build *buildapi.Build) (*buildapi.Build, error) }
BuildInterface exposes methods on Build resources.
type BuildLogsInterface ¶
type BuildLogsInterface interface {
Get(name string, opts api.BuildLogOptions) *restclient.Request
}
BuildLogsInterface exposes methods on BuildLogs resources.
type BuildLogsNamespacer ¶
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 {
*restclient.RESTClient
}
Client is an OpenShift client object
func New ¶
func New(c *restclient.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 *restclient.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 ¶
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) ClusterNetwork ¶
func (c *Client) ClusterNetwork() ClusterNetworkInterface
ClusterNetwork provides a REST client for ClusterNetworking
func (*Client) ClusterPolicies ¶
func (c *Client) ClusterPolicies() ClusterPolicyInterface
func (*Client) ClusterPolicyBindings ¶
func (c *Client) ClusterPolicyBindings() ClusterPolicyBindingInterface
func (*Client) ClusterRoleBindings ¶
func (c *Client) ClusterRoleBindings() ClusterRoleBindingInterface
func (*Client) ClusterRoles ¶
func (c *Client) ClusterRoles() ClusterRoleInterface
func (*Client) DeploymentConfigs ¶
func (c *Client) DeploymentConfigs(namespace string) DeploymentConfigInterface
DeploymentConfigs provides a REST client for DeploymentConfig
func (*Client) DeploymentLogs ¶ added in v1.0.7
func (c *Client) DeploymentLogs(namespace string) DeploymentLogInterface
DeploymentLogs provides a REST client for DeploymentLog
func (*Client) Groups ¶ added in v1.0.4
func (c *Client) Groups() GroupInterface
Groups provides a REST client for Groups
func (*Client) HostSubnets ¶
func (c *Client) HostSubnets() HostSubnetInterface
HostSubnets provides a REST client for HostSubnet
func (*Client) Identities ¶
func (c *Client) Identities() IdentityInterface
Identities provides a REST client for Identity
func (*Client) ImageStreamImages ¶
func (c *Client) ImageStreamImages(namespace string) ImageStreamImageInterface
ImageStreamImages provides a REST client for ImageStreamImage
func (*Client) ImageStreamMappings ¶
func (c *Client) ImageStreamMappings(namespace string) ImageStreamMappingInterface
ImageStreamMappings provides a REST client for ImageStreamMapping
func (*Client) ImageStreamSecrets ¶ added in v1.1.2
func (c *Client) ImageStreamSecrets(namespace string) ImageStreamSecretInterface
ImageStreamImages provides a REST client for retrieving image secrets in a namespace
func (*Client) ImageStreamTags ¶
func (c *Client) ImageStreamTags(namespace string) ImageStreamTagInterface
ImageStreamTags provides a REST client for ImageStreamTag
func (*Client) ImageStreams ¶
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) ImpersonateLocalSubjectAccessReviews ¶ added in v1.0.5
func (c *Client) ImpersonateLocalSubjectAccessReviews(namespace, token string) LocalSubjectAccessReviewInterface
ImpersonateLocalSubjectAccessReviews provides a REST client for SubjectAccessReviews
func (*Client) ImpersonateSubjectAccessReviews ¶ added in v1.0.5
func (c *Client) ImpersonateSubjectAccessReviews(token string) SubjectAccessReviewInterface
ImpersonateSubjectAccessReviews provides a REST client for SubjectAccessReviews
func (*Client) LocalResourceAccessReviews ¶ added in v1.0.5
func (c *Client) LocalResourceAccessReviews(namespace string) LocalResourceAccessReviewInterface
LocalResourceAccessReviews provides a REST client for LocalResourceAccessReviews
func (*Client) LocalSubjectAccessReviews ¶ added in v1.0.5
func (c *Client) LocalSubjectAccessReviews(namespace string) LocalSubjectAccessReviewInterface
LocalSubjectAccessReviews provides a REST client for LocalSubjectAccessReviews
func (*Client) NetNamespaces ¶ added in v1.0.5
func (c *Client) NetNamespaces() NetNamespaceInterface
NetNamespaces provides a REST client for NetNamespace
func (*Client) OAuthAccessTokens ¶
func (c *Client) OAuthAccessTokens() OAuthAccessTokenInterface
func (*Client) OAuthAuthorizeTokens ¶ added in v1.3.0
func (c *Client) OAuthAuthorizeTokens() OAuthAuthorizeTokenInterface
func (*Client) OAuthClientAuthorizations ¶ added in v1.3.0
func (c *Client) OAuthClientAuthorizations() OAuthClientAuthorizationInterface
func (*Client) OAuthClients ¶ added in v1.3.0
func (c *Client) OAuthClients() OAuthClientInterface
func (*Client) Policies ¶
func (c *Client) Policies(namespace string) PolicyInterface
Policies provides a REST client for Policies
func (*Client) PolicyBindings ¶
func (c *Client) PolicyBindings(namespace string) PolicyBindingInterface
PolicyBindings provides a REST client for PolicyBindings
func (*Client) ProjectRequests ¶
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 ¶
func (c *Client) ResourceAccessReviews() ResourceAccessReviewInterface
ClusterResourceAccessReviews provides a REST client for ClusterResourceAccessReviews
func (*Client) RoleBindings ¶
func (c *Client) RoleBindings(namespace string) RoleBindingInterface
RoleBindings provides a REST client for RoleBindings
func (*Client) Roles ¶
func (c *Client) Roles(namespace string) RoleInterface
Roles provides a REST client for Roles
func (*Client) Routes ¶
func (c *Client) Routes(namespace string) RouteInterface
Routes provides a REST client for Route
func (*Client) SelfSubjectRulesReviews ¶ added in v1.3.0
func (c *Client) SelfSubjectRulesReviews(namespace string) SelfSubjectRulesReviewInterface
func (*Client) SubjectAccessReviews ¶
func (c *Client) SubjectAccessReviews() SubjectAccessReviewInterface
SubjectAccessReviews provides a REST client for SubjectAccessReviews
func (*Client) TemplateConfigs ¶
func (c *Client) TemplateConfigs(namespace string) TemplateConfigInterface
TemplateConfigs provides a REST client for TemplateConfig
func (*Client) Templates ¶
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
type ClusterNetworkInterface ¶
type ClusterNetworkInterface interface { Get(name string) (*sdnapi.ClusterNetwork, error) Create(sub *sdnapi.ClusterNetwork) (*sdnapi.ClusterNetwork, error) Update(sub *sdnapi.ClusterNetwork) (*sdnapi.ClusterNetwork, error) }
ClusterNetworkInterface exposes methods on clusterNetwork resources.
type ClusterNetworkingInterface ¶
type ClusterNetworkingInterface interface {
ClusterNetwork() ClusterNetworkInterface
}
ClusterNetworkingInterface has methods to work with ClusterNetwork resources
type ClusterPoliciesInterface ¶
type ClusterPoliciesInterface interface {
ClusterPolicies() ClusterPolicyInterface
}
ClusterPoliciesInterface has methods to work with ClusterPolicies resources in a namespace
type ClusterPolicyBindingInterface ¶
type ClusterPolicyBindingInterface interface { List(opts kapi.ListOptions) (*authorizationapi.ClusterPolicyBindingList, error) Get(name string) (*authorizationapi.ClusterPolicyBinding, error) Create(policyBinding *authorizationapi.ClusterPolicyBinding) (*authorizationapi.ClusterPolicyBinding, error) Delete(name string) error Watch(opts kapi.ListOptions) (watch.Interface, error) }
ClusterPolicyBindingInterface exposes methods on ClusterPolicyBindings resources
type ClusterPolicyBindingsInterface ¶
type ClusterPolicyBindingsInterface interface {
ClusterPolicyBindings() ClusterPolicyBindingInterface
}
ClusterPolicyBindingsInterface has methods to work with ClusterPolicyBindings resources in a namespace
type ClusterPolicyInterface ¶
type ClusterPolicyInterface interface { List(opts kapi.ListOptions) (*authorizationapi.ClusterPolicyList, error) Get(name string) (*authorizationapi.ClusterPolicy, error) Delete(name string) error Watch(opts kapi.ListOptions) (watch.Interface, error) }
ClusterPolicyInterface exposes methods on ClusterPolicies resources
type ClusterRoleBindingInterface ¶
type ClusterRoleBindingInterface interface { List(opts kapi.ListOptions) (*authorizationapi.ClusterRoleBindingList, error) Get(name string) (*authorizationapi.ClusterRoleBinding, error) Update(roleBinding *authorizationapi.ClusterRoleBinding) (*authorizationapi.ClusterRoleBinding, error) Create(roleBinding *authorizationapi.ClusterRoleBinding) (*authorizationapi.ClusterRoleBinding, error) Delete(name string) error }
ClusterRoleBindingInterface exposes methods on ClusterRoleBindings resources
type ClusterRoleBindingsInterface ¶
type ClusterRoleBindingsInterface interface {
ClusterRoleBindings() ClusterRoleBindingInterface
}
ClusterRoleBindingsInterface has methods to work with ClusterRoleBindings resources in a namespace
type ClusterRoleInterface ¶
type ClusterRoleInterface interface { List(opts kapi.ListOptions) (*authorizationapi.ClusterRoleList, error) Get(name string) (*authorizationapi.ClusterRole, error) Create(role *authorizationapi.ClusterRole) (*authorizationapi.ClusterRole, error) Update(role *authorizationapi.ClusterRole) (*authorizationapi.ClusterRole, error) Delete(name string) error }
ClusterRoleInterface exposes methods on ClusterRoles resources
type ClusterRolesInterface ¶
type ClusterRolesInterface interface {
ClusterRoles() ClusterRoleInterface
}
ClusterRolesInterface has methods to work with ClusterRoles resources in a namespace
type DeploymentConfigInterface ¶
type DeploymentConfigInterface interface { List(opts kapi.ListOptions) (*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(opts kapi.ListOptions) (watch.Interface, error) Generate(name string) (*deployapi.DeploymentConfig, error) Rollback(config *deployapi.DeploymentConfigRollback) (*deployapi.DeploymentConfig, error) GetScale(name string) (*extensions.Scale, error) UpdateScale(scale *extensions.Scale) (*extensions.Scale, error) UpdateStatus(config *deployapi.DeploymentConfig) (*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 DeploymentLogInterface ¶ added in v1.0.7
type DeploymentLogInterface interface {
Get(name string, opts api.DeploymentLogOptions) *restclient.Request
}
DeploymentLogInterface exposes methods on DeploymentLogs resources.
type DeploymentLogsNamespacer ¶ added in v1.0.7
type DeploymentLogsNamespacer interface {
DeploymentLogs(namespace string) DeploymentLogInterface
}
DeploymentLogsNamespacer has methods to work with DeploymentLogs resources in a namespace
type DiscoveryClient ¶ added in v1.1.4
type DiscoveryClient struct {
*discovery.DiscoveryClient
}
DiscoveryClient implements the functions that discovery server-supported API groups, versions and resources.
func NewDiscoveryClient ¶ added in v1.1.4
func NewDiscoveryClient(c *restclient.RESTClient) *DiscoveryClient
New creates a new DiscoveryClient for the given RESTClient.
func (*DiscoveryClient) ServerResources ¶ added in v1.1.4
func (d *DiscoveryClient) ServerResources() (map[string]*unversioned.APIResourceList, error)
ServerResources returns the supported resources for all groups and versions.
func (*DiscoveryClient) ServerResourcesForGroupVersion ¶ added in v1.1.4
func (d *DiscoveryClient) ServerResourcesForGroupVersion(groupVersion string) (resources *unversioned.APIResourceList, err error)
ServerResourcesForGroupVersion returns the supported resources for a group and version.
type GroupInterface ¶ added in v1.0.4
type GroupInterface interface { List(opts kapi.ListOptions) (*userapi.GroupList, error) Get(name string) (*userapi.Group, error) Create(group *userapi.Group) (*userapi.Group, error) Update(group *userapi.Group) (*userapi.Group, error) Delete(name string) error Watch(opts kapi.ListOptions) (watch.Interface, error) }
GroupInterface exposes methods on group resources.
type GroupsInterface ¶ added in v1.0.4
type GroupsInterface interface {
Groups() GroupInterface
}
GroupsInterface has methods to work with Group resources
type HostSubnetInterface ¶
type HostSubnetInterface interface { List(opts kapi.ListOptions) (*sdnapi.HostSubnetList, error) Get(name string) (*sdnapi.HostSubnet, error) Create(sub *sdnapi.HostSubnet) (*sdnapi.HostSubnet, error) Update(sub *sdnapi.HostSubnet) (*sdnapi.HostSubnet, error) Delete(name string) error Watch(opts kapi.ListOptions) (watch.Interface, error) }
HostSubnetInterface exposes methods on HostSubnet resources.
type HostSubnetsInterface ¶
type HostSubnetsInterface interface {
HostSubnets() HostSubnetInterface
}
HostSubnetInterface has methods to work with HostSubnet resources
type IdentitiesInterface ¶
type IdentitiesInterface interface {
Identities() IdentityInterface
}
IdentitiesInterface has methods to work with Identity resources
type IdentityInterface ¶
type IdentityInterface interface { List(opts kapi.ListOptions) (*userapi.IdentityList, error) Get(name string) (*userapi.Identity, error) Create(identity *userapi.Identity) (*userapi.Identity, error) Update(identity *userapi.Identity) (*userapi.Identity, error) Delete(name string) error }
IdentityInterface exposes methods on identity resources.
type ImageInterface ¶
type ImageInterface interface { List(opts kapi.ListOptions) (*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 ImageStreamImageInterface ¶
type ImageStreamImageInterface interface {
Get(name, id string) (*api.ImageStreamImage, error)
}
ImageStreamImageInterface exposes methods on ImageStreamImage resources.
type ImageStreamImagesNamespacer ¶
type ImageStreamImagesNamespacer interface {
ImageStreamImages(namespace string) ImageStreamImageInterface
}
ImageStreamImagesNamespacer has methods to work with ImageStreamImage resources in a namespace
type ImageStreamInterface ¶
type ImageStreamInterface interface { List(opts kapi.ListOptions) (*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(opts kapi.ListOptions) (watch.Interface, error) UpdateStatus(stream *imageapi.ImageStream) (*imageapi.ImageStream, error) Import(isi *imageapi.ImageStreamImport) (*imageapi.ImageStreamImport, error) }
ImageStreamInterface exposes methods on ImageStream resources.
type ImageStreamMappingInterface ¶
type ImageStreamMappingInterface interface {
Create(mapping *imageapi.ImageStreamMapping) error
}
ImageStreamMappingInterface exposes methods on ImageStreamMapping resources.
type ImageStreamMappingsNamespacer ¶
type ImageStreamMappingsNamespacer interface {
ImageStreamMappings(namespace string) ImageStreamMappingInterface
}
ImageStreamMappingsNamespacer has methods to work with ImageStreamMapping resources in a namespace
type ImageStreamNamespaceGetter ¶
type ImageStreamNamespaceGetter interface {
GetByNamespace(namespace, name string) (*imageapi.ImageStream, error)
}
ImageStreamNamespaceGetter exposes methods to get ImageStreams by Namespace
type ImageStreamSecretInterface ¶ added in v1.1.2
type ImageStreamSecretInterface interface { // Secrets retrieves the secrets for a named image stream with the provided list options. Secrets(name string, options kapi.ListOptions) (*kapi.SecretList, error) }
ImageStreamSecretInterface exposes methods on ImageStreamSecret resources.
type ImageStreamSecretsNamespacer ¶ added in v1.1.2
type ImageStreamSecretsNamespacer interface {
ImageStreamSecrets(namespace string) ImageStreamSecretInterface
}
ImageStreamSecretsNamespacer has methods to work with ImageStreamSecret resources in a namespace
type ImageStreamTagInterface ¶
type ImageStreamTagInterface interface { Get(name, tag string) (*api.ImageStreamTag, error) Update(tag *api.ImageStreamTag) (*api.ImageStreamTag, error) Delete(name, tag string) error }
ImageStreamTagInterface exposes methods on ImageStreamTag resources.
type ImageStreamTagsNamespacer ¶
type ImageStreamTagsNamespacer interface {
ImageStreamTags(namespace string) ImageStreamTagInterface
}
ImageStreamTagsNamespacer has methods to work with ImageStreamTag resources in a namespace
type ImageStreamsNamespacer ¶
type ImageStreamsNamespacer interface {
ImageStreams(namespace string) ImageStreamInterface
}
ImageStreamsNamespacer has methods to work with ImageStream resources in a namespace
type ImagesInterfacer ¶
type ImagesInterfacer interface {
Images() ImageInterface
}
ImagesInterfacer has methods to work with Image resources
type Interface ¶
type Interface interface { BuildsNamespacer BuildConfigsNamespacer BuildLogsNamespacer ImagesInterfacer ImageStreamsNamespacer ImageStreamMappingsNamespacer ImageStreamTagsNamespacer ImageStreamImagesNamespacer ImageStreamSecretsNamespacer DeploymentConfigsNamespacer DeploymentLogsNamespacer RoutesNamespacer HostSubnetsInterface NetNamespacesInterface ClusterNetworkingInterface IdentitiesInterface UsersInterface GroupsInterface UserIdentityMappingsInterface ProjectsInterface ProjectRequestsInterface LocalSubjectAccessReviewsImpersonator SubjectAccessReviewsImpersonator LocalResourceAccessReviewsNamespacer ResourceAccessReviews SubjectAccessReviews LocalSubjectAccessReviewsNamespacer SelfSubjectRulesReviewsNamespacer TemplatesNamespacer TemplateConfigsNamespacer OAuthClientsInterface OAuthClientAuthorizationsInterface OAuthAccessTokensInterface OAuthAuthorizeTokensInterface PoliciesNamespacer PolicyBindingsNamespacer RolesNamespacer RoleBindingsNamespacer ClusterPoliciesInterface ClusterPolicyBindingsInterface ClusterRolesInterface ClusterRoleBindingsInterface }
Interface exposes methods on OpenShift resources.
type LocalResourceAccessReviewInterface ¶ added in v1.0.5
type LocalResourceAccessReviewInterface interface {
Create(policy *authorizationapi.LocalResourceAccessReview) (*authorizationapi.ResourceAccessReviewResponse, error)
}
LocalResourceAccessReviewInterface exposes methods on LocalResourceAccessReview resources.
type LocalResourceAccessReviewsNamespacer ¶ added in v1.0.5
type LocalResourceAccessReviewsNamespacer interface {
LocalResourceAccessReviews(namespace string) LocalResourceAccessReviewInterface
}
LocalResourceAccessReviewsNamespacer has methods to work with LocalResourceAccessReview resources in a namespace
type LocalSubjectAccessReviewInterface ¶ added in v1.0.5
type LocalSubjectAccessReviewInterface interface {
Create(policy *authorizationapi.LocalSubjectAccessReview) (*authorizationapi.SubjectAccessReviewResponse, error)
}
LocalSubjectAccessReviewInterface exposes methods on LocalSubjectAccessReview resources.
type LocalSubjectAccessReviewsImpersonator ¶ added in v1.0.5
type LocalSubjectAccessReviewsImpersonator interface {
ImpersonateLocalSubjectAccessReviews(namespace, token string) LocalSubjectAccessReviewInterface
}
type LocalSubjectAccessReviewsNamespacer ¶ added in v1.0.5
type LocalSubjectAccessReviewsNamespacer interface {
LocalSubjectAccessReviews(namespace string) LocalSubjectAccessReviewInterface
}
LocalSubjectAccessReviewsNamespacer has methods to work with LocalSubjectAccessReview resources in a namespace
type NetNamespaceInterface ¶ added in v1.0.5
type NetNamespaceInterface interface { List(opts kapi.ListOptions) (*sdnapi.NetNamespaceList, error) Get(name string) (*sdnapi.NetNamespace, error) Create(sub *sdnapi.NetNamespace) (*sdnapi.NetNamespace, error) Update(sub *sdnapi.NetNamespace) (*sdnapi.NetNamespace, error) Delete(name string) error Watch(opts kapi.ListOptions) (watch.Interface, error) }
NetNamespaceInterface exposes methods on NetNamespace resources.
type NetNamespacesInterface ¶ added in v1.0.5
type NetNamespacesInterface interface {
NetNamespaces() NetNamespaceInterface
}
NetNamespaceInterface has methods to work with NetNamespace resources
type OAuthAccessTokenInterface ¶
type OAuthAccessTokenInterface interface { Create(token *oauthapi.OAuthAccessToken) (*oauthapi.OAuthAccessToken, error) Get(name string) (*oauthapi.OAuthAccessToken, error) Delete(name string) error }
OAuthAccessTokenInterface exposes methods on OAuthAccessTokens resources.
type OAuthAccessTokensInterface ¶
type OAuthAccessTokensInterface interface {
OAuthAccessTokens() OAuthAccessTokenInterface
}
OAuthAccessTokensInterface has methods to work with OAuthAccessTokens resources in a namespace
type OAuthAuthorizeTokenInterface ¶ added in v1.3.0
type OAuthAuthorizeTokenInterface interface { Create(token *oauthapi.OAuthAuthorizeToken) (*oauthapi.OAuthAuthorizeToken, error) Delete(name string) error }
type OAuthAuthorizeTokensInterface ¶ added in v1.3.0
type OAuthAuthorizeTokensInterface interface {
OAuthAuthorizeTokens() OAuthAuthorizeTokenInterface
}
type OAuthClientAuthorizationInterface ¶ added in v1.3.0
type OAuthClientAuthorizationInterface interface { Create(obj *oauthapi.OAuthClientAuthorization) (*oauthapi.OAuthClientAuthorization, error) List(opts kapi.ListOptions) (*oauthapi.OAuthClientAuthorizationList, error) Get(name string) (*oauthapi.OAuthClientAuthorization, error) Delete(name string) error Watch(opts kapi.ListOptions) (watch.Interface, error) }
type OAuthClientAuthorizationsInterface ¶ added in v1.3.0
type OAuthClientAuthorizationsInterface interface {
OAuthClientAuthorizations() OAuthClientAuthorizationInterface
}
type OAuthClientInterface ¶ added in v1.3.0
type OAuthClientInterface interface { Create(obj *oauthapi.OAuthClient) (*oauthapi.OAuthClient, error) List(opts kapi.ListOptions) (*oauthapi.OAuthClientList, error) Get(name string) (*oauthapi.OAuthClient, error) Delete(name string) error Watch(opts kapi.ListOptions) (watch.Interface, error) }
type OAuthClientsInterface ¶ added in v1.3.0
type OAuthClientsInterface interface {
OAuthClients() OAuthClientInterface
}
type PoliciesNamespacer ¶
type PoliciesNamespacer interface {
Policies(namespace string) PolicyInterface
}
PoliciesNamespacer has methods to work with Policy resources in a namespace
type PolicyBindingInterface ¶
type PolicyBindingInterface interface { List(opts kapi.ListOptions) (*authorizationapi.PolicyBindingList, error) Get(name string) (*authorizationapi.PolicyBinding, error) Create(policyBinding *authorizationapi.PolicyBinding) (*authorizationapi.PolicyBinding, error) Delete(name string) error Watch(opts kapi.ListOptions) (watch.Interface, error) }
PolicyBindingInterface exposes methods on PolicyBinding resources.
type PolicyBindingsNamespacer ¶
type PolicyBindingsNamespacer interface {
PolicyBindings(namespace string) PolicyBindingInterface
}
PolicyBindingsNamespacer has methods to work with PolicyBinding resources in a namespace
type PolicyInterface ¶
type PolicyInterface interface { List(opts kapi.ListOptions) (*authorizationapi.PolicyList, error) Get(name string) (*authorizationapi.Policy, error) Delete(name string) error Watch(opts kapi.ListOptions) (watch.Interface, error) }
PolicyInterface exposes methods on Policy resources.
type ProjectInterface ¶
type ProjectInterface interface { Create(p *projectapi.Project) (*projectapi.Project, error) Update(p *projectapi.Project) (*projectapi.Project, error) Delete(name string) error Get(name string) (*projectapi.Project, error) List(opts kapi.ListOptions) (*projectapi.ProjectList, error) Watch(opts kapi.ListOptions) (watch.Interface, error) }
ProjectInterface exposes methods on project resources.
type ProjectRequestInterface ¶
type ProjectRequestInterface interface { Create(p *projectapi.ProjectRequest) (*projectapi.Project, error) List(opts kapi.ListOptions) (*unversioned.Status, error) }
ProjectRequestInterface exposes methods on projectRequest resources.
type ProjectRequestsInterface ¶
type ProjectRequestsInterface interface {
ProjectRequests() ProjectRequestInterface
}
ProjectRequestsInterface has methods to work with ProjectRequest resources in a namespace
type ProjectsInterface ¶
type ProjectsInterface interface {
Projects() ProjectInterface
}
ProjectsInterface has methods to work with Project resources in a namespace
type ResourceAccessReviewInterface ¶
type ResourceAccessReviewInterface interface {
Create(policy *authorizationapi.ResourceAccessReview) (*authorizationapi.ResourceAccessReviewResponse, error)
}
ResourceAccessReviewInterface exposes methods on ResourceAccessReview resources.
type ResourceAccessReviews ¶ added in v1.0.5
type ResourceAccessReviews interface {
ResourceAccessReviews() ResourceAccessReviewInterface
}
ResourceAccessReviews has methods to work with ResourceAccessReview resources in the cluster scope
type RoleBindingInterface ¶
type RoleBindingInterface interface { List(opts kapi.ListOptions) (*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 ¶
type RoleBindingsNamespacer interface {
RoleBindings(namespace string) RoleBindingInterface
}
RoleBindingsNamespacer has methods to work with RoleBinding resources in a namespace
type RoleInterface ¶
type RoleInterface interface { List(opts kapi.ListOptions) (*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 ¶
type RolesNamespacer interface {
Roles(namespace string) RoleInterface
}
RolesNamespacer has methods to work with Role resources in a namespace
type RouteInterface ¶
type RouteInterface interface { List(opts kapi.ListOptions) (*routeapi.RouteList, error) Get(name string) (*routeapi.Route, error) Create(route *routeapi.Route) (*routeapi.Route, error) Update(route *routeapi.Route) (*routeapi.Route, error) UpdateStatus(route *routeapi.Route) (*routeapi.Route, error) Delete(name string) error Watch(opts kapi.ListOptions) (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 SelfSubjectRulesReviewInterface ¶ added in v1.3.0
type SelfSubjectRulesReviewInterface interface {
Create(*authorizationapi.SelfSubjectRulesReview) (*authorizationapi.SelfSubjectRulesReview, error)
}
type SelfSubjectRulesReviewsNamespacer ¶ added in v1.3.0
type SelfSubjectRulesReviewsNamespacer interface {
SelfSubjectRulesReviews(namespace string) SelfSubjectRulesReviewInterface
}
type SubjectAccessReviewInterface ¶
type SubjectAccessReviewInterface interface {
Create(policy *authorizationapi.SubjectAccessReview) (*authorizationapi.SubjectAccessReviewResponse, error)
}
SubjectAccessReviewInterface exposes methods on SubjectAccessReview resources.
type SubjectAccessReviews ¶ added in v1.0.5
type SubjectAccessReviews interface {
SubjectAccessReviews() SubjectAccessReviewInterface
}
SubjectAccessReviews has methods to work with SubjectAccessReview resources in the cluster scope
type SubjectAccessReviewsImpersonator ¶ added in v1.0.5
type SubjectAccessReviewsImpersonator interface {
ImpersonateSubjectAccessReviews(token string) SubjectAccessReviewInterface
}
type TemplateConfigInterface ¶
type TemplateConfigInterface interface {
Create(t *templateapi.Template) (*templateapi.Template, error)
}
TemplateConfigInterface exposes methods on Image resources.
type TemplateConfigsNamespacer ¶
type TemplateConfigsNamespacer interface {
TemplateConfigs(namespace string) TemplateConfigInterface
}
TemplateConfigNamespacer has methods to work with Image resources in a namespace TODO: Rename to ProcessedTemplates
type TemplateInterface ¶
type TemplateInterface interface { List(opts kapi.ListOptions) (*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(opts kapi.ListOptions) (watch.Interface, error) }
TemplateInterface exposes methods on Template resources.
type TemplatesNamespacer ¶
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(opts kapi.ListOptions) (*userapi.UserList, error) Get(name string) (*userapi.User, error) Create(user *userapi.User) (*userapi.User, error) Update(user *userapi.User) (*userapi.User, error) Delete(name string) error Watch(opts kapi.ListOptions) (watch.Interface, error) }
UserInterface exposes methods on user resources.
type UsersInterface ¶
type UsersInterface interface {
Users() UserInterface
}
UsersInterface has methods to work with User resources
Source Files ¶
- buildconfigs.go
- buildlogs.go
- builds.go
- client.go
- clusternetwork.go
- clusterpolicies.go
- clusterpolicybindings.go
- clusterrolebindings.go
- clusterroles.go
- deploymentconfigs.go
- deploymentlogs.go
- discovery.go
- groups.go
- hostsubnets.go
- identities.go
- images.go
- imagestreamimages.go
- imagestreammappings.go
- imagestreams.go
- imagestreamsecrets.go
- imagestreamtags.go
- localresourceaccessreview.go
- localsubjectaccessreview.go
- mapper.go
- netnamespaces.go
- oauthaccesstoken.go
- oauthauthorizetoken.go
- oauthclient.go
- oauthclientauthorization.go
- policies.go
- policybindings.go
- projectrequests.go
- projects.go
- resourceaccessreview.go
- role_bindings.go
- roles.go
- routes.go
- scale.go
- selfsubjectrulesreviews.go
- subjectaccessreview.go
- templateconfigs.go
- templates.go
- useridentitymappings.go
- users.go