client

package
v3.7.0-0.alpha.1.531.0... Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrImageStreamImportUnsupported = errors.New("the server does not support directly importing images - create an image stream with tags or the dockerImageRepository field set")
View Source
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 added in v0.3.1

func DefaultOpenShiftUserAgent() string

DefaultOpenShiftUserAgent returns the default user agent that clients can use.

func NewDelegatingScaleNamespacer added in v1.0.8

func NewDelegatingScaleNamespacer(dcNamespacer DeploymentConfigsNamespacer, sNamespacer kextensionsclient.ScalesGetter) kextensionsclient.ScalesGetter

func SetOpenShiftDefaults added in v0.3.1

func SetOpenShiftDefaults(config *restclient.Config) error

SetOpenShiftDefaults sets the default settings on the passed client configuration

Types

type AppliedClusterResourceQuotaInterface added in v1.3.0

type AppliedClusterResourceQuotaInterface interface {
	List(opts metav1.ListOptions) (*quotaapi.AppliedClusterResourceQuotaList, error)
	Get(name string, options metav1.GetOptions) (*quotaapi.AppliedClusterResourceQuota, error)
}

AppliedClusterResourceQuotaInterface exposes methods on AppliedClusterResourceQuota resources.

type AppliedClusterResourceQuotasNamespacer added in v1.3.0

type AppliedClusterResourceQuotasNamespacer interface {
	AppliedClusterResourceQuotas(namespace string) AppliedClusterResourceQuotaInterface
}

AppliedClusterResourceQuotasNamespacer has methods to work with AppliedClusterResourceQuota resources in a namespace

type BuildConfigInterface

type BuildConfigInterface interface {
	List(opts metav1.ListOptions) (*buildapi.BuildConfigList, error)
	Get(name string, options metav1.GetOptions) (*buildapi.BuildConfig, error)
	Create(config *buildapi.BuildConfig) (*buildapi.BuildConfig, error)
	Update(config *buildapi.BuildConfig) (*buildapi.BuildConfig, error)
	Delete(name string) error
	Watch(opts metav1.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 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(opts metav1.ListOptions) (*buildapi.BuildList, error)
	Get(name string, options metav1.GetOptions) (*buildapi.Build, error)
	Create(build *buildapi.Build) (*buildapi.Build, error)
	Update(build *buildapi.Build) (*buildapi.Build, error)
	Delete(name string) error
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Clone(request *buildapi.BuildRequest) (*buildapi.Build, error)
	UpdateDetails(build *buildapi.Build) (*buildapi.Build, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*buildapi.Build, error)
}

BuildInterface exposes methods on Build resources.

type BuildLogsInterface added in v0.4.2

type BuildLogsInterface interface {
	Get(name string, opts api.BuildLogOptions) *restclient.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 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 {
	*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) AppliedClusterResourceQuotas added in v1.3.0

func (c *Client) AppliedClusterResourceQuotas(namespace string) AppliedClusterResourceQuotaInterface

func (*Client) BuildConfigs added in v0.2.1

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

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

Builds provides a REST client for Builds

func (*Client) ClusterNetwork added in v0.5.2

func (c *Client) ClusterNetwork() ClusterNetworkInterface

ClusterNetwork provides a REST client for ClusterNetworking

func (*Client) ClusterPolicies added in v0.5.1

func (c *Client) ClusterPolicies() ClusterPolicyInterface

func (*Client) ClusterPolicyBindings added in v0.5.1

func (c *Client) ClusterPolicyBindings() ClusterPolicyBindingInterface

func (*Client) ClusterResourceQuotas added in v1.3.0

func (c *Client) ClusterResourceQuotas() ClusterResourceQuotaInterface

func (*Client) ClusterRoleBindings added in v0.5.1

func (c *Client) ClusterRoleBindings() ClusterRoleBindingInterface

func (*Client) ClusterRoles added in v0.5.1

func (c *Client) ClusterRoles() ClusterRoleInterface

func (*Client) DeploymentConfigs added in v0.2.1

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) Discovery added in v1.3.0

func (c *Client) Discovery() discovery.DiscoveryInterface

DiscoveryClient returns a discovery client.

func (*Client) EgressNetworkPolicies added in v1.3.0

func (c *Client) EgressNetworkPolicies(namespace string) EgressNetworkPolicyInterface

EgressNetworkPolicies provides a REST client for EgressNetworkPolicy

func (*Client) Groups added in v1.0.4

func (c *Client) Groups() GroupInterface

Groups provides a REST client for Groups

func (*Client) HostSubnets added in v0.5.2

func (c *Client) HostSubnets() HostSubnetInterface

HostSubnets provides a REST client for HostSubnet

func (*Client) Identities added in v0.4.2

func (c *Client) Identities() IdentityInterface

Identities provides a REST client for Identity

func (*Client) ImageSignatures added in v1.3.0

func (c *Client) ImageSignatures() ImageSignatureInterface

ImageSignatures provides a REST client for ImageSignatures

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

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

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) PodSecurityPolicyReviews added in v1.5.0

