v2

package
v0.0.0-...-0ff8929 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package v2 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v2 is a generated protocol buffer package.

It is generated from these files:

tiller.proto

It has these top-level messages:

SummarizeReleasesRequest
ListSort
ListReleasesResponse
SummarizeReleasesResponse
ReleaseSummary
GetReleaseStatusRequest
GetReleaseStatusResponse
GetReleaseContentRequest
GetReleaseContentResponse
UpdateReleaseRequest
UpdateReleaseResponse
RollbackReleaseRequest
RollbackReleaseResponse
InstallReleaseRequest
InstallReleaseResponse
UninstallReleaseRequest
UninstallReleaseResponse
GetVersionRequest
GetVersionResponse
GetHistoryRequest
GetHistoryResponse

Package v2 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var ListSort_SortBy_name = map[int32]string{
	0: "UNKNOWN",
	1: "NAME",
	2: "LAST_RELEASED",
}
View Source
var ListSort_SortBy_value = map[string]int32{
	"UNKNOWN":       0,
	"NAME":          1,
	"LAST_RELEASED": 2,
}
View Source
var ListSort_SortOrder_name = map[int32]string{
	0: "ASC",
	1: "DESC",
}
View Source
var ListSort_SortOrder_value = map[string]int32{
	"ASC":  0,
	"DESC": 1,
}

Functions

func ExportReleaseServiceCorsPatterns

func ExportReleaseServiceCorsPatterns() []runtime.Pattern

ExportReleaseServiceCorsPatterns returns an array of grpc gatway mux patterns for ReleaseService service to enable CORS.

func RegisterReleaseServiceHandler

func RegisterReleaseServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterReleaseServiceHandler registers the http handlers for service ReleaseService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterReleaseServiceHandlerClient

func RegisterReleaseServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ReleaseServiceClient) error

RegisterReleaseServiceHandler registers the http handlers for service ReleaseService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ReleaseServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ReleaseServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ReleaseServiceClient" to call the correct interceptors.

func RegisterReleaseServiceHandlerFromEndpoint

func RegisterReleaseServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterReleaseServiceHandlerFromEndpoint is same as RegisterReleaseServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterReleaseServiceServer

func RegisterReleaseServiceServer(s *grpc.Server, srv ReleaseServiceServer)

Types

type GetHistoryRequest

type GetHistoryRequest struct {
	// The name of the release.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// The maximum number of releases to include.
	Max int32 `protobuf:"varint,2,opt,name=max" json:"max,omitempty"`
}

GetHistoryRequest requests a release's history.

func (*GetHistoryRequest) Descriptor

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

func (*GetHistoryRequest) GetMax

func (m *GetHistoryRequest) GetMax() int32

func (*GetHistoryRequest) GetName

func (m *GetHistoryRequest) GetName() string

func (*GetHistoryRequest) IsRequest

func (m *GetHistoryRequest) IsRequest()

func (*GetHistoryRequest) ProtoMessage

func (*GetHistoryRequest) ProtoMessage()

func (*GetHistoryRequest) Reset

func (m *GetHistoryRequest) Reset()

func (*GetHistoryRequest) String

func (m *GetHistoryRequest) String() string

func (*GetHistoryRequest) Valid

func (m *GetHistoryRequest) Valid() (*gojsonschema.Result, error)

type GetHistoryResponse

type GetHistoryResponse struct {
	Releases []*hapi_release5.Release `protobuf:"bytes,1,rep,name=releases" json:"releases,omitempty"`
}

GetHistoryResponse is received in response to a GetHistory rpc.

func (*GetHistoryResponse) Descriptor

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

func (*GetHistoryResponse) GetReleases

func (m *GetHistoryResponse) GetReleases() []*hapi_release5.Release

func (*GetHistoryResponse) ProtoMessage

func (*GetHistoryResponse) ProtoMessage()

func (*GetHistoryResponse) Reset

func (m *GetHistoryResponse) Reset()

func (*GetHistoryResponse) String

func (m *GetHistoryResponse) String() string

type GetReleaseContentRequest

type GetReleaseContentRequest struct {
	// The name of the release
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Version is the version of the release
	Version int32 `protobuf:"varint,2,opt,name=version" json:"version,omitempty"`
	// Format release config and values to JSON string
	FormatValuesAsJson bool `protobuf:"varint,3,opt,name=format_values_as_json,json=formatValuesAsJson" json:"format_values_as_json,omitempty"`
}

GetReleaseContentRequest is a request to get the contents of a release.

func (*GetReleaseContentRequest) Descriptor

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

func (*GetReleaseContentRequest) GetFormatValuesAsJson

func (m *GetReleaseContentRequest) GetFormatValuesAsJson() bool

func (*GetReleaseContentRequest) GetName

func (m *GetReleaseContentRequest) GetName() string

func (*GetReleaseContentRequest) GetVersion

func (m *GetReleaseContentRequest) GetVersion() int32

func (*GetReleaseContentRequest) IsRequest

func (m *GetReleaseContentRequest) IsRequest()

func (*GetReleaseContentRequest) ProtoMessage

func (*GetReleaseContentRequest) ProtoMessage()

func (*GetReleaseContentRequest) Reset

func (m *GetReleaseContentRequest) Reset()

func (*GetReleaseContentRequest) String

func (m *GetReleaseContentRequest) String() string

func (*GetReleaseContentRequest) Valid

type GetReleaseContentResponse

type GetReleaseContentResponse struct {
	// The release content
	Release *hapi_release5.Release `protobuf:"bytes,1,opt,name=release" json:"release,omitempty"`
}

GetReleaseContentResponse is a response containing the contents of a release.

func (*GetReleaseContentResponse) Descriptor

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

func (*GetReleaseContentResponse) GetRelease

func (*GetReleaseContentResponse) ProtoMessage

func (*GetReleaseContentResponse) ProtoMessage()

func (*GetReleaseContentResponse) Reset

func (m *GetReleaseContentResponse) Reset()

func (*GetReleaseContentResponse) String

func (m *GetReleaseContentResponse) String() string

type GetReleaseStatusRequest

type GetReleaseStatusRequest struct {
	// Name is the name of the release
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Version is the version of the release
	Version int32 `protobuf:"varint,2,opt,name=version" json:"version,omitempty"`
}

GetReleaseStatusRequest is a request to get the status of a release.

func (*GetReleaseStatusRequest) Descriptor

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

func (*GetReleaseStatusRequest) GetName

func (m *GetReleaseStatusRequest) GetName() string

func (*GetReleaseStatusRequest) GetVersion

func (m *GetReleaseStatusRequest) GetVersion() int32

func (*GetReleaseStatusRequest) IsRequest

func (m *GetReleaseStatusRequest) IsRequest()

func (*GetReleaseStatusRequest) ProtoMessage

func (*GetReleaseStatusRequest) ProtoMessage()

func (*GetReleaseStatusRequest) Reset

func (m *GetReleaseStatusRequest) Reset()

func (*GetReleaseStatusRequest) String

func (m *GetReleaseStatusRequest) String() string

func (*GetReleaseStatusRequest) Valid

type GetReleaseStatusResponse

type GetReleaseStatusResponse struct {
	// Name is the name of the release.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Info contains information about the release.
	Info *hapi_release4.Info `protobuf:"bytes,2,opt,name=info" json:"info,omitempty"`
	// Namesapce the release was released into
	Namespace string `protobuf:"bytes,3,opt,name=namespace" json:"namespace,omitempty"`
}

GetReleaseStatusResponse is the response indicating the status of the named release.

func (*GetReleaseStatusResponse) Descriptor

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

func (*GetReleaseStatusResponse) GetInfo

func (*GetReleaseStatusResponse) GetName

func (m *GetReleaseStatusResponse) GetName() string

func (*GetReleaseStatusResponse) GetNamespace

func (m *GetReleaseStatusResponse) GetNamespace() string

func (*GetReleaseStatusResponse) ProtoMessage

func (*GetReleaseStatusResponse) ProtoMessage()

func (*GetReleaseStatusResponse) Reset

func (m *GetReleaseStatusResponse) Reset()

func (*GetReleaseStatusResponse) String

func (m *GetReleaseStatusResponse) String() string

type GetVersionRequest

type GetVersionRequest struct {
}

GetVersionRequest requests for version information.

func (*GetVersionRequest) Descriptor

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

func (*GetVersionRequest) IsRequest

func (m *GetVersionRequest) IsRequest()

func (*GetVersionRequest) ProtoMessage

func (*GetVersionRequest) ProtoMessage()

func (*GetVersionRequest) Reset

func (m *GetVersionRequest) Reset()

func (*GetVersionRequest) String

func (m *GetVersionRequest) String() string

func (*GetVersionRequest) Valid

func (m *GetVersionRequest) Valid() (*gojsonschema.Result, error)

type GetVersionResponse

type GetVersionResponse struct {
	Version *hapi_version.Version `protobuf:"bytes,1,opt,name=Version" json:"Version,omitempty"`
}

func (*GetVersionResponse) Descriptor

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

func (*GetVersionResponse) GetVersion

func (m *GetVersionResponse) GetVersion() *hapi_version.Version

func (*GetVersionResponse) ProtoMessage

func (*GetVersionResponse) ProtoMessage()

func (*GetVersionResponse) Reset

func (m *GetVersionResponse) Reset()

func (*GetVersionResponse) String

func (m *GetVersionResponse) String() string

type InstallReleaseRequest

type InstallReleaseRequest struct {
	// Chart is the protobuf representation of a chart.
	Chart *hapi_chart3.Chart `protobuf:"bytes,1,opt,name=chart" json:"chart,omitempty"`
	// Values is a string containing (unparsed) YAML values.
	Values *hapi_chart.Config `protobuf:"bytes,2,opt,name=values" json:"values,omitempty"`
	// DryRun, if true, will run through the release logic, but neither create
	// a release object nor deploy to Kubernetes. The release object returned
	// in the response will be fake.
	DryRun bool `protobuf:"varint,3,opt,name=dry_run,json=dryRun" json:"dry_run,omitempty"`
	// Name is the candidate release name. This must be unique to the
	// namespace, otherwise the server will return an error. If it is not
	// supplied, the server will autogenerate one.
	Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"`
	// DisableHooks causes the server to skip running any hooks for the install.
	DisableHooks bool `protobuf:"varint,5,opt,name=disable_hooks,json=disableHooks" json:"disable_hooks,omitempty"`
	// Namepace is the kubernetes namespace of the release.
	Namespace string `protobuf:"bytes,6,opt,name=namespace" json:"namespace,omitempty"`
	// ReuseName requests that Tiller re-uses a name, instead of erroring out.
	ReuseName bool `protobuf:"varint,7,opt,name=reuse_name,json=reuseName" json:"reuse_name,omitempty"`
	// timeout specifies the max amount of time any kubernetes client command can run.
	Timeout int64 `protobuf:"varint,8,opt,name=timeout" json:"timeout,omitempty"`
	// wait, if true, will wait until all Pods, PVCs, and Services are in a ready state
	// before marking the release as successful. It will wait for as long as timeout
	Wait bool `protobuf:"varint,9,opt,name=wait" json:"wait,omitempty"`
	// URL to download chart archive
	ChartUrl string `protobuf:"bytes,10,opt,name=chart_url,json=chartUrl" json:"chart_url,omitempty"`
	// `ca_bundle` is a PEM encoded CA bundle used to sign server certificate of chart repository.
	// +optional
	CaBundle []byte `protobuf:"bytes,11,opt,name=ca_bundle,json=caBundle,proto3" json:"ca_bundle,omitempty"`
	// Username is the username for basic authentication to the chart repository.
	// +optional
	Username string `protobuf:"bytes,12,opt,name=username" json:"username,omitempty"`
	// Password is the password for basic authentication to the chart repository.
	// +optional
	Password string `protobuf:"bytes,13,opt,name=password" json:"password,omitempty"`
	// Token is the bearer token for authentication to the chart repository.
	// +optional
	Token string `protobuf:"bytes,14,opt,name=token" json:"token,omitempty"`
	// ClientCertificate contains PEM-encoded data passed as a client cert to chart repository.
	// +optional
	ClientCertificate []byte `protobuf:"bytes,15,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"`
	// ClientKey contains PEM-encoded data passed as a client key to chart repository.
	// +optional
	ClientKey []byte `protobuf:"bytes,16,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"`
	// Skip certificate verification for chart repository.
	// +optional
	InsecureSkipVerify bool `protobuf:"varint,17,opt,name=insecure_skip_verify,json=insecureSkipVerify" json:"insecure_skip_verify,omitempty"`
}

InstallReleaseRequest is the request for an installation of a chart.

func (*InstallReleaseRequest) Descriptor

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

func (*InstallReleaseRequest) GetCaBundle

func (m *InstallReleaseRequest) GetCaBundle() []byte

func (*InstallReleaseRequest) GetChart

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

func (*InstallReleaseRequest) GetChartUrl

func (m *InstallReleaseRequest) GetChartUrl() string

func (*InstallReleaseRequest) GetClientCertificate

func (m *InstallReleaseRequest) GetClientCertificate() []byte

func (*InstallReleaseRequest) GetClientKey

func (m *InstallReleaseRequest) GetClientKey() []byte

func (*InstallReleaseRequest) GetDisableHooks

func (m *InstallReleaseRequest) GetDisableHooks() bool

func (*InstallReleaseRequest) GetDryRun

func (m *InstallReleaseRequest) GetDryRun() bool

func (*InstallReleaseRequest) GetInsecureSkipVerify

func (m *InstallReleaseRequest) GetInsecureSkipVerify() bool

func (*InstallReleaseRequest) GetName

func (m *InstallReleaseRequest) GetName() string

func (*InstallReleaseRequest) GetNamespace

func (m *InstallReleaseRequest) GetNamespace() string

func (*InstallReleaseRequest) GetPassword

func (m *InstallReleaseRequest) GetPassword() string

func (*InstallReleaseRequest) GetReuseName

func (m *InstallReleaseRequest) GetReuseName() bool

func (*InstallReleaseRequest) GetTimeout

func (m *InstallReleaseRequest) GetTimeout() int64

func (*InstallReleaseRequest) GetToken

func (m *InstallReleaseRequest) GetToken() string

func (*InstallReleaseRequest) GetUsername

func (m *InstallReleaseRequest) GetUsername() string

func (*InstallReleaseRequest) GetValues

func (m *InstallReleaseRequest) GetValues() *hapi_chart.Config

func (*InstallReleaseRequest) GetWait

func (m *InstallReleaseRequest) GetWait() bool

func (*InstallReleaseRequest) IsRequest

func (m *InstallReleaseRequest) IsRequest()

func (*InstallReleaseRequest) ProtoMessage

func (*InstallReleaseRequest) ProtoMessage()

func (*InstallReleaseRequest) Reset

func (m *InstallReleaseRequest) Reset()

func (*InstallReleaseRequest) String

func (m *InstallReleaseRequest) String() string

func (*InstallReleaseRequest) Valid

type InstallReleaseResponse

type InstallReleaseResponse struct {
	Release *hapi_release5.Release `protobuf:"bytes,1,opt,name=release" json:"release,omitempty"`
}

InstallReleaseResponse is the response from a release installation.

func (*InstallReleaseResponse) Descriptor

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

func (*InstallReleaseResponse) GetRelease

func (m *InstallReleaseResponse) GetRelease() *hapi_release5.Release

func (*InstallReleaseResponse) ProtoMessage

func (*InstallReleaseResponse) ProtoMessage()

func (*InstallReleaseResponse) Reset

func (m *InstallReleaseResponse) Reset()

func (*InstallReleaseResponse) String

func (m *InstallReleaseResponse) String() string

type ListReleasesResponse

type ListReleasesResponse struct {
	// Count is the expected total number of releases to be returned.
	Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
	// Next is the name of the next release. If this is other than an empty
	// string, it means there are more results.
	Next string `protobuf:"bytes,2,opt,name=next" json:"next,omitempty"`
	// Total is the total number of queryable releases.
	Total int64 `protobuf:"varint,3,opt,name=total" json:"total,omitempty"`
	// Releases is the list of found release objects.
	Releases []*hapi_release5.Release `protobuf:"bytes,4,rep,name=releases" json:"releases,omitempty"`
}

ListReleasesResponse is a list of releases.

func (*ListReleasesResponse) Descriptor

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

func (*ListReleasesResponse) GetCount

func (m *ListReleasesResponse) GetCount() int64

func (*ListReleasesResponse) GetNext

func (m *ListReleasesResponse) GetNext() string

func (*ListReleasesResponse) GetReleases

func (m *ListReleasesResponse) GetReleases() []*hapi_release5.Release

func (*ListReleasesResponse) GetTotal

func (m *ListReleasesResponse) GetTotal() int64

func (*ListReleasesResponse) ProtoMessage

func (*ListReleasesResponse) ProtoMessage()

func (*ListReleasesResponse) Reset

func (m *ListReleasesResponse) Reset()

func (*ListReleasesResponse) String

func (m *ListReleasesResponse) String() string

type ListSort

type ListSort struct {
}

ListSort defines sorting fields on a release list.

func (*ListSort) Descriptor

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

func (*ListSort) ProtoMessage

func (*ListSort) ProtoMessage()

func (*ListSort) Reset

func (m *ListSort) Reset()

func (*ListSort) String

func (m *ListSort) String() string

type ListSort_SortBy

type ListSort_SortBy int32

SortBy defines sort operations.

const (
	ListSort_UNKNOWN       ListSort_SortBy = 0
	ListSort_NAME          ListSort_SortBy = 1
	ListSort_LAST_RELEASED ListSort_SortBy = 2
)

func (ListSort_SortBy) EnumDescriptor

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

func (ListSort_SortBy) String

func (x ListSort_SortBy) String() string

type ListSort_SortOrder

type ListSort_SortOrder int32

SortOrder defines sort orders to augment sorting operations.

const (
	ListSort_ASC  ListSort_SortOrder = 0
	ListSort_DESC ListSort_SortOrder = 1
)

func (ListSort_SortOrder) EnumDescriptor

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

func (ListSort_SortOrder) String

func (x ListSort_SortOrder) String() string

type ReleaseServiceClient

type ReleaseServiceClient interface {
	// SummarizeReleases retrieves summary of release history.
	// TODO: Allow filtering the set of releases by
	// release status. By default, SummarizeReleases returns the releases who
	// current status is "Active".
	SummarizeReleases(ctx context.Context, in *SummarizeReleasesRequest, opts ...grpc.CallOption) (*SummarizeReleasesResponse, error)
	// GetReleasesStatus retrieves status information for the specified release.
	GetReleaseStatus(ctx context.Context, in *GetReleaseStatusRequest, opts ...grpc.CallOption) (*GetReleaseStatusResponse, error)
	// GetReleaseContent retrieves the release content (chart + value) for the specified release.
	GetReleaseContent(ctx context.Context, in *GetReleaseContentRequest, opts ...grpc.CallOption) (*GetReleaseContentResponse, error)
	// UpdateRelease updates release content.
	UpdateRelease(ctx context.Context, in *UpdateReleaseRequest, opts ...grpc.CallOption) (*UpdateReleaseResponse, error)
	// InstallRelease requests installation of a chart as a new release.
	InstallRelease(ctx context.Context, in *InstallReleaseRequest, opts ...grpc.CallOption) (*InstallReleaseResponse, error)
	// UninstallRelease requests deletion of a named release.
	UninstallRelease(ctx context.Context, in *UninstallReleaseRequest, opts ...grpc.CallOption) (*UninstallReleaseResponse, error)
	// GetVersion returns the current version of the server.
	GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error)
	// RollbackRelease rolls back a release to a previous version.
	RollbackRelease(ctx context.Context, in *RollbackReleaseRequest, opts ...grpc.CallOption) (*RollbackReleaseResponse, error)
	// ReleaseHistory retrieves a releasse's history.
	GetHistory(ctx context.Context, in *GetHistoryRequest, opts ...grpc.CallOption) (*GetHistoryResponse, error)
}

func NewReleaseServiceClient

func NewReleaseServiceClient(cc *grpc.ClientConn) ReleaseServiceClient

type ReleaseServiceServer

type ReleaseServiceServer interface {
	// SummarizeReleases retrieves summary of release history.
	// TODO: Allow filtering the set of releases by
	// release status. By default, SummarizeReleases returns the releases who
	// current status is "Active".
	SummarizeReleases(context.Context, *SummarizeReleasesRequest) (*SummarizeReleasesResponse, error)
	// GetReleasesStatus retrieves status information for the specified release.
	GetReleaseStatus(context.Context, *GetReleaseStatusRequest) (*GetReleaseStatusResponse, error)
	// GetReleaseContent retrieves the release content (chart + value) for the specified release.
	GetReleaseContent(context.Context, *GetReleaseContentRequest) (*GetReleaseContentResponse, error)
	// UpdateRelease updates release content.
	UpdateRelease(context.Context, *UpdateReleaseRequest) (*UpdateReleaseResponse, error)
	// InstallRelease requests installation of a chart as a new release.
	InstallRelease(context.Context, *InstallReleaseRequest) (*InstallReleaseResponse, error)
	// UninstallRelease requests deletion of a named release.
	UninstallRelease(context.Context, *UninstallReleaseRequest) (*UninstallReleaseResponse, error)
	// GetVersion returns the current version of the server.
	GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error)
	// RollbackRelease rolls back a release to a previous version.
	RollbackRelease(context.Context, *RollbackReleaseRequest) (*RollbackReleaseResponse, error)
	// ReleaseHistory retrieves a releasse's history.
	GetHistory(context.Context, *GetHistoryRequest) (*GetHistoryResponse, error)
}

type ReleaseSummary

type ReleaseSummary 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 *hapi_release4.Info `protobuf:"bytes,2,opt,name=info" json:"info,omitempty"`
	// ChartMetadata is the metadata of chart that was released.
	ChartMetadata *hapi_chart1.Metadata `protobuf:"bytes,3,opt,name=chart_metadata,json=chartMetadata" json:"chart_metadata,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"`
	// Version is an int32 which represents the version of the release.
	Version int32 `protobuf:"varint,5,opt,name=version" json:"version,omitempty"`
	// Namespace is the kubernetes namespace of the release.
	Namespace string `protobuf:"bytes,6,opt,name=namespace" json:"namespace,omitempty"`
}

ReleaseSummary summaries a deployment of a chart, together with the chart metadata and the variables used to deploy that chart.

func (*ReleaseSummary) Descriptor

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

func (*ReleaseSummary) GetChartMetadata

func (m *ReleaseSummary) GetChartMetadata() *hapi_chart1.Metadata

func (*ReleaseSummary) GetConfig

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

func (*ReleaseSummary) GetInfo

func (m *ReleaseSummary) GetInfo() *hapi_release4.Info

func (*ReleaseSummary) GetName

func (m *ReleaseSummary) GetName() string

func (*ReleaseSummary) GetNamespace

func (m *ReleaseSummary) GetNamespace() string

func (*ReleaseSummary) GetVersion

func (m *ReleaseSummary) GetVersion() int32

func (*ReleaseSummary) ProtoMessage

func (*ReleaseSummary) ProtoMessage()

func (*ReleaseSummary) Reset

func (m *ReleaseSummary) Reset()

func (*ReleaseSummary) String

func (m *ReleaseSummary) String() string

type RollbackReleaseRequest

type RollbackReleaseRequest struct {
	// The name of the release
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// dry_run, if true, will run through the release logic but no create
	DryRun bool `protobuf:"varint,2,opt,name=dry_run,json=dryRun" json:"dry_run,omitempty"`
	// DisableHooks causes the server to skip running any hooks for the rollback
	DisableHooks bool `protobuf:"varint,3,opt,name=disable_hooks,json=disableHooks" json:"disable_hooks,omitempty"`
	// Version is the version of the release to deploy.
	Version int32 `protobuf:"varint,4,opt,name=version" json:"version,omitempty"`
	// Performs pods restart for resources if applicable
	Recreate bool `protobuf:"varint,5,opt,name=recreate" json:"recreate,omitempty"`
	// timeout specifies the max amount of time any kubernetes client command can run.
	Timeout int64 `protobuf:"varint,6,opt,name=timeout" json:"timeout,omitempty"`
	// wait, if true, will wait until all Pods, PVCs, and Services are in a ready state
	// before marking the release as successful. It will wait for as long as timeout
	Wait bool `protobuf:"varint,7,opt,name=wait" json:"wait,omitempty"`
	// Force resource update through delete/recreate if needed.
	Force bool `protobuf:"varint,8,opt,name=force" json:"force,omitempty"`
}

func (*RollbackReleaseRequest) Descriptor

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

func (*RollbackReleaseRequest) GetDisableHooks

func (m *RollbackReleaseRequest) GetDisableHooks() bool

func (*RollbackReleaseRequest) GetDryRun

func (m *RollbackReleaseRequest) GetDryRun() bool

func (*RollbackReleaseRequest) GetForce

func (m *RollbackReleaseRequest) GetForce() bool

func (*RollbackReleaseRequest) GetName

func (m *RollbackReleaseRequest) GetName() string

func (*RollbackReleaseRequest) GetRecreate

func (m *RollbackReleaseRequest) GetRecreate() bool

func (*RollbackReleaseRequest) GetTimeout

func (m *RollbackReleaseRequest) GetTimeout() int64

func (*RollbackReleaseRequest) GetVersion

func (m *RollbackReleaseRequest) GetVersion() int32

func (*RollbackReleaseRequest) GetWait

func (m *RollbackReleaseRequest) GetWait() bool

func (*RollbackReleaseRequest) IsRequest

func (m *RollbackReleaseRequest) IsRequest()

func (*RollbackReleaseRequest) ProtoMessage

func (*RollbackReleaseRequest) ProtoMessage()

func (*RollbackReleaseRequest) Reset

func (m *RollbackReleaseRequest) Reset()

func (*RollbackReleaseRequest) String

func (m *RollbackReleaseRequest) String() string

func (*RollbackReleaseRequest) Valid

type RollbackReleaseResponse

type RollbackReleaseResponse struct {
	Release *hapi_release5.Release `protobuf:"bytes,1,opt,name=release" json:"release,omitempty"`
}

RollbackReleaseResponse is the response to an update request.

func (*RollbackReleaseResponse) Descriptor

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

func (*RollbackReleaseResponse) GetRelease

func (*RollbackReleaseResponse) ProtoMessage

func (*RollbackReleaseResponse) ProtoMessage()

func (*RollbackReleaseResponse) Reset

func (m *RollbackReleaseResponse) Reset()

func (*RollbackReleaseResponse) String

func (m *RollbackReleaseResponse) String() string

type SummarizeReleasesRequest

type SummarizeReleasesRequest struct {
	// Limit is the maximum number of releases to be returned.
	Limit int64 `protobuf:"varint,1,opt,name=limit" json:"limit,omitempty"`
	// Offset is the last release name that was seen. The next listing
	// operation will start with the name after this one.
	// Example: If list one returns albert, bernie, carl, and sets 'next: dennis'.
	// dennis is the offset. Supplying 'dennis' for the next request should
	// cause the next batch to return a set of results starting with 'dennis'.
	Offset string `protobuf:"bytes,2,opt,name=offset" json:"offset,omitempty"`
	// SortBy is the sort field that the ListReleases server should sort data before returning.
	SortBy ListSort_SortBy `protobuf:"varint,3,opt,name=sort_by,json=sortBy,enum=appscode.swift.v2.ListSort_SortBy" json:"sort_by,omitempty"`
	// Filter is a regular expression used to filter which releases should be listed.
	//
	// Anything that matches the regexp will be included in the results.
	Filter string `protobuf:"bytes,4,opt,name=filter" json:"filter,omitempty"`
	// SortOrder is the ordering directive used for sorting.
	SortOrder ListSort_SortOrder `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,enum=appscode.swift.v2.ListSort_SortOrder" json:"sort_order,omitempty"`
	// allowed values are UNKNOWN, DEPLOYED, DELETED, SUPERSEDED, FAILED, DELETING
	StatusCodes []string `protobuf:"bytes,6,rep,name=status_codes,json=statusCodes" json:"status_codes,omitempty"`
	// Namespace is the filter to select releases only from a specific namespace.
	Namespace string `protobuf:"bytes,7,opt,name=namespace" json:"namespace,omitempty"`
	// if true, list releases with all status codes
	All bool `protobuf:"varint,8,opt,name=all" json:"all,omitempty"`
}

SummarizeReleasesRequest requests a list of releases.

Releases can be retrieved in chunks by setting limit and offset.

Releases can be sorted according to a few pre-determined sort stategies.

func (*SummarizeReleasesRequest) Descriptor

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

func (*SummarizeReleasesRequest) GetAll

func (m *SummarizeReleasesRequest) GetAll() bool

func (*SummarizeReleasesRequest) GetFilter

func (m *SummarizeReleasesRequest) GetFilter() string

func (*SummarizeReleasesRequest) GetLimit

func (m *SummarizeReleasesRequest) GetLimit() int64

func (*SummarizeReleasesRequest) GetNamespace

func (m *SummarizeReleasesRequest) GetNamespace() string

func (*SummarizeReleasesRequest) GetOffset

func (m *SummarizeReleasesRequest) GetOffset() string

func (*SummarizeReleasesRequest) GetSortBy

func (*SummarizeReleasesRequest) GetSortOrder

func (m *SummarizeReleasesRequest) GetSortOrder() ListSort_SortOrder

func (*SummarizeReleasesRequest) GetStatusCodes

func (m *SummarizeReleasesRequest) GetStatusCodes() []string

func (*SummarizeReleasesRequest) IsRequest

func (m *SummarizeReleasesRequest) IsRequest()

func (*SummarizeReleasesRequest) ProtoMessage

func (*SummarizeReleasesRequest) ProtoMessage()

func (*SummarizeReleasesRequest) Reset

func (m *SummarizeReleasesRequest) Reset()

func (*SummarizeReleasesRequest) String

func (m *SummarizeReleasesRequest) String() string

func (*SummarizeReleasesRequest) Valid

type SummarizeReleasesResponse

type SummarizeReleasesResponse struct {
	Releases []*ReleaseSummary `protobuf:"bytes,4,rep,name=releases" json:"releases,omitempty"`
}

@appscode SummarizeReleasesResponse is a list of release summaries.

func (*SummarizeReleasesResponse) Descriptor

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

func (*SummarizeReleasesResponse) GetReleases

func (m *SummarizeReleasesResponse) GetReleases() []*ReleaseSummary

func (*SummarizeReleasesResponse) ProtoMessage

func (*SummarizeReleasesResponse) ProtoMessage()

func (*SummarizeReleasesResponse) Reset

func (m *SummarizeReleasesResponse) Reset()

func (*SummarizeReleasesResponse) String

func (m *SummarizeReleasesResponse) String() string

type UninstallReleaseRequest

type UninstallReleaseRequest struct {
	// Name is the name of the release to delete.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// DisableHooks causes the server to skip running any hooks for the uninstall.
	DisableHooks bool `protobuf:"varint,2,opt,name=disable_hooks,json=disableHooks" json:"disable_hooks,omitempty"`
	// Purge removes the release from the store and make its name free for later use.
	Purge bool `protobuf:"varint,3,opt,name=purge" json:"purge,omitempty"`
	// timeout specifies the max amount of time any kubernetes client command can run.
	Timeout int64 `protobuf:"varint,4,opt,name=timeout" json:"timeout,omitempty"`
}

UninstallReleaseRequest represents a request to uninstall a named release.

func (*UninstallReleaseRequest) Descriptor

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

func (*UninstallReleaseRequest) GetDisableHooks

func (m *UninstallReleaseRequest) GetDisableHooks() bool

func (*UninstallReleaseRequest) GetName

func (m *UninstallReleaseRequest) GetName() string

func (*UninstallReleaseRequest) GetPurge

func (m *UninstallReleaseRequest) GetPurge() bool

func (*UninstallReleaseRequest) GetTimeout

func (m *UninstallReleaseRequest) GetTimeout() int64

func (*UninstallReleaseRequest) IsRequest

func (m *UninstallReleaseRequest) IsRequest()

func (*UninstallReleaseRequest) ProtoMessage

func (*UninstallReleaseRequest) ProtoMessage()

func (*UninstallReleaseRequest) Reset

func (m *UninstallReleaseRequest) Reset()

func (*UninstallReleaseRequest) String

func (m *UninstallReleaseRequest) String() string

func (*UninstallReleaseRequest) Valid

type UninstallReleaseResponse

type UninstallReleaseResponse struct {
	// Release is the release that was marked deleted.
	Release *hapi_release5.Release `protobuf:"bytes,1,opt,name=release" json:"release,omitempty"`
	// Info is an uninstall message
	Info string `protobuf:"bytes,2,opt,name=info" json:"info,omitempty"`
}

UninstallReleaseResponse represents a successful response to an uninstall request.

func (*UninstallReleaseResponse) Descriptor

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

func (*UninstallReleaseResponse) GetInfo

func (m *UninstallReleaseResponse) GetInfo() string

func (*UninstallReleaseResponse) GetRelease

func (*UninstallReleaseResponse) ProtoMessage

func (*UninstallReleaseResponse) ProtoMessage()

func (*UninstallReleaseResponse) Reset

func (m *UninstallReleaseResponse) Reset()

func (*UninstallReleaseResponse) String

func (m *UninstallReleaseResponse) String() string

type UpdateReleaseRequest

type UpdateReleaseRequest struct {
	// The name of the release
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Chart is the protobuf representation of a chart.
	Chart *hapi_chart3.Chart `protobuf:"bytes,2,opt,name=chart" json:"chart,omitempty"`
	// Values is a string containing (unparsed) YAML values.
	Values *hapi_chart.Config `protobuf:"bytes,3,opt,name=values" json:"values,omitempty"`
	// dry_run, if true, will run through the release logic, but neither create
	DryRun bool `protobuf:"varint,4,opt,name=dry_run,json=dryRun" json:"dry_run,omitempty"`
	// DisableHooks causes the server to skip running any hooks for the upgrade.
	DisableHooks bool `protobuf:"varint,5,opt,name=disable_hooks,json=disableHooks" json:"disable_hooks,omitempty"`
	// Performs pods restart for resources if applicable
	Recreate bool `protobuf:"varint,6,opt,name=recreate" json:"recreate,omitempty"`
	// timeout specifies the max amount of time any kubernetes client command can run.
	Timeout int64 `protobuf:"varint,7,opt,name=timeout" json:"timeout,omitempty"`
	// ResetValues will cause Tiller to ignore stored values, resetting to default values.
	ResetValues bool `protobuf:"varint,8,opt,name=reset_values,json=resetValues" json:"reset_values,omitempty"`
	// wait, if true, will wait until all Pods, PVCs, and Services are in a ready state
	// before marking the release as successful. It will wait for as long as timeout
	Wait bool `protobuf:"varint,9,opt,name=wait" json:"wait,omitempty"`
	// ReuseValues will cause Tiller to reuse the values from the last release.
	// This is ignored if reset_values is set.
	ReuseValues bool `protobuf:"varint,10,opt,name=reuse_values,json=reuseValues" json:"reuse_values,omitempty"`
	// Force resource update through delete/recreate if needed.
	Force bool `protobuf:"varint,11,opt,name=force" json:"force,omitempty"`
	// URL to download chart archive
	ChartUrl string `protobuf:"bytes,12,opt,name=chart_url,json=chartUrl" json:"chart_url,omitempty"`
	// `ca_bundle` is a PEM encoded CA bundle used to sign server certificate of chart repository.
	// +optional
	CaBundle []byte `protobuf:"bytes,13,opt,name=ca_bundle,json=caBundle,proto3" json:"ca_bundle,omitempty"`
	// Username is the username for basic authentication to the chart repository.
	// +optional
	Username string `protobuf:"bytes,14,opt,name=username" json:"username,omitempty"`
	// Password is the password for basic authentication to the chart repository.
	// +optional
	Password string `protobuf:"bytes,15,opt,name=password" json:"password,omitempty"`
	// Token is the bearer token for authentication to the chart repository.
	// +optional
	Token string `protobuf:"bytes,16,opt,name=token" json:"token,omitempty"`
	// ClientCertificate contains PEM-encoded data passed as a client cert to chart repository.
	// +optional
	ClientCertificate []byte `protobuf:"bytes,17,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"`
	// ClientKey contains PEM-encoded data passed as a client key to chart repository.
	// +optional
	ClientKey []byte `protobuf:"bytes,18,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"`
	// Skip certificate verification for chart repository.
	// +optional
	InsecureSkipVerify bool `protobuf:"varint,19,opt,name=insecure_skip_verify,json=insecureSkipVerify" json:"insecure_skip_verify,omitempty"`
}

