Documentation ¶
Index ¶
- Constants
- Variables
- type ByRevision
- type CloudProviderOperations
- type DeployConfigFiles
- type DeployOperations
- func (ops *DeployOperations) Deploy(ctx context.Context, user *database.User, appName string, ...) (io.ReadCloser, <-chan error)
- func (ops *DeployOperations) List(user *database.User, appName string) ([]*ReplicaSetListItem, error)
- func (ops *DeployOperations) Rollback(user *database.User, appName, revision string) error
- type FakeOperations
- func (f *FakeOperations) Deploy(ctx context.Context, user *database.User, appName string, ...) (io.ReadCloser, <-chan error)
- func (f *FakeOperations) List(user *database.User, appName string) ([]*ReplicaSetListItem, error)
- func (f *FakeOperations) Rollback(user *database.User, appName, revision string) error
- type K8sOperations
- type Operations
- type Options
- type Procfile
- type ReplicaSetListItem
- type Service
- func (s *Service) List(ctx context.Context, req *dpb.ListRequest) (*dpb.ListResponse, error)
- func (s *Service) Make(stream dpb.Deploy_MakeServer) error
- func (s *Service) RegisterService(grpcServer *grpc.Server)
- func (s *Service) Rollback(ctx context.Context, req *dpb.RollbackRequest) (*dpb.Empty, error)
Constants ¶
View Source
const (
ProcfileFileName = "Procfile"
)
View Source
const (
ProcfileReleaseCmd = "release"
)
Variables ¶
View Source
var ( ErrPodRunFail = status.Errorf(codes.Unknown, "Run command returned a non zero value") ErrReleaseFail = status.Errorf(codes.Unknown, "Release command returned a non zero value") ErrInvalidTeresaYamlFile = status.Errorf(codes.InvalidArgument, "Invalid Teresa Yaml file") ErrCronScheduleNotFound = status.Errorf(codes.InvalidArgument, "Cron schedule not found in teresa yaml file") )
Functions ¶
This section is empty.
Types ¶
type ByRevision ¶ added in v0.8.0
type ByRevision []*dpb.ListResponse_Deploy
func (ByRevision) Len ¶ added in v0.8.0
func (s ByRevision) Len() int
func (ByRevision) Less ¶ added in v0.8.0
func (s ByRevision) Less(i, j int) bool
func (ByRevision) Swap ¶ added in v0.8.0
func (s ByRevision) Swap(i, j int)
type CloudProviderOperations ¶ added in v0.30.0
type DeployConfigFiles ¶
type DeployConfigFiles struct { TeresaYaml *spec.TeresaYaml Procfile Procfile NginxConf string }
type DeployOperations ¶
type DeployOperations struct {
// contains filtered or unexported fields
}
func (*DeployOperations) Deploy ¶
func (ops *DeployOperations) Deploy(ctx context.Context, user *database.User, appName string, tarBall io.ReadSeeker, description string) (io.ReadCloser, <-chan error)
func (*DeployOperations) List ¶ added in v0.8.0
func (ops *DeployOperations) List(user *database.User, appName string) ([]*ReplicaSetListItem, error)
type FakeOperations ¶ added in v0.8.0
func (*FakeOperations) Deploy ¶ added in v0.8.0
func (f *FakeOperations) Deploy(ctx context.Context, user *database.User, appName string, tarBall io.ReadSeeker, description string) (io.ReadCloser, <-chan error)
func (*FakeOperations) List ¶ added in v0.8.0
func (f *FakeOperations) List(user *database.User, appName string) ([]*ReplicaSetListItem, error)
type K8sOperations ¶
type K8sOperations interface { CreateOrUpdateDeploy(deploySpec *spec.Deploy) error CreateOrUpdateCronJob(cronJobSpec *spec.CronJob) error ExposeDeploy(namespace, name, svcType, portName string, vHosts []string, ingressClass string, w io.Writer) error ReplicaSetListByLabel(namespace, label, value string) ([]*ReplicaSetListItem, error) DeployRollbackToRevision(namespace, name, revision string) error CreateOrUpdateConfigMap(namespace, name string, data map[string]string) error DeleteConfigMap(namespace, name string) error IsNotFound(err error) bool ContainerExplicitEnvVars(namespace, deployName, containerName string) ([]*app.EnvVar, error) WatchDeploy(namespace, deployName string) error HasIngress(namespace, appName string) (bool, error) SetIngressAnnotations(namespace, ingName string, annotations map[string]string) error }
type Operations ¶
type Operations interface { Deploy(ctx context.Context, user *database.User, appName string, tarBall io.ReadSeeker, description string) (io.ReadCloser, <-chan error) List(user *database.User, appName string) ([]*ReplicaSetListItem, error) Rollback(user *database.User, appName, revision string) error }
func NewDeployOperations ¶
func NewDeployOperations(aOps app.Operations, k8s K8sOperations, s storage.Storage, execOps exec.Operations, buildOps build.Operations, cOps cloudprovider.Operations, opts *Options) Operations
func NewFakeOperations ¶ added in v0.8.0
func NewFakeOperations() Operations
type Options ¶
type Options struct { KeepAliveTimeout time.Duration `split_words:"true" default:"30s"` RevisionHistoryLimit int `split_words:"true" default:"5"` SlugBuilderImage string `split_words:"true" default:"luizalabs/slugbuilder:v3.6.0"` SlugRunnerImage string `split_words:"true" default:"luizalabs/slugrunner:v3.4.0"` SlugStoreImage string `split_words:"true" default:"luizalabs/slugstore:v1.0.0"` NginxImage string `split_words:"true" default:"luizalabs/nginx-lua:0.0.1"` BuildLimitCPU string `split_words:"true" default:"800m"` BuildLimitMemory string `split_words:"true" default:"1Gi"` DefaultServiceType string `split_words:"true" default:"LoadBalancer"` CloudSQLProxyImage string `split_words:"true" default:"gcr.io/cloudsql-docker/gce-proxy:1.11"` IngressClass string `split_words:"true" default:""` DNSConfigNdots string `envconfig:"dnsconfig_ndots" default:"2"` }
type ReplicaSetListItem ¶ added in v0.8.0
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(ops Operations, options *Options) *Service
func (*Service) List ¶ added in v0.8.0
func (s *Service) List(ctx context.Context, req *dpb.ListRequest) (*dpb.ListResponse, error)
func (*Service) RegisterService ¶
Click to show internal directories.
Click to hide internal directories.