func (c *Client) PodSecurityPolicyReviews(namespace string) PodSecurityPolicyReviewInterface

func (*Client) PodSecurityPolicySelfSubjectReviews added in v1.5.0

func (c *Client) PodSecurityPolicySelfSubjectReviews(namespace string) PodSecurityPolicySelfSubjectReviewInterface

func (*Client) PodSecurityPolicySubjectReviews added in v1.5.0

func (c *Client) PodSecurityPolicySubjectReviews(namespace string) PodSecurityPolicySubjectReviewInterface

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 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() ResourceAccessReviewInterface

ClusterResourceAccessReviews provides a REST client for ClusterResourceAccessReviews

func (*Client) RoleBindingRestrictions added in v1.4.0

func (c *Client) RoleBindingRestrictions(namespace string) RoleBindingRestrictionInterface

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) Routes added in v0.2.1

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

func (c *Client) SubjectAccessReviews() SubjectAccessReviewInterface

SubjectAccessReviews provides a REST client for SubjectAccessReviews

func (*Client) SubjectRulesReviews added in v1.4.0

func (c *Client) SubjectRulesReviews(namespace string) SubjectRulesReviewInterface

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

type ClusterNetworkInterface interface {
	Get(name string, options metav1.GetOptions) (*networkapi.ClusterNetwork, error)
	Create(sub *networkapi.ClusterNetwork) (*networkapi.ClusterNetwork, error)
	Update(sub *networkapi.ClusterNetwork) (*networkapi.ClusterNetwork, error)
}

ClusterNetworkInterface exposes methods on clusterNetwork resources.

type ClusterNetworkingInterface added in v0.5.2

type ClusterNetworkingInterface interface {
	ClusterNetwork() ClusterNetworkInterface
}

ClusterNetworkingInterface has methods to work with ClusterNetwork resources

type ClusterPoliciesInterface added in v0.5.1

type ClusterPoliciesInterface interface {
	ClusterPolicies() ClusterPolicyInterface
}

ClusterPoliciesInterface has methods to work with ClusterPolicies resources in a namespace

type ClusterPoliciesListerInterface added in v1.3.0

type ClusterPoliciesListerInterface interface {
	ClusterPolicies() ClusterPolicyLister
}

type ClusterPolicyBindingInterface added in v0.5.1

type ClusterPolicyBindingInterface interface {
	List(opts metav1.ListOptions) (*authorizationapi.ClusterPolicyBindingList, error)
	Get(name string, options metav1.GetOptions) (*authorizationapi.ClusterPolicyBinding, error)
	Create(policyBinding *authorizationapi.ClusterPolicyBinding) (*authorizationapi.ClusterPolicyBinding, error)
	Delete(name string) error
	Watch(opts metav1.ListOptions) (watch.Interface, error)
}

ClusterPolicyBindingInterface exposes methods on ClusterPolicyBindings resources

type ClusterPolicyBindingLister added in v1.3.0

type ClusterPolicyBindingLister interface {
	List(options metav1.ListOptions) (*authorizationapi.ClusterPolicyBindingList, error)
	Get(name string, options metav1.GetOptions) (*authorizationapi.ClusterPolicyBinding, error)
}

type ClusterPolicyBindingsInterface added in v0.5.1

type ClusterPolicyBindingsInterface interface {
	ClusterPolicyBindings() ClusterPolicyBindingInterface
}

