Documentation
¶
Index ¶
Constants ¶
View Source
const (
BuilderInstanceKey = `CloudRunCommandBuilder`
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudRunCommand ¶
CloudRunCommand wraps the executable command.
type CloudRunCommandBuilder ¶
type CloudRunCommandBuilder interface {
Build() (CloudRunCommand, error)
AllowUnauthenticated(bool) CloudRunCommandBuilder
Image(string) CloudRunCommandBuilder
MaxInstances(int) CloudRunCommandBuilder
Memory(string) CloudRunCommandBuilder
ProjectID(string) CloudRunCommandBuilder
Region(string) CloudRunCommandBuilder
Service(string) CloudRunCommandBuilder
VPCConnector(string) CloudRunCommandBuilder
}
CloudRunCommand holds the data to build and run a `gcloud run deploy` command.
func Instance ¶
func Instance(c *gin.Context) CloudRunCommandBuilder
Instance returns the builder instance attached to the gin context.
func NewCloudRunCommandBuilder ¶
func NewCloudRunCommandBuilder() CloudRunCommandBuilder
NewCloudRunCommand returns an implementation of a `gcloud run deploy` command.
Click to show internal directories.
Click to hide internal directories.