configmap

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMaps

type ConfigMaps struct {
	// contains filtered or unexported fields
}

ConfigMaps represents a Kubernetes configmap storage engine for a storage.Object .

func NewConfigMaps

func NewConfigMaps(impl corev1.ConfigMapInterface) *ConfigMaps

NewConfigMaps returns an implementation of storage.Store backed by kubernetes ConfigMap objects to store draft application build context.

func (*ConfigMaps) CreateBuild

func (s *ConfigMaps) CreateBuild(ctx context.Context, appName string, build *storage.Object) error

CreateBuild creates new storage for the application specified by appName to include build.

If the configmap storage already exists for the application, ErrAppStorageExists is returned.

CreateBuild implements storage.Creater.

func (*ConfigMaps) DeleteBuild

func (s *ConfigMaps) DeleteBuild(ctx context.Context, appName, buildID string) (obj *storage.Object, err error)

DeleteBuild deletes the draft build given by buildID for the application specified by appName.

DeleteBuild implements storage.Deleter.

func (*ConfigMaps) DeleteBuilds

func (s *ConfigMaps) DeleteBuilds(ctx context.Context, appName string) ([]*storage.Object, error)

DeleteBuilds deletes all draft builds for the application specified by appName.

DeleteBuilds implements storage.Deleter.

func (*ConfigMaps) GetBuild

func (s *ConfigMaps) GetBuild(ctx context.Context, appName, buildID string) (obj *storage.Object, err error)

GetBuild returns the build associated with buildID for the specified app name.

GetBuild implements storage.Getter.

func (*ConfigMaps) GetBuilds

func (s *ConfigMaps) GetBuilds(ctx context.Context, appName string) (builds []*storage.Object, err error)

GetBuilds returns a slice of builds for the given app name.

GetBuilds implements storage.Getter.

func (*ConfigMaps) UpdateBuild

func (s *ConfigMaps) UpdateBuild(ctx context.Context, appName string, build *storage.Object) (err error)

UpdateBuild updates the application configmap storage specified by appName to include build.

If build does not exist, a new storage entry is created. Otherwise the existing storage is updated.

UpdateBuild implements storage.Updater.

Jump to

Keyboard shortcuts

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