driver

package
v1.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigMapDriverName = "ConfigMap"

ConfigMapDriverName is local storage driver name

View Source
const LocalDriverName = "Local"

LocalDriverName is local storage driver name

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMap

type ConfigMap struct {
	api.Driver
}

ConfigMap Storage

func NewConfigMapStorage

func NewConfigMapStorage() *ConfigMap

NewConfigMapStorage get storage client of ConfigMap type

func (*ConfigMap) Delete

func (c *ConfigMap) Delete(envName, appName string) error

Delete applications from configmap storage

func (*ConfigMap) Get

func (c *ConfigMap) Get(envName, appName string) (*api.Application, error)

Get applications from configmap storage

func (*ConfigMap) List

func (c *ConfigMap) List(envName string) ([]*api.Application, error)

List applications from configmap storage

func (*ConfigMap) Name

func (c *ConfigMap) Name() string

Name of local storage

func (*ConfigMap) Save

func (c *ConfigMap) Save(app *api.Application, envName string) error

Save applications from configmap storage

type Local

type Local struct {
	api.Driver
}

Local Storage

func NewLocalStorage

func NewLocalStorage() *Local

NewLocalStorage get storage client of Local type

func (*Local) Delete

func (l *Local) Delete(envName, appName string) error

Delete application from local storage

func (*Local) Name

func (l *Local) Name() string

Name is local storage driver name

func (*Local) Save

func (l *Local) Save(app *api.Application, envName string) error

Save application from local storage

Jump to

Keyboard shortcuts

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