Documentation ¶
Index ¶
- func BuildImage(ctx context.Context, project, region, repo, service, configID string) (string, error)
- func BuildProtoDescriptor(ctx context.Context, inputDir, outputFile string) error
- func Deploy(ctx context.Context, opts DeployOptions) (err error)
- func DeployConfig(ctx context.Context, project string, configFiles ...string) (string, error)
- func GetServiceConfig(ctx context.Context, service, configID string) (string, error)
- func Validate(ctx context.Context, opts ValidateOptions) (err error)
- func ValidateConfig(ctx context.Context, project string, configFiles ...string) error
- type DeployOptions
- type ValidateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImage ¶ added in v0.138.0
func BuildImage(ctx context.Context, project, region, repo, service, configID string) (string, error)
BuildImage builds a container image with a baked-in Cloud Endpoints service configuration.
func BuildProtoDescriptor ¶ added in v0.138.0
BuildProtoDescriptor builds a Cloud Endpoints-compatible proto descriptor from the provided Buf module input dir.
func DeployConfig ¶ added in v0.138.0
DeployConfig deploys the provided config files to Cloud Endpoints and returns the resulting config revision.
func GetServiceConfig ¶ added in v0.138.0
GetServiceConfig fetches a full service config from Cloud Endpoints.
Types ¶
type DeployOptions ¶ added in v0.145.0
type DeployOptions struct { // ProjectID is the ID of the GCP project to deploy to. ProjectID string // Region is the GCP region to deploy to. Region string // ArtifactRegistry is the name of the artifact registry to push the deployed image to. ArtifactRegistry string // BufModulePath is the path to the Buf module to deploy. BufModulePath string // EndpointsConfigPath is the path to the endpoints config to deploy. EndpointsConfigPath string // ServiceConfigPath is the path to the Knative YAML service config to deploy. // // The service config will be executed as a Go template, where the following variables are available: // // - Image: The container image to deploy ServiceConfigPath string }
type ValidateOptions ¶ added in v0.145.0
Click to show internal directories.
Click to hide internal directories.