Documentation ¶
Index ¶
- func FilterCloseErr(err error) bool
- func NodeName() (string, error)
- func NormalizeImageRef(ref string) (reference.Named, error)
- func NormalizeImageRefToNameTag(ref string) (string, string, error)
- func ParseRegistry(imageName string) string
- func ParseRepositoryTag(repos string) (string, string)
- type AuthInfo
- type HealthCheck
- type HealthCheckFunc
- type Healthz
- type ImagePullAccountManager
- type SecretManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterCloseErr ¶ added in v0.10.0
FilterCloseErr rewrites EOF and EPIPE errors to bool. Use when returning from call or handling errors from main read loop.
This purposely ignores errors with a wrapped cause.
func NormalizeImageRef ¶
NormalizeImageRef normalizes the image reference.
func NormalizeImageRefToNameTag ¶
NormalizeImageRefToNameTag normalizes the image reference to name and tag.
func ParseRegistry ¶
ParseRegistry return the registry of image
func ParseRepositoryTag ¶
ParseRepositoryTag gets a repos name and returns the right reposName + tag|digest The tag can be confusing because of a port in a repository name.
Ex: localhost.localdomain:5000/samalba/hipache:latest Digest ex: localhost:5000/foo/bar@sha256:bc8813ea7b3603864987522f02a76101c17ad122e1c46d790efc0fca78ca7bfb
Types ¶
type AuthInfo ¶
func (*AuthInfo) EncodeToString ¶
type HealthCheck ¶
HealthCheck defines the interface that a checker should impl.
type HealthCheckFunc ¶
HealthCheckFunc is the interface theat a checker should impl.
type Healthz ¶
Healthz is a manager which will run all healthChecks registered.
func (*Healthz) Handler ¶
func (h *Healthz) Handler(w http.ResponseWriter, r *http.Request)
Handler implements the http handler
func (*Healthz) Register ¶
func (h *Healthz) Register(name string, handler HealthCheck)
Register a check handler
func (*Healthz) RegisterFunc ¶
func (h *Healthz) RegisterFunc(name string, handler HealthCheckFunc)
RegisterFunc a check handlerFunc
type ImagePullAccountManager ¶
func NewImagePullAccountManager ¶
func NewImagePullAccountManager(kubeClient clientset.Interface) ImagePullAccountManager
NewImagePullAccountManager returns an ImagePullAccountManager, defaults to be nil
type SecretManager ¶
type SecretManager interface {
GetSecrets(secret []appsv1alpha1.ReferenceObject) ([]v1.Secret, error)
}
SecretManager is the interface to get secrets from API Server.
func NewCacheBasedSecretManager ¶
func NewCacheBasedSecretManager(client clientset.Interface) SecretManager
NewCacheBasedSecretManager create a cache based SecretManager