deploy

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIName          = "api"
	CommonName       = "common"
	LoadBalancerName = "load balancer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadBalancer

type LoadBalancer struct {
	Addresses          []*gcp.Address
	ManagedSSLs        []*gcp.ManagedSSL
	ServerlessNEGs     []*gcp.ServerlessNEG
	BackendServices    []*gcp.BackendService
	URLMaps            []*gcp.URLMap
	TargetHTTPProxies  []*gcp.TargetHTTPProxy
	TargetHTTPSProxies []*gcp.TargetHTTPSProxy
	ForwardingRules    []*gcp.ForwardingRule
}

func NewLoadBalancer

func NewLoadBalancer() *LoadBalancer

func (*LoadBalancer) Plan

func (o *LoadBalancer) Plan(pctx *config.PluginContext, r *registry.Registry, static []*StaticApp, c *LoadBalancerArgs, verify bool) error

type LoadBalancerArgs

type LoadBalancerArgs struct {
	Name      string
	ProjectID string
	Region    string
}

type StaticApp

type StaticApp struct {
	Bucket   *gcp.Bucket
	Files    []*gcp.BucketObject
	Image    *gcp.Image
	CloudRun *gcp.CloudRun

	App *types.App
}

func NewStaticApp

func NewStaticApp(app *types.App) *StaticApp

func (*StaticApp) Plan

func (o *StaticApp) Plan(pctx *config.PluginContext, r *registry.Registry, app *types.App, c *StaticAppArgs, verify bool) error

type StaticAppArgs

type StaticAppArgs struct {
	ProjectID string
	Region    string
	Path      string
}

type StaticAppOptions

type StaticAppOptions struct {
	Build struct {
		Dir string `mapstructure:"dir"`
	} `mapstructure:"build"`
	Routing string `mapstructure:"routing"`
}

func (*StaticAppOptions) Decode

func (o *StaticAppOptions) Decode(in interface{}) error

func (*StaticAppOptions) IsReactRouting

func (o *StaticAppOptions) IsReactRouting() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL