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 CacheInvalidate ¶ added in v0.1.5
type CacheInvalidate struct {
registry.ResourceBase
URLMapName fields.StringInputField
ProjectID fields.StringInputField
StaticApps []*StaticApp `state:"-"`
ServiceApps []*ServiceApp `state:"-"`
// contains filtered or unexported fields
}
func (*CacheInvalidate) CalculateDiff ¶ added in v0.1.5
func (o *CacheInvalidate) CalculateDiff() registry.DiffType
func (*CacheInvalidate) FieldDependencies ¶ added in v0.1.5
func (o *CacheInvalidate) FieldDependencies() []interface{}
func (*CacheInvalidate) GetName ¶ added in v0.1.5
func (o *CacheInvalidate) GetName() string
func (*CacheInvalidate) Process ¶ added in v0.1.5
func (o *CacheInvalidate) Process(ctx context.Context, meta interface{}) error
func (*CacheInvalidate) SkipState ¶ added in v0.1.5
func (o *CacheInvalidate) SkipState() bool
type LoadBalancer ¶
type LoadBalancer struct {
Addresses []*gcp.Address
ManagedSSLs []*gcp.ManagedSSL
ManagedSSLDomainMap map[string]*gcp.ManagedSSL
ServerlessNEGs []*gcp.ServerlessNEG
BackendServices []*gcp.BackendService
URLMaps []*gcp.URLMap
TargetHTTPProxies []*gcp.TargetHTTPProxy
TargetHTTPSProxies []*gcp.TargetHTTPSProxy
ForwardingRules []*gcp.ForwardingRule
// contains filtered or unexported fields
}
func NewLoadBalancer ¶
func NewLoadBalancer() *LoadBalancer
func (*LoadBalancer) Plan ¶
func (o *LoadBalancer) Plan(pctx *config.PluginContext, r *registry.Registry, static map[string]*StaticApp, service map[string]*ServiceApp, c *LoadBalancerArgs, verify bool) error
type LoadBalancerArgs ¶
type ServiceApp ¶ added in v0.1.14
type ServiceApp struct {
Image *gcp.Image
CloudRun *gcp.CloudRun
App *types.App
Opts *ServiceAppOptions
}
func NewServiceApp ¶ added in v0.1.14
func NewServiceApp(app *types.App) *ServiceApp
func (*ServiceApp) Plan ¶ added in v0.1.14
func (o *ServiceApp) Plan(pctx *config.PluginContext, r *registry.Registry, c *ServiceAppArgs, verify bool) error
type ServiceAppArgs ¶ added in v0.1.14
type ServiceAppOptions ¶ added in v0.1.14
type ServiceAppOptions struct {
Build struct {
Dockerfile string `mapstructure:"dockerfile"`
DockerContext string `mapstructure:"context"`
} `mapstructure:"build"`
LocalDockerImage string `mapstructure:"local_docker_image"`
LocalDockerHash string `mapstructure:"local_docker_hash"`
CDN struct {
Enabled bool `mapstructure:"enabled"`
} `mapstructure:"cdn"`
}
func (*ServiceAppOptions) Decode ¶ added in v0.1.14
func (o *ServiceAppOptions) Decode(in interface{}) error
type StaticApp ¶
type StaticApp struct {
Bucket *gcp.Bucket
Files []*gcp.BucketObject
Image *gcp.Image
CloudRun *gcp.CloudRun
App *types.App
Opts *StaticAppOptions
}
func NewStaticApp ¶
func (*StaticApp) Plan ¶
func (o *StaticApp) Plan(pctx *config.PluginContext, r *registry.Registry, c *StaticAppArgs, verify bool) error
type StaticAppArgs ¶
type StaticAppOptions ¶
type StaticAppOptions struct {
Build struct {
Dir string `mapstructure:"dir"`
} `mapstructure:"build"`
Routing string `mapstructure:"routing"`
CDN struct {
Enabled bool `mapstructure:"enabled"`
} `mapstructure:"cdn"`
}
func (*StaticAppOptions) Decode ¶
func (o *StaticAppOptions) Decode(in interface{}) error
func (*StaticAppOptions) IsReactRouting ¶
func (o *StaticAppOptions) IsReactRouting() bool
Click to show internal directories.
Click to hide internal directories.