endpoint

package
v0.0.0-...-488bbbf Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Namespace = "kbase"
)

Functions

func MaybeCreate

func MaybeCreate(client Client, obj NamesapcedObject)

func MaybeUpdate

func MaybeUpdate(client Client, update func(NamesapcedObject) NamesapcedObject)

func NewRequestBody

func NewRequestBody(obj interface{}) io.ReadCloser

func SetLogLevel

func SetLogLevel(level int)

Types

type Ceph

type Ceph struct {
	Monitors []string
	User     string
	Token    string
}

type Client

type Client interface {
	Do(request http.Request) http.Response
	Config() Config
}

func NewAPIClient

func NewAPIClient(config Config) Client

type Config

type Config struct {
	Rest rest.Config
	Ceph Ceph
}

func NewDefaultConfig

func NewDefaultConfig() Config

type NamesapcedObject

type NamesapcedObject struct {
	Group     string
	Version   string
	Kind      string
	Namespace string
	API       string
	Name      string
	Object    interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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