UpdateReleaseRequest updates a release.

func (*UpdateReleaseRequest) Descriptor

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

func (*UpdateReleaseRequest) GetCaBundle

func (m *UpdateReleaseRequest) GetCaBundle() []byte

func (*UpdateReleaseRequest) GetChart

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

func (*UpdateReleaseRequest) GetChartUrl

func (m *UpdateReleaseRequest) GetChartUrl() string

func (*UpdateReleaseRequest) GetClientCertificate

func (m *UpdateReleaseRequest) GetClientCertificate() []byte

func (*UpdateReleaseRequest) GetClientKey

func (m *UpdateReleaseRequest) GetClientKey() []byte

func (*UpdateReleaseRequest) GetDisableHooks

func (m *UpdateReleaseRequest) GetDisableHooks() bool

func (*UpdateReleaseRequest) GetDryRun

func (m *UpdateReleaseRequest) GetDryRun() bool

func (*UpdateReleaseRequest) GetForce

func (m *UpdateReleaseRequest) GetForce() bool

func (*UpdateReleaseRequest) GetInsecureSkipVerify

func (m *UpdateReleaseRequest) GetInsecureSkipVerify() bool

func (*UpdateReleaseRequest) GetName

func (m *UpdateReleaseRequest) GetName() string

func (*UpdateReleaseRequest) GetPassword

func (m *UpdateReleaseRequest) GetPassword() string

func (*UpdateReleaseRequest) GetRecreate

func (m *UpdateReleaseRequest) GetRecreate() bool

func (*UpdateReleaseRequest) GetResetValues

func (m *UpdateReleaseRequest) GetResetValues() bool

func (*UpdateReleaseRequest) GetReuseValues

func (m *UpdateReleaseRequest) GetReuseValues() bool

func (*UpdateReleaseRequest) GetTimeout

func (m *UpdateReleaseRequest) GetTimeout() int64

func (*UpdateReleaseRequest) GetToken

func (m *UpdateReleaseRequest) GetToken() string

func (*UpdateReleaseRequest) GetUsername

func (m *UpdateReleaseRequest) GetUsername() string

func (*UpdateReleaseRequest) GetValues

func (m *UpdateReleaseRequest) GetValues() *hapi_chart.Config

func (*UpdateReleaseRequest) GetWait

func (m *UpdateReleaseRequest) GetWait() bool

func (*UpdateReleaseRequest) IsRequest

func (m *UpdateReleaseRequest) IsRequest()

func (*UpdateReleaseRequest) ProtoMessage

func (*UpdateReleaseRequest) ProtoMessage()

func (*UpdateReleaseRequest) Reset

func (m *UpdateReleaseRequest) Reset()

func (*UpdateReleaseRequest) String

func (m *UpdateReleaseRequest) String() string

func (*UpdateReleaseRequest) Valid

type UpdateReleaseResponse

type UpdateReleaseResponse struct {
	Release *hapi_release5.Release `protobuf:"bytes,1,opt,name=release" json:"release,omitempty"`
}

UpdateReleaseResponse is the response to an update request.

func (*UpdateReleaseResponse) Descriptor

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

func (*UpdateReleaseResponse) GetRelease

func (m *UpdateReleaseResponse) GetRelease() *hapi_release5.Release

func (*UpdateReleaseResponse) ProtoMessage

func (*UpdateReleaseResponse) ProtoMessage()

func (*UpdateReleaseResponse) Reset

func (m *UpdateReleaseResponse) Reset()

func (*UpdateReleaseResponse) String

func (m *UpdateReleaseResponse) String() string

Jump to

Keyboard shortcuts

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