Documentation ¶
Index ¶
- Variables
- func NewServer() *grpc.Server
- type ReleaseServer
- func (s *ReleaseServer) GetHistory(ctx context.Context, req *tpb.GetHistoryRequest) (*tpb.GetHistoryResponse, error)
- func (s *ReleaseServer) GetReleaseContent(c ctx.Context, req *services.GetReleaseContentRequest) (*services.GetReleaseContentResponse, error)
- func (s *ReleaseServer) GetReleaseStatus(c ctx.Context, req *services.GetReleaseStatusRequest) (*services.GetReleaseStatusResponse, error)
- func (s *ReleaseServer) GetVersion(c ctx.Context, req *services.GetVersionRequest) (*services.GetVersionResponse, error)
- func (s *ReleaseServer) InstallRelease(c ctx.Context, req *services.InstallReleaseRequest) (*services.InstallReleaseResponse, error)
- func (s *ReleaseServer) ListReleases(req *services.ListReleasesRequest, ...) error
- func (s *ReleaseServer) RollbackRelease(c ctx.Context, req *services.RollbackReleaseRequest) (*services.RollbackReleaseResponse, error)
- func (s *ReleaseServer) RunReleaseTest(req *services.TestReleaseRequest, ...) error
- func (s *ReleaseServer) UninstallRelease(c ctx.Context, req *services.UninstallReleaseRequest) (*services.UninstallReleaseResponse, error)
- func (s *ReleaseServer) UpdateRelease(c ctx.Context, req *services.UpdateReleaseRequest) (*services.UpdateReleaseResponse, error)
- type SortOrder
Constants ¶
This section is empty.
Variables ¶
var ListDefaultLimit int64 = 512
ListDefaultLimit is the default limit for number of items returned in a list.
var ValidName = regexp.MustCompile("^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])+$")
ValidName is a regular expression for names.
According to the Kubernetes help text, the regular expression it uses is:
(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?
We modified that. First, we added start and end delimiters. Second, we changed the final ? to + to require that the pattern match at least once. This modification prevents an empty string from matching.
Functions ¶
Types ¶
type ReleaseServer ¶
type ReleaseServer struct {
// contains filtered or unexported fields
}
ReleaseServer implements the server-side gRPC endpoint for the HAPI services.
func NewReleaseServer ¶
func NewReleaseServer(env *environment.Environment, clientset internalclientset.Interface) *ReleaseServer
NewReleaseServer creates a new release server.
func (*ReleaseServer) GetHistory ¶
func (s *ReleaseServer) GetHistory(ctx context.Context, req *tpb.GetHistoryRequest) (*tpb.GetHistoryResponse, error)
GetHistory gets the history for a given release.
func (*ReleaseServer) GetReleaseContent ¶
func (s *ReleaseServer) GetReleaseContent(c ctx.Context, req *services.GetReleaseContentRequest) (*services.GetReleaseContentResponse, error)
GetReleaseContent gets all of the stored information for the given release.
func (*ReleaseServer) GetReleaseStatus ¶
func (s *ReleaseServer) GetReleaseStatus(c ctx.Context, req *services.GetReleaseStatusRequest) (*services.GetReleaseStatusResponse, error)
GetReleaseStatus gets the status information for a named release.
func (*ReleaseServer) GetVersion ¶
func (s *ReleaseServer) GetVersion(c ctx.Context, req *services.GetVersionRequest) (*services.GetVersionResponse, error)
GetVersion sends the server version.
func (*ReleaseServer) InstallRelease ¶
func (s *ReleaseServer) InstallRelease(c ctx.Context, req *services.InstallReleaseRequest) (*services.InstallReleaseResponse, error)
InstallRelease installs a release and stores the release record.
func (*ReleaseServer) ListReleases ¶
func (s *ReleaseServer) ListReleases(req *services.ListReleasesRequest, stream services.ReleaseService_ListReleasesServer) error
ListReleases lists the releases found by the server.
func (*ReleaseServer) RollbackRelease ¶
func (s *ReleaseServer) RollbackRelease(c ctx.Context, req *services.RollbackReleaseRequest) (*services.RollbackReleaseResponse, error)
RollbackRelease rolls back to a previous version of the given release.
func (*ReleaseServer) RunReleaseTest ¶
func (s *ReleaseServer) RunReleaseTest(req *services.TestReleaseRequest, stream services.ReleaseService_RunReleaseTestServer) error
RunReleaseTest runs pre-defined tests stored as hooks on a given release
func (*ReleaseServer) UninstallRelease ¶
func (s *ReleaseServer) UninstallRelease(c ctx.Context, req *services.UninstallReleaseRequest) (*services.UninstallReleaseResponse, error)
UninstallRelease deletes all of the resources associated with this release, and marks the release DELETED.
func (*ReleaseServer) UpdateRelease ¶
func (s *ReleaseServer) UpdateRelease(c ctx.Context, req *services.UpdateReleaseRequest) (*services.UpdateReleaseResponse, error)
UpdateRelease takes an existing release and new information, and upgrades the release.
type SortOrder ¶
type SortOrder []string
SortOrder is an ordering of Kinds.
var InstallOrder SortOrder = []string{"Namespace", "Secret", "ConfigMap", "PersistentVolume", "PersistentVolumeClaim", "ServiceAccount", "Service", "Pod", "ReplicationController", "Deployment", "DaemonSet", "Ingress", "Job"}
InstallOrder is the order in which manifests should be installed (by Kind)
var UninstallOrder SortOrder = []string{"Service", "Pod", "ReplicationController", "Deployment", "DaemonSet", "ConfigMap", "Secret", "PersistentVolumeClaim", "PersistentVolume", "ServiceAccount", "Ingress", "Job", "Namespace"}
UninstallOrder is the order in which manifests should be uninstalled (by Kind)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package environment describes the operating environment for Tiller.
|
Package environment describes the operating environment for Tiller. |