release

package
v2.0.0-alpha.2....-120256e Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2016 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package release is a generated protocol buffer package.

It is generated from these files:

hapi/release/hook.proto
hapi/release/info.proto
hapi/release/release.proto
hapi/release/status.proto

It has these top-level messages:

Hook
Info
Release
Status

Index

Constants

This section is empty.

Variables

View Source
var Hook_Event_name = map[int32]string{
	0: "UNKNOWN",
	1: "PRE_INSTALL",
	2: "POST_INSTALL",
	3: "PRE_DELETE",
	4: "POST_DELETE",
	5: "PRE_UPGRADE",
	6: "POST_UPGRADE",
}
View Source
var Hook_Event_value = map[string]int32{
	"UNKNOWN":      0,
	"PRE_INSTALL":  1,
	"POST_INSTALL": 2,
	"PRE_DELETE":   3,
	"POST_DELETE":  4,
	"PRE_UPGRADE":  5,
	"POST_UPGRADE": 6,
}
View Source
var Status_Code_name = map[int32]string{
	0: "UNKNOWN",
	1: "DEPLOYED",
	2: "DELETED",
	3: "SUPERSEDED",
	4: "FAILED",
}
View Source
var Status_Code_value = map[string]int32{
	"UNKNOWN":    0,
	"DEPLOYED":   1,
	"DELETED":    2,
	"SUPERSEDED": 3,
	"FAILED":     4,
}

Functions

This section is empty.

Types

type Hook

type Hook struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Kind is the Kubernetes kind.
	Kind string `protobuf:"bytes,2,opt,name=kind" json:"kind,omitempty"`
	// Path is the chart-relative path to the template.
	Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
	// Manifest is the manifest contents.
	Manifest string `protobuf:"bytes,4,opt,name=manifest" json:"manifest,omitempty"`
	// Events are the events that this hook fires on.
	Events []Hook_Event `protobuf:"varint,5,rep,name=events,enum=hapi.release.Hook_Event" json:"events,omitempty"`
	// LastRun indicates the date/time this was last run.
	LastRun *google_protobuf.Timestamp `protobuf:"bytes,6,opt,name=last_run,json=lastRun" json:"last_run,omitempty"`
}

Hook defines a hook object.

func (*Hook) Descriptor

func (*Hook) Descriptor() ([]byte, []int)

func (*Hook) GetLastRun

func (m *Hook) GetLastRun() *google_protobuf.Timestamp

func (*Hook) ProtoMessage

func (*Hook) ProtoMessage()

func (*Hook) Reset

func (m *Hook) Reset()

func (*Hook) String

func (m *Hook) String() string

type Hook_Event

type Hook_Event int32
const (
	Hook_UNKNOWN      Hook_Event = 0
	Hook_PRE_INSTALL  Hook_Event = 1
	Hook_POST_INSTALL Hook_Event = 2
	Hook_PRE_DELETE   Hook_Event = 3
	Hook_POST_DELETE  Hook_Event = 4
	Hook_PRE_UPGRADE  Hook_Event = 5
	Hook_POST_UPGRADE Hook_Event = 6
)

func (Hook_Event) EnumDescriptor

func (Hook_Event) EnumDescriptor() ([]byte, []int)

func (Hook_Event) String

func (x Hook_Event) String() string

type Info

type Info struct {
	Status        *Status                    `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
	FirstDeployed *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=first_deployed,json=firstDeployed" json:"first_deployed,omitempty"`
	LastDeployed  *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=last_deployed,json=lastDeployed" json:"last_deployed,omitempty"`
	// Deleted tracks when this object was deleted.
	Deleted *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=deleted" json:"deleted,omitempty"`
}

Info describes release information.

func (*Info) Descriptor

func (*Info) Descriptor() ([]byte, []int)

func (*Info) GetDeleted

func (m *Info) GetDeleted() *google_protobuf.Timestamp

func (*Info) GetFirstDeployed

func (m *Info) GetFirstDeployed() *google_protobuf.Timestamp

func (*Info) GetLastDeployed

func (m *Info) GetLastDeployed() *google_protobuf.Timestamp

func (*Info) GetStatus

func (m *Info) GetStatus() *Status

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) String

func (m *Info) String() string

type Release

type Release struct {
	// Name is the name of the release
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Info provides information about a release
	Info *Info `protobuf:"bytes,2,opt,name=info" json:"info,omitempty"`
	// Chart is the chart that was released.
	Chart *hapi_chart3.Chart `protobuf:"bytes,3,opt,name=chart" json:"chart,omitempty"`
	// Config is the set of extra Values added to the chart.
	// These values override the default values inside of the chart.
	Config *hapi_chart.Config `protobuf:"bytes,4,opt,name=config" json:"config,omitempty"`
	// Manifest is the string representation of the rendered template.
	Manifest string `protobuf:"bytes,5,opt,name=manifest" json:"manifest,omitempty"`
	// Hooks are all of the hooks declared for this release.
	Hooks []*Hook `protobuf:"bytes,6,rep,name=hooks" json:"hooks,omitempty"`
	// Version is an int32 which represents the version of the release.
	Version int32 `protobuf:"varint,7,opt,name=version" json:"version,omitempty"`
	// Namespace is the kubernetes namespace of the release.
	Namespace string `protobuf:"bytes,8,opt,name=namespace" json:"namespace,omitempty"`
}

Release describes a deployment of a chart, together with the chart and the variables used to deploy that chart.

func (*Release) Descriptor

func (*Release) Descriptor() ([]byte, []int)

func (*Release) GetChart

func (m *Release) GetChart() *hapi_chart3.Chart

func (*Release) GetConfig

func (m *Release) GetConfig() *hapi_chart.Config

func (*Release) GetHooks

func (m *Release) GetHooks() []*Hook

func (*Release) GetInfo

func (m *Release) GetInfo() *Info

func (*Release) ProtoMessage

func (*Release) ProtoMessage()

func (*Release) Reset

func (m *Release) Reset()

func (*Release) String

func (m *Release) String() string

type Status

type Status struct {
	Code    Status_Code           `protobuf:"varint,1,opt,name=code,enum=hapi.release.Status_Code" json:"code,omitempty"`
	Details *google_protobuf1.Any `protobuf:"bytes,2,opt,name=details" json:"details,omitempty"`
	// Cluster resources as kubectl would print them.
	Resources string `protobuf:"bytes,3,opt,name=resources" json:"resources,omitempty"`
}

Status defines the status of a release.

func (*Status) Descriptor

func (*Status) Descriptor() ([]byte, []int)

func (*Status) GetDetails

func (m *Status) GetDetails() *google_protobuf1.Any

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) String

func (m *Status) String() string

type Status_Code

type Status_Code int32
const (
	// Status_UNKNOWN indicates that a release is in an uncertain state.
	Status_UNKNOWN Status_Code = 0
	// Status_DEPLOYED indicates that the release has been pushed to Kubernetes.
	Status_DEPLOYED Status_Code = 1
	// Status_DELETED indicates that a release has been deleted from Kubermetes.
	Status_DELETED Status_Code = 2
	// Status_SUPERSEDED indicates that this release object is outdated and a newer one exists.
	Status_SUPERSEDED Status_Code = 3
	// Status_FAILED indicates that the release was not successfully deployed.
	Status_FAILED Status_Code = 4
)

func (Status_Code) EnumDescriptor

func (Status_Code) EnumDescriptor() ([]byte, []int)

func (Status_Code) String

func (x Status_Code) String() string

Jump to

Keyboard shortcuts

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