client

package
v0.0.0-...-5b11e35 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrResourceConflict  = errors.New("resource already exists")
	ErrResourceNotFound  = errors.New("resource not found")
	ErrResourceForbidden = errors.New("resource forbidden")
	ErrBadRequest        = errors.New("bad request")
)

Functions

func IsConflict

func IsConflict(err error) bool

func IsNotFound

func IsNotFound(err error) bool

Types

type Client

type Client struct {
	*validator.Validator
	// contains filtered or unexported fields
}

func New

func New(vaultURL string, kitSvc kubefox.KitSvc) (*Client, error)

func (*Client) Kube

func (client *Client) Kube() *kubeClient

func (*Client) Vault

func (client *Client) Vault() *vaultClient

type UpdateOp

type UpdateOp uint8
const (
	Create UpdateOp = iota
	Put
	Patch
)

func (UpdateOp) String

func (o UpdateOp) String() string

Jump to

Keyboard shortcuts

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