Documentation ¶
Overview ¶
Package client provides functions to make requests to external APIs.
Index ¶
- type ImageInterface
- type ImageSignatureInterface
- type ImageSignaturesInterfacer
- type ImageStreamImageInterface
- type ImageStreamImagesNamespacer
- type ImageStreamInterface
- type ImageStreamMappingInterface
- type ImageStreamMappingsNamespacer
- type ImageStreamSecretInterface
- type ImageStreamSecretsNamespacer
- type ImageStreamTagInterface
- type ImageStreamTagsNamespacer
- type ImageStreamsNamespacer
- type ImagesInterfacer
- type Interface
- type LimitRangeInterface
- type LimitRangesGetter
- type LocalSubjectAccessReviewInterface
- type LocalSubjectAccessReviewsNamespacer
- type RegistryClient
- type SelfSubjectAccessReviewInterface
- type SelfSubjectAccessReviewsNamespacer
- type UserInterface
- type UsersInterfacer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageInterface ¶
type ImageInterface interface { Get(name string, options metav1.GetOptions) (*imageapiv1.Image, error) Update(image *imageapiv1.Image) (*imageapiv1.Image, error) List(opts metav1.ListOptions) (*imageapiv1.ImageList, error) }
type ImageSignatureInterface ¶
type ImageSignatureInterface interface {
Create(signature *imageapiv1.ImageSignature) (*imageapiv1.ImageSignature, error)
}
type ImageSignaturesInterfacer ¶
type ImageSignaturesInterfacer interface {
ImageSignatures() ImageSignatureInterface
}
type ImageStreamImageInterface ¶
type ImageStreamImageInterface interface {
Get(name string, options metav1.GetOptions) (*imageapiv1.ImageStreamImage, error)
}
type ImageStreamImagesNamespacer ¶
type ImageStreamImagesNamespacer interface {
ImageStreamImages(namespace string) ImageStreamImageInterface
}
type ImageStreamInterface ¶
type ImageStreamInterface interface { Get(name string, options metav1.GetOptions) (*imageapiv1.ImageStream, error) Create(stream *imageapiv1.ImageStream) (*imageapiv1.ImageStream, error) }
type ImageStreamMappingInterface ¶
type ImageStreamMappingInterface interface {
Create(mapping *imageapiv1.ImageStreamMapping) (*metav1.Status, error)
}
type ImageStreamMappingsNamespacer ¶
type ImageStreamMappingsNamespacer interface {
ImageStreamMappings(namespace string) ImageStreamMappingInterface
}
type ImageStreamSecretInterface ¶
type ImageStreamSecretInterface interface {
Secrets(name string, options metav1.ListOptions) (*kapiv1.SecretList, error)
}
type ImageStreamSecretsNamespacer ¶
type ImageStreamSecretsNamespacer interface {
ImageStreamSecrets(namespace string) ImageStreamSecretInterface
}
type ImageStreamTagInterface ¶
type ImageStreamTagInterface interface {
Delete(name string, options *metav1.DeleteOptions) error
}
type ImageStreamTagsNamespacer ¶
type ImageStreamTagsNamespacer interface {
ImageStreamTags(namespace string) ImageStreamTagInterface
}
type ImageStreamsNamespacer ¶
type ImageStreamsNamespacer interface {
ImageStreams(namespace string) ImageStreamInterface
}
type ImagesInterfacer ¶
type ImagesInterfacer interface {
Images() ImageInterface
}
type Interface ¶
type Interface interface { ImageSignaturesInterfacer ImagesInterfacer ImageStreamImagesNamespacer ImageStreamMappingsNamespacer ImageStreamSecretsNamespacer ImageStreamsNamespacer ImageStreamTagsNamespacer LimitRangesGetter LocalSubjectAccessReviewsNamespacer SelfSubjectAccessReviewsNamespacer UsersInterfacer }
Interface contains client methods that registry use to communicate with Origin or Kubernetes API.
func NewFakeRegistryAPIClient ¶
func NewFakeRegistryAPIClient(kc kcoreclient.CoreInterface, imageclient imageclientv1.ImageV1Interface) Interface
type LimitRangeInterface ¶
type LimitRangeInterface interface {
List(opts metav1.ListOptions) (*kapi.LimitRangeList, error)
}
type LimitRangesGetter ¶
type LimitRangesGetter interface {
LimitRanges(namespace string) LimitRangeInterface
}
type LocalSubjectAccessReviewInterface ¶
type LocalSubjectAccessReviewInterface interface {
Create(policy *authapiv1.LocalSubjectAccessReview) (*authapiv1.LocalSubjectAccessReview, error)
}
type LocalSubjectAccessReviewsNamespacer ¶
type LocalSubjectAccessReviewsNamespacer interface {
LocalSubjectAccessReviews(namespace string) LocalSubjectAccessReviewInterface
}
type RegistryClient ¶
type RegistryClient interface { // Client returns the authenticated client to use with the server. Client() (Interface, error) // ClientFromToken returns a client based on the user bearer token. ClientFromToken(token string) (Interface, error) }
RegistryClient provides Origin and Kubernetes clients to Docker Registry.
func NewFakeRegistryClient ¶
func NewFakeRegistryClient(imageclient imageclientv1.ImageV1Interface) RegistryClient
func NewRegistryClient ¶
func NewRegistryClient(config *clientcmd.Config) RegistryClient
NewRegistryClient provides a new registry client.
type SelfSubjectAccessReviewInterface ¶
type SelfSubjectAccessReviewInterface interface {
Create(policy *authapiv1.SelfSubjectAccessReview) (*authapiv1.SelfSubjectAccessReview, error)
}
type SelfSubjectAccessReviewsNamespacer ¶
type SelfSubjectAccessReviewsNamespacer interface {
SelfSubjectAccessReviews() SelfSubjectAccessReviewInterface
}
type UserInterface ¶
type UsersInterfacer ¶
type UsersInterfacer interface {
Users() UserInterface
}
Click to show internal directories.
Click to hide internal directories.