Documentation ¶
Index ¶
- type AppOverview
- type Proxy
- func (p *Proxy) CreateRelease(name, namespace, values string, ch *chart.Chart) (*release.Release, error)
- func (p *Proxy) DeleteRelease(name, namespace string, purge bool) error
- func (p *Proxy) GetRelease(name, namespace string) (*release.Release, error)
- func (p *Proxy) GetReleaseStatus(relName string) (release.Status_Code, error)
- func (p *Proxy) ListReleases(namespace string, releaseListLimit int, status string) ([]AppOverview, error)
- func (p *Proxy) ResolveManifest(namespace, values string, ch *chart.Chart) (string, error)
- func (p *Proxy) ResolveManifestFromRelease(releaseName string, revision int32) (string, error)
- func (p *Proxy) RollbackRelease(name, namespace string, revision int32) (*release.Release, error)
- func (p *Proxy) TestRelease(name, namespace string) (*TestStatus, error)
- func (p *Proxy) UpdateRelease(name, namespace string, values string, ch *chart.Chart) (*release.Release, error)
- type TestStatus
- type TillerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppOverview ¶
type AppOverview struct { ReleaseName string `json:"releaseName"` Version string `json:"version"` Namespace string `json:"namespace"` Icon string `json:"icon,omitempty"` Status string `json:"status"` Chart string `json:"chart"` ChartMetadata chart.Metadata `json:"chartMetadata"` }
AppOverview represents the basics of a release
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy contains all the elements to contact Tiller and the K8s API
func (*Proxy) CreateRelease ¶
func (p *Proxy) CreateRelease(name, namespace, values string, ch *chart.Chart) (*release.Release, error)
CreateRelease creates a tiller release
func (*Proxy) DeleteRelease ¶
DeleteRelease deletes a release
func (*Proxy) GetRelease ¶
GetRelease returns the info of a release
func (*Proxy) GetReleaseStatus ¶
func (p *Proxy) GetReleaseStatus(relName string) (release.Status_Code, error)
GetReleaseStatus returns the status of the given release if it exists
func (*Proxy) ListReleases ¶
func (p *Proxy) ListReleases(namespace string, releaseListLimit int, status string) ([]AppOverview, error)
ListReleases lists releases in a specific namespace if given
func (*Proxy) ResolveManifest ¶
ResolveManifest returns a manifest given the chart parameters
func (*Proxy) ResolveManifestFromRelease ¶ added in v1.5.0
ResolveManifestFromRelease returns a manifest given the release name and revision
func (*Proxy) RollbackRelease ¶ added in v1.5.0
RollbackRelease rolls back to a specific revision
func (*Proxy) TestRelease ¶ added in v1.8.0
func (p *Proxy) TestRelease(name, namespace string) (*TestStatus, error)
TestRelease runs tests for a release in a namespace
type TestStatus ¶ added in v1.8.0
TestStatus is an alias for a mapping between a string to a list of strings key is "status" returned by Tiller value is "message" of status key
type TillerClient ¶
type TillerClient interface { GetReleaseStatus(relName string) (release.Status_Code, error) ResolveManifest(namespace, values string, ch *chart.Chart) (string, error) ResolveManifestFromRelease(releaseName string, revision int32) (string, error) ListReleases(namespace string, releaseListLimit int, status string) ([]AppOverview, error) CreateRelease(name, namespace, values string, ch *chart.Chart) (*release.Release, error) TestRelease(relName, namespace string) (*TestStatus, error) UpdateRelease(name, namespace string, values string, ch *chart.Chart) (*release.Release, error) RollbackRelease(name, namespace string, revision int32) (*release.Release, error) GetRelease(name, namespace string) (*release.Release, error) DeleteRelease(name, namespace string, purge bool) error }
TillerClient for exposed funcs