Documentation
¶
Index ¶
- type Config
- type Deployer
- func (d *Deployer) Cleanup(ctx context.Context, out io.Writer, dryRun bool, ...) error
- func (d *Deployer) ConfigName() string
- func (d *Deployer) Dependencies() ([]string, error)
- func (d *Deployer) Deploy(ctx context.Context, out io.Writer, artifacts []graph.Artifact, ...) error
- func (d *Deployer) GetAccessor() access.Accessor
- func (d *Deployer) GetDebugger() debug.Debugger
- func (d *Deployer) GetLogger() log.Logger
- func (d *Deployer) GetStatusMonitor() status.Monitor
- func (d *Deployer) GetSyncer() sync.Syncer
- func (d *Deployer) HasRunnableHooks() bool
- func (d *Deployer) PostDeployHooks(ctx context.Context, out io.Writer) error
- func (d *Deployer) PreDeployHooks(ctx context.Context, out io.Writer) error
- func (d *Deployer) RegisterLocalImages([]graph.Artifact)
- func (d *Deployer) TrackBuildArtifacts(_, _ []graph.Artifact)
- type LogAggregator
- func (r *LogAggregator) AddResource(resource RunResourceName)
- func (r *LogAggregator) Mute()
- func (r *LogAggregator) RegisterArtifacts(artifacts []graph.Artifact)
- func (r *LogAggregator) SetSince(time time.Time)
- func (r *LogAggregator) Start(ctx context.Context, out io.Writer) error
- func (r *LogAggregator) Stop()
- func (r *LogAggregator) Unmute()
- type LogFormatter
- type Monitor
- type ResourceType
- type RunAccessor
- type RunResourceName
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { PortForwardResources() []*latest.PortForwardResource PortForwardOptions() config.PortForwardOptions Mode() config.RunMode Tail() bool }
Config contains config options needed for cloud run
type Deployer ¶
type Deployer struct { *latest.CloudRunDeploy Project string Region string // contains filtered or unexported fields }
Deployer deploys code to Google Cloud Run.
func NewDeployer ¶
func NewDeployer(cfg Config, labeller *label.DefaultLabeller, crDeploy *latest.CloudRunDeploy, configName string) (*Deployer, error)
NewDeployer creates a new Deployer for Cloud Run from the Skaffold deploy config.
func (*Deployer) Cleanup ¶
func (d *Deployer) Cleanup(ctx context.Context, out io.Writer, dryRun bool, byConfig manifest.ManifestListByConfig) error
Cleanup deletes the created Cloud Run services
func (*Deployer) ConfigName ¶
func (*Deployer) Dependencies ¶
Dependencies list the files that would trigger a redeploy
func (*Deployer) Deploy ¶
func (d *Deployer) Deploy(ctx context.Context, out io.Writer, artifacts []graph.Artifact, manifestsByConfig manifest.ManifestListByConfig) error
Deploy creates a Cloud Run service using the provided manifest.
func (*Deployer) GetAccessor ¶
GetAccessor gets a no-op accessor for Cloud Run.
func (*Deployer) GetDebugger ¶
GetDebugger Get the Debugger for Cloud Run. Not supported by this deployer.
func (*Deployer) GetStatusMonitor ¶
GetStatusMonitor gets the resource that will monitor deployment status.
func (*Deployer) GetSyncer ¶
GetSyncer gets the file syncer for Cloud Run. Not supported by this deployer.
func (*Deployer) HasRunnableHooks ¶
func (*Deployer) PostDeployHooks ¶
func (*Deployer) PreDeployHooks ¶
func (*Deployer) RegisterLocalImages ¶
RegisterLocalImages is not supported by this deployer.
func (*Deployer) TrackBuildArtifacts ¶
TrackBuildArtifacts is not supported by this deployer.
type LogAggregator ¶
type LogAggregator struct {
// contains filtered or unexported fields
}
func NewLoggerAggregator ¶
func NewLoggerAggregator(cfg Config, label string) *LogAggregator
func (*LogAggregator) AddResource ¶
func (r *LogAggregator) AddResource(resource RunResourceName)
func (*LogAggregator) Mute ¶
func (r *LogAggregator) Mute()
func (*LogAggregator) RegisterArtifacts ¶
func (r *LogAggregator) RegisterArtifacts(artifacts []graph.Artifact)
func (*LogAggregator) SetSince ¶
func (r *LogAggregator) SetSince(time time.Time)
func (*LogAggregator) Stop ¶
func (r *LogAggregator) Stop()
func (*LogAggregator) Unmute ¶
func (r *LogAggregator) Unmute()
type LogFormatter ¶
type LogFormatter struct {
// contains filtered or unexported fields
}
func (*LogFormatter) Name ¶
func (formatter *LogFormatter) Name() string
type Monitor ¶
type Monitor struct { Resources []RunResourceName // contains filtered or unexported fields }
func NewMonitor ¶
func NewMonitor(labeller *label.DefaultLabeller, clientOptions []option.ClientOption) *Monitor
type ResourceType ¶
type ResourceType string
type RunAccessor ¶
type RunAccessor struct {
// contains filtered or unexported fields
}
RunAccessor is an access.Accessor for Cloud Run resources It uses `gcloud run proxy“to enable port forwarding for Cloud Run. This makes it easier to call IAM-protected Cloud Run services by going through localhost. In order to set up forwarding, the services must have their ingress setting set to "all", gcloud must be installed and on the path, and the currently configured gcloud user has run.services.invoke permission on the services being proxied
func NewAccessor ¶
func NewAccessor(cfg Config, label string) *RunAccessor
NewAccessor creates a new RunAccessor to port forward Cloud Run services
func (*RunAccessor) AddResource ¶
func (r *RunAccessor) AddResource(resource RunResourceName)
AddResource tracks an additional resource to port forward
func (*RunAccessor) Stop ¶
func (r *RunAccessor) Stop()
Stop terminates port forwarding for all tracked Cloud Run resources.
type RunResourceName ¶
RunResourceName represents a Cloud Run Service
func (RunResourceName) Name ¶
func (n RunResourceName) Name() string
func (RunResourceName) String ¶
func (n RunResourceName) String() string
String returns the path representation of a Cloud Run Service.
func (RunResourceName) Type ¶
func (n RunResourceName) Type() ResourceType