Documentation ¶
Index ¶
- Variables
- func Configure(ctx context.Context, file, namespace string) error
- func Create(ctx context.Context, file, namespace string) error
- func CreateNS(ctx context.Context, namespace string) error
- func Delete(ctx context.Context, file, namespace string) error
- func DeleteNS(ctx context.Context, namespace string) error
- func Do(r *http.Request) (*http.Response, error)
- func Get(ctx context.Context, file, namespace string) error
- func Init(ns, env, kubeconfig string) (func() error, error)
- type CB
- func (fn CB) Configure(ctx context.Context, file, namespace string) error
- func (fn CB) Create(ctx context.Context, file, namespace string) error
- func (fn CB) CreateNS(ctx context.Context, namespace string) error
- func (fn CB) Delete(ctx context.Context, file, namespace string) error
- func (fn CB) DeleteNS(ctx context.Context, namespace string) error
- func (fn CB) Get(ctx context.Context, file, namespace string) error
- func (fn CB) Init(ns, kubeconfig string) (func() error, error)
- type CMD
- type OpExpect
- type TykAPI
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("k8sutil: The method is not implemented")
ErrNotImplemented this is returned when a CB method is not supported yet
Functions ¶
Types ¶
type CB ¶
type CB struct { InitFN func(ns, kubeconfig string) (func() error, error) CreateFn func(ctx context.Context, file, namespace string) error DeleteFn func(ctx context.Context, file, namespace string) error ConfigureFn func(ctx context.Context, file, namespace string) error GetFn func(ctx context.Context, file, namespace string) error CreateNSFn func(ctx context.Context, ns string) error DeleteNSFn func(ctx context.Context, ns string) error }
CB is a helper struct satisfying CMD interface. Use the fields to provide callbacks for respective CMD method call.
type CMD ¶
type CMD interface { Init(ns, kubeconfig string) (cancel func() error, err error) CreateNS(ctx context.Context, ns string) error DeleteNS(ctx context.Context, ns string) error Create(ctx context.Context, file, namespace string) error Configure(ctx context.Context, file, namespace string) error Delete(ctx context.Context, file, namespace string) error Get(ctx context.Context, file, namespace string) error }
Click to show internal directories.
Click to hide internal directories.