ClusterPolicyBindingsInterface has methods to work with ClusterPolicyBindings resources in a namespace

type ClusterPolicyBindingsListerInterface added in v1.3.0

type ClusterPolicyBindingsListerInterface interface {
	ClusterPolicyBindings() ClusterPolicyBindingLister
}

type ClusterPolicyInterface added in v0.5.1

type ClusterPolicyInterface interface {
	List(opts metav1.ListOptions) (*authorizationapi.ClusterPolicyList, error)
	Get(name string, options metav1.GetOptions) (*authorizationapi.ClusterPolicy, error)
	Delete(name string) error
	Watch(opts metav1.ListOptions) (watch.Interface, error)
}

ClusterPolicyInterface exposes methods on ClusterPolicies resources

type ClusterPolicyLister added in v1.3.0

type ClusterPolicyLister interface {
	List(options metav1.ListOptions) (*authorizationapi.ClusterPolicyList, error)
	Get(name string, options metav1.GetOptions) (*authorizationapi.ClusterPolicy, error)
}

type ClusterResourceQuotaInterface added in v1.3.0

type ClusterResourceQuotaInterface interface {
	List(opts metav1.ListOptions) (*quotaapi.ClusterResourceQuotaList, error)
	Get(name string, options metav1.GetOptions) (*quotaapi.ClusterResourceQuota, error)
	Create(resourceQuota *quotaapi.ClusterResourceQuota) (*quotaapi.ClusterResourceQuota, error)
	Update(resourceQuota *quotaapi.ClusterResourceQuota) (*quotaapi.ClusterResourceQuota, error)
	Delete(name string) error
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	UpdateStatus(resourceQuota *quotaapi.ClusterResourceQuota) (*quotaapi.ClusterResourceQuota, error)
}

type ClusterResourceQuotasInterface added in v1.3.0

type ClusterResourceQuotasInterface interface {
	ClusterResourceQuotas() ClusterResourceQuotaInterface
}

type ClusterRoleBindingInterface added in v0.5.1

ClusterRoleBindingInterface exposes methods on ClusterRoleBindings resources

type ClusterRoleBindingsInterface added in v0.5.1

type ClusterRoleBindingsInterface interface {
	ClusterRoleBindings() ClusterRoleBindingInterface
}

ClusterRoleBindingsInterface has methods to work with ClusterRoleBindings resources in a namespace

type ClusterRoleInterface added in v0.5.1

ClusterRoleInterface exposes methods on ClusterRoles resources

type ClusterRolesInterface added in v0.5.1

type ClusterRolesInterface interface {
	ClusterRoles() ClusterRoleInterface
}

ClusterRolesInterface has methods to work with ClusterRoles resources in a namespace

type DeploymentConfigInterface

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 DeploymentLogInterface added in v1.0.7

type DeploymentLogInterface interface {
	Get(name string, opts deployapi.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.Interface) *DiscoveryClient

New creates a new DiscoveryClient for the given RESTClient.

func (*DiscoveryClient) ServerResources added in v1.1.4

func (d *DiscoveryClient) ServerResources() ([]*metav1.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 *metav1.APIResourceList, err error)

ServerResourcesForGroupVersion returns the supported resources for a group and version.

type EgressNetworkPoliciesNamespacer added in v1.3.0

type EgressNetworkPoliciesNamespacer interface {
	EgressNetworkPolicies(namespace string) EgressNetworkPolicyInterface
}

EgressNetworkPoliciesNamespacer has methods to work with EgressNetworkPolicy resources in a namespace

type EgressNetworkPolicyInterface added in v1.3.0

EgressNetworkPolicyInterface exposes methods on egressNetworkPolicy resources.

type GroupInterface added in v1.0.4

type GroupInterface interface {
	List(opts metav1.ListOptions) (*userapi.GroupList, error)
	Get(name string, options metav1.GetOptions) (*userapi.Group, error)
	Create(group *userapi.Group) (*userapi.Group, error)
	Update(group *userapi.Group) (*userapi.Group, error)
	Delete(name string) error
	Watch(opts metav1.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 added in v0.5.2

type HostSubnetInterface interface {
	List(opts metav1.ListOptions) (*networkapi.HostSubnetList, error)
	Get(name string, options metav1.GetOptions) (*networkapi.HostSubnet, error)
	Create(sub *networkapi.HostSubnet) (*networkapi.HostSubnet, error)
	Update(sub *networkapi.HostSubnet) (*networkapi.HostSubnet, error)
	Delete(name string) error
	Watch(opts metav1.ListOptions) (watch.Interface, error)
}

HostSubnetInterface exposes methods on HostSubnet resources.

type HostSubnetsInterface added in v0.5.2

type HostSubnetsInterface interface {
	HostSubnets() HostSubnetInterface
}

HostSubnetInterface has methods to work with HostSubnet resources

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(opts metav1.ListOptions) (*userapi.IdentityList, error)
	Get(name string, options metav1.GetOptions) (*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 metav1.ListOptions) (*imageapi.ImageList, error)
	Get(name string, options metav1.GetOptions) (*imageapi.Image, error)
	Create(image *imageapi.Image) (*imageapi.Image, error)
	Update(image *imageapi.Image) (*imageapi.Image, error)
	Delete(name string) error
}

ImageInterface exposes methods on Image resources.

type ImageSignatureInterface added in v1.3.0

type ImageSignatureInterface interface {
	Create(signature *imageapi.ImageSignature) (*imageapi.ImageSignature, error)
	Delete(name string) error
}

ImageSignatureInterface exposes methods on ImageSignature virtual resource.

type ImageSignaturesInterfacer added in v1.3.0

type ImageSignaturesInterfacer interface {
	ImageSignatures() ImageSignatureInterface
}

ImageSignaturesInterfacer has methods to work with ImageSignature resource.

type ImageStreamImageInterface added in v0.4.2

type ImageStreamImageInterface interface {
	Get(name, id string) (*imageapi.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(opts metav1.ListOptions) (*imageapi.ImageStreamList, error)
	Get(name string, options metav1.GetOptions) (*imageapi.ImageStream, error)
	Create(stream *imageapi.ImageStream) (*imageapi.ImageStream, error)
	Update(stream *imageapi.ImageStream) (*imageapi.ImageStream, error)
	Delete(name string) error
	Watch(opts metav1.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 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 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 metav1.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 added in v0.4.3

type ImageStreamTagInterface interface {
	Get(name, tag string) (*imageapi.ImageStreamTag, error)
	Create(tag *imageapi.ImageStreamTag) (*imageapi.ImageStreamTag, error)
	Update(tag *imageapi.ImageStreamTag) (*imageapi.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 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 metav1.ListOptions) (*networkapi.NetNamespaceList, error)
	Get(name string, options metav1.GetOptions) (*networkapi.NetNamespace, error)
	Create(sub *networkapi.NetNamespace) (*networkapi.NetNamespace, error)
	Update(sub *networkapi.NetNamespace) (*networkapi.NetNamespace, error)
	Delete(name string) error
	Watch(opts metav1.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 added in v0.5.1

type OAuthAccessTokenInterface interface {
	Create(token *oauthapi.OAuthAccessToken) (*oauthapi.OAuthAccessToken, error)
	Get(name string, options metav1.GetOptions) (*oauthapi.OAuthAccessToken, error)
	List(opts metav1.ListOptions) (*oauthapi.OAuthAccessTokenList, error)
	Delete(name string) error
}

OAuthAccessTokenInterface exposes methods on OAuthAccessTokens resources.

type OAuthAccessTokensInterface added in v0.5.1

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 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 metav1.ListOptions) (*oauthapi.OAuthClientList, error)
	Get(name string, options metav1.GetOptions) (*oauthapi.OAuthClient, error)
	Delete(name string) error
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Update(client *oauthapi.OAuthClient) (*oauthapi.OAuthClient, error)
}

type OAuthClientsInterface added in v1.3.0

type OAuthClientsInterface interface {
	OAuthClients() OAuthClientInterface
}

type PodSecurityPolicyReviewInterface added in v1.5.0

type PodSecurityPolicyReviewInterface interface {
	Create(policy *securityapi.PodSecurityPolicyReview) (*securityapi.PodSecurityPolicyReview, error)
}

PodSecurityPolicyReviewInterface exposes methods on PodSecurityPolicyReview resources.

type PodSecurityPolicyReviewsNamespacer added in v1.5.0

type PodSecurityPolicyReviewsNamespacer interface {
	PodSecurityPolicyReviews(namespace string) PodSecurityPolicyReviewInterface
}

PodSecurityPolicyReviewsNamespacer has methods to work with PodSecurityPolicyReview resources in the cluster scope

type PodSecurityPolicySelfSubjectReviewInterface added in v1.5.0

type PodSecurityPolicySelfSubjectReviewInterface interface {
	Create(policy *securityapi.PodSecurityPolicySelfSubjectReview) (*securityapi.PodSecurityPolicySelfSubjectReview, error)
}

PodSecurityPolicySelfSubjectReviewInterface exposes methods on PodSecurityPolicySelfSubjectReview resources.

type PodSecurityPolicySelfSubjectReviewsNamespacer added in v1.5.0

type PodSecurityPolicySelfSubjectReviewsNamespacer interface {
	PodSecurityPolicySelfSubjectReviews(namespace string) PodSecurityPolicySelfSubjectReviewInterface
}

PodSecurityPolicySelfSubjectReviewsNamespacer has methods to work with PodSecurityPolicySelfSubjectReview resources in the cluster scope

type PodSecurityPolicySubjectReviewInterface added in v1.5.0

type PodSecurityPolicySubjectReviewInterface interface {
	Create(policy *securityapi.PodSecurityPolicySubjectReview) (*securityapi.PodSecurityPolicySubjectReview, error)
}

PodSecurityPolicySubjectReviewInterface exposes methods on PodSecurityPolicySubjectReview resources.

type PodSecurityPolicySubjectReviewsNamespacer added in v1.5.0

type PodSecurityPolicySubjectReviewsNamespacer interface {
	PodSecurityPolicySubjectReviews(namespace string) PodSecurityPolicySubjectReviewInterface
}

PodSecurityPolicySubjectReviewsNamespacer has methods to work with PodSecurityPolicySubjectReview resources in the cluster scope

type PoliciesListerNamespacer added in v1.3.0

type PoliciesListerNamespacer interface {
	Policies(namespace string) PolicyLister
}

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(opts metav1.ListOptions) (*authorizationapi.PolicyBindingList, error)
	Get(name string, options metav1.GetOptions) (*authorizationapi.PolicyBinding, error)
	Create(policyBinding *authorizationapi.PolicyBinding) (*authorizationapi.PolicyBinding, error)
	Delete(name string) error
	Watch(opts metav1.ListOptions) (watch.Interface, error)
}

PolicyBindingInterface exposes methods on PolicyBinding resources.

type PolicyBindingLister added in v1.3.0

type PolicyBindingLister interface {
	List(options metav1.ListOptions) (*authorizationapi.PolicyBindingList, error)
	Get(name string, options metav1.GetOptions) (*authorizationapi.PolicyBinding, error)
}

type PolicyBindingsListerNamespacer added in v1.3.0

type PolicyBindingsListerNamespacer interface {
	PolicyBindings(namespace string) PolicyBindingLister
}

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(opts metav1.ListOptions) (*authorizationapi.PolicyList, error)
	Get(name string, options metav1.GetOptions) (*authorizationapi.Policy, error)
	Delete(name string) error
	Watch(opts metav1.ListOptions) (watch.Interface, error)
}

PolicyInterface exposes methods on Policy resources.

type PolicyLister added in v1.3.0

type PolicyLister interface {
	List(options metav1.ListOptions) (*authorizationapi.PolicyList, error)
	Get(name string, options metav1.GetOptions) (*authorizationapi.Policy, error)
}

type ProjectInterface added in v0.2.1

type ProjectInterface interface {
	Create(p *projectapi.Project) (*projectapi.Project, error)
	Update(p *projectapi.Project) (*projectapi.Project, error)
	Delete(name string) error
	Get(name string, options metav1.GetOptions) (*projectapi.Project, error)
	List(opts metav1.ListOptions) (*projectapi.ProjectList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
}

ProjectInterface exposes methods on project resources.

type ProjectRequestInterface added in v0.4.4

type ProjectRequestInterface interface {
	Create(p *projectapi.ProjectRequest) (*projectapi.Project, error)
	List(opts metav1.ListOptions) (*metav1.Status, error)
}

ProjectRequestInterface exposes methods on projectRequest resources.

type ProjectRequestsInterface added in v0.4.4

type ProjectRequestsInterface interface {
	ProjectRequests() ProjectRequestInterface
}

ProjectRequestsInterface has methods to work with ProjectRequest resources in a namespace

type ProjectsInterface added in v0.2.1

type ProjectsInterface interface {
	Projects() ProjectInterface
}

ProjectsInterface has methods to work with Project 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 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 added in v0.2.2

type RoleBindingInterface interface {
	List(opts metav1.ListOptions) (*authorizationapi.RoleBindingList, error)
	Get(name string, options metav1.GetOptions) (*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 RoleBindingRestrictionsNamespacer added in v1.4.0

type RoleBindingRestrictionsNamespacer interface {
	RoleBindingRestrictions(namespace string) RoleBindingRestrictionInterface
}

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(opts metav1.ListOptions) (*authorizationapi.RoleList, error)
	Get(name string, options metav1.GetOptions) (*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 RouteInterface

type RouteInterface interface {
	List(opts metav1.ListOptions) (*routeapi.RouteList, error)
	Get(name string, options metav1.GetOptions) (*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 metav1.ListOptions) (watch.Interface, error)
}

RouteInterface exposes methods on Route resources

type RoutesNamespacer added in v0.2.1

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

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 SubjectRulesReviewInterface added in v1.4.0

type SubjectRulesReviewInterface interface {
	Create(*authorizationapi.SubjectRulesReview) (*authorizationapi.SubjectRulesReview, error)
}

type SubjectRulesReviewsNamespacer added in v1.4.0

type SubjectRulesReviewsNamespacer interface {
	SubjectRulesReviews(namespace string) SubjectRulesReviewInterface
}

type SyncedClusterPoliciesListerInterface added in v1.3.0

type SyncedClusterPoliciesListerInterface interface {
	ClusterPoliciesListerInterface
	LastSyncResourceVersion() string
}

type SyncedClusterPolicyBindingsListerInterface added in v1.3.0

type SyncedClusterPolicyBindingsListerInterface interface {
	ClusterPolicyBindingsListerInterface
	LastSyncResourceVersion() string
}

type SyncedPoliciesListerNamespacer added in v1.3.0

type SyncedPoliciesListerNamespacer interface {
	PoliciesListerNamespacer
	LastSyncResourceVersion() string
}

type SyncedPolicyBindingsListerNamespacer added in v1.3.0

type SyncedPolicyBindingsListerNamespacer interface {
	PolicyBindingsListerNamespacer
	LastSyncResourceVersion() string
}

type TemplateConfigInterface added in v0.2.2

type TemplateConfigInterface interface {
	Create(t *templateapi.Template) (*templateapi.Template, 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(opts metav1.ListOptions) (*templateapi.TemplateList, error)
	Get(name string, options metav1.GetOptions) (*templateapi.Template, error)
	Create(template *templateapi.Template) (*templateapi.Template, error)
	Update(template *templateapi.Template) (*templateapi.Template, error)
	Delete(name string) error
	Watch(opts metav1.ListOptions) (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

UserIdentityMappingInterface exposes methods on UserIdentityMapping resources.

type UserIdentityMappingsInterface added in v0.2.1

type UserIdentityMappingsInterface interface {
	UserIdentityMappings() UserIdentityMappingInterface
}

UserIdentityMappingsInterface has methods to work with UserIdentityMapping resources in a namespace

type UserInterface

type UserInterface interface {
	List(opts metav1.ListOptions) (*userapi.UserList, error)
	Get(name string, options metav1.GetOptions) (*userapi.User, error)
	Create(user *userapi.User) (*userapi.User, error)
	Update(user *userapi.User) (*userapi.User, error)
	Delete(name string) error
	Watch(opts metav1.ListOptions) (watch.Interface, error)
}

UserInterface exposes methods on user resources.

type UsersInterface added in v0.2.1

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