Documentation ¶
Overview ¶
nolint:unparam
Index ¶
- Constants
- func ParseKey(key string) (string, int, error)
- func ResourceFilename(apiVersion, kind, chartName, name string) (string, string, string)
- func ResourceKey(apiVersion, kind, chartName, name string) (string, error)
- type Applications
- func (d *Applications) Create(_ string, rls *rspb.Release) error
- func (d *Applications) Delete(key string) (rls *rspb.Release, err error)
- func (d *Applications) Get(key string) (*rspb.Release, error)
- func (d *Applications) List(filter func(*rspb.Release) bool) ([]*rspb.Release, error)
- func (d *Applications) Name() string
- func (d *Applications) Query(labels map[string]string) ([]*rspb.Release, error)
- func (d *Applications) Update(_ string, rls *rspb.Release) error
- type EditorTemplate
Constants ¶
const ApplicationsDriverName = "storage.x-helm.dev/apps"
ApplicationsDriverName is the string name of the driver.
Variables ¶
This section is empty.
Functions ¶
func ParseKey ¶
ParseKey returns release name and version from a key generated by makeKey. ref: https://github.com/helm/helm/blob/241785c70fb38b2c074d7b3ddf0925812fb3fc69/pkg/storage/storage.go#L242-L250
func ResourceFilename ¶
func ResourceKey ¶
Types ¶
type Applications ¶
type Applications struct { Log func(string, ...interface{}) // contains filtered or unexported fields }
Applications is a wrapper around an implementation of a kubernetes ApplicationsInterface.
func NewApplications ¶
func NewApplications(ai cs.ApplicationInterface, di dynamic.Interface, cl discovery.ResourceMapper) *Applications
NewApplications initializes a new Applications wrapping an implementation of the kubernetes ApplicationsInterface.
func (*Applications) Create ¶
func (d *Applications) Create(_ string, rls *rspb.Release) error
Create creates a new Application holding the release. If the Application already exists, ErrReleaseExists is returned.
func (*Applications) Delete ¶
func (d *Applications) Delete(key string) (rls *rspb.Release, err error)
Delete deletes the Application holding the release named by key.
func (*Applications) Get ¶
func (d *Applications) Get(key string) (*rspb.Release, error)
Get fetches the release named by key. The corresponding release is returned or error if not found.
func (*Applications) List ¶
List fetches all releases and returns the list releases such that filter(release) == true. An error is returned if the configmap fails to retrieve the releases.
func (*Applications) Name ¶
func (d *Applications) Name() string
Name returns the name of the driver.
type EditorTemplate ¶
type EditorTemplate struct { Manifest []byte `json:"manifest,omitempty"` Values *unstructured.Unstructured `json:"values,omitempty"` }
func EditorChartValueManifest ¶
func EditorChartValueManifest(app *v1beta1.Application, mapper discovery.ResourceMapper, dc dynamic.Interface, rls types.NamespacedName, editorGVR *metav1.GroupVersionResource) (*EditorTemplate, error)