client

package
v3.7.0-rc.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package client provides functions to make requests to external APIs.

Index

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 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. TODO: Remove clientcmd dependency and move the parsing of required environemtn variable to registry.

type SelfSubjectAccessReviewInterface

type SelfSubjectAccessReviewInterface interface {
	Create(policy *authapiv1.SelfSubjectAccessReview) (*authapiv1.SelfSubjectAccessReview, error)
}

type SelfSubjectAccessReviewsNamespacer

type SelfSubjectAccessReviewsNamespacer interface {
	SelfSubjectAccessReviews() SelfSubjectAccessReviewInterface
}

type UserInterface

type UserInterface interface {
	Get(name string, options metav1.GetOptions) (*userapiv1.User, error)
}

type UsersInterfacer

type UsersInterfacer interface {
	Users() UserInterface
}

Jump to

Keyboard shortcuts

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