kubernetes

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package kubernetes provides a low level client for small footprint consideration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient() *http.Client

GetClient returns a default client

func KubernetesValidatorFunc

func KubernetesValidatorFunc() expr.Option

KubernetesValidatorFunc returns a expr for checking the generic Kubernetes resources

func PodValidatorFunc

func PodValidatorFunc() expr.Option

PodValidatorFunc returns a expr for checking pod existing

Types

type Reader

type Reader interface {
	GetResource(group, kind, version, namespace, name string) (map[string]interface{}, error)
}

Reader represents a reader interface

func NewDefaultReader

func NewDefaultReader(server, token string) Reader

NewDefaultReader returns a reader implement

type ResourceValidator

type ResourceValidator interface {
	Exist() bool
	Count() int
	ExpectCount(int) bool
	ExpectField(value interface{}, fields ...string) bool
}

ResourceValidator represents a generic resource validator

Jump to

Keyboard shortcuts

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