Documentation ¶
Index ¶
- type ConfigMaps
- func (s *ConfigMaps) CreateBuild(ctx context.Context, appName string, build *storage.Object) error
- func (s *ConfigMaps) DeleteBuild(ctx context.Context, appName, buildID string) (obj *storage.Object, err error)
- func (s *ConfigMaps) DeleteBuilds(ctx context.Context, appName string) ([]*storage.Object, error)
- func (s *ConfigMaps) GetBuild(ctx context.Context, appName, buildID string) (obj *storage.Object, err error)
- func (s *ConfigMaps) GetBuilds(ctx context.Context, appName string) (builds []*storage.Object, err error)
- func (s *ConfigMaps) UpdateBuild(ctx context.Context, appName string, build *storage.Object) (err error)
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 ¶
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 ¶
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.