deploy

package
v0.0.0-...-3855e86 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 61 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSubName

func GetSubName(serviceName string, topicName string) string

func NewCustomRole

func NewCustomRole(ctx *pulumi.Context, name string, actions []string, opts ...pulumi.ResourceOption) (*projects.IAMCustomRole, error)

Types

type CloudBuild

type CloudBuild struct {
	pulumi.ResourceState

	ID pulumi.StringOutput
}

type GcpIamServiceAccount

type GcpIamServiceAccount struct {
	pulumi.ResourceState

	Name           string
	ServiceAccount *serviceaccount.Account
}

func NewServiceAccount

func NewServiceAccount(ctx *pulumi.Context, name string, args *GcpIamServiceAccountArgs, opts ...pulumi.ResourceOption) (*GcpIamServiceAccount, error)

Create a new GCP IAM service account

type GcpIamServiceAccountArgs

type GcpIamServiceAccountArgs struct {
	AccountId string
}

type NitricCloudRunService

type NitricCloudRunService struct {
	Name           string
	Service        *cloudrunv2.Service
	ServiceAccount *serviceaccount.Account
	Url            pulumi.StringInput
	Invoker        *serviceaccount.Account
	EventToken     pulumi.StringOutput
}

NitricCloudRunService - A wrapper that encapsulates all important information about a cloud run service deployed by nitric

type NitricGcpPulumiProvider

type NitricGcpPulumiProvider struct {
	*deploy.CommonStackDetails

	StackId   string
	GcpConfig *common.GcpConfig

	DockerProvider    *docker.Provider
	RegistryArgs      *docker.RegistryArgs
	ContainerRegistry *artifactregistry.Repository

	DelayQueue      *cloudtasks.Queue
	AuthToken       *oauth2.Token
	BaseComputeRole *projects.IAMCustomRole

	SecretManagerClient *gcpsecretmanager.Client

	JobDefinitionBucket    *storage.Bucket
	JobDefinitions         map[string]*storage.BucketObject
	JobBatchMap            map[string]string
	Project                *Project
	ApiGateways            map[string]*apigateway.Gateway
	HttpProxies            map[string]*apigateway.Gateway
	CloudRunServices       map[string]*NitricCloudRunService
	Buckets                map[string]*storage.Bucket
	Topics                 map[string]*pubsub.Topic
	Queues                 map[string]*pubsub.Topic
	QueueSubscriptions     map[string]*pubsub.Subscription
	Secrets                map[string]*secretmanager.Secret
	DatabaseMigrationBuild map[string]*cloudrunv2.Job

	BatchServiceAccounts map[string]*GcpIamServiceAccount

	provider.NitricDefaultOrder
	// contains filtered or unexported fields
}

func NewNitricGcpProvider

func NewNitricGcpProvider() *NitricGcpPulumiProvider

func (*NitricGcpPulumiProvider) Api

func (p *NitricGcpPulumiProvider) Api(ctx *pulumi.Context, parent pulumi.Resource, name string, apiConfig *deploymentspb.Api) error

func (*NitricGcpPulumiProvider) Batch

func (p *NitricGcpPulumiProvider) Batch(ctx *pulumi.Context, parent pulumi.Resource, name string, config *deploymentspb.Batch, runtimeProvider provider.RuntimeProvider) error

func (*NitricGcpPulumiProvider) Bucket

func (p *NitricGcpPulumiProvider) Bucket(ctx *pulumi.Context, parent pulumi.Resource, name string, config *deploymentspb.Bucket) error

func (*NitricGcpPulumiProvider) Config

func (*NitricGcpPulumiProvider) GetBatchServiceAccountForJob

func (a *NitricGcpPulumiProvider) GetBatchServiceAccountForJob(jobName string) (*GcpIamServiceAccount, error)

func (*NitricGcpPulumiProvider) Http

func (p *NitricGcpPulumiProvider) Http(ctx *pulumi.Context, parent pulumi.Resource, name string, config *deploymentspb.Http) error

func (*NitricGcpPulumiProvider) Init

func (a *NitricGcpPulumiProvider) Init(attributes map[string]interface{}) error

func (*NitricGcpPulumiProvider) KeyValueStore

func (p *NitricGcpPulumiProvider) KeyValueStore(ctx *pulumi.Context, parent pulumi.Resource, name string, config *deploymentspb.KeyValueStore) error

func (*NitricGcpPulumiProvider) Policy

func (p *NitricGcpPulumiProvider) Policy(ctx *pulumi.Context, parent pulumi.Resource, name string, config *deploymentspb.Policy) error

func (*NitricGcpPulumiProvider) Post

func (*NitricGcpPulumiProvider) Pre

func (*NitricGcpPulumiProvider) Queue

func (p *NitricGcpPulumiProvider) Queue(ctx *pulumi.Context, parent pulumi.Resource, name string, config *deploymentspb.Queue) error

func (*NitricGcpPulumiProvider) Result

func (*NitricGcpPulumiProvider) Schedule

func (p *NitricGcpPulumiProvider) Schedule(ctx *pulumi.Context, parent pulumi.Resource, name string, config *deploymentspb.Schedule) error

func (*NitricGcpPulumiProvider) Secret

func (p *NitricGcpPulumiProvider) Secret(ctx *pulumi.Context, parent pulumi.Resource, name string, config *deploymentspb.Secret) error

func (*NitricGcpPulumiProvider) Service

func (*NitricGcpPulumiProvider) SqlDatabase

func (a *NitricGcpPulumiProvider) SqlDatabase(ctx *pulumi.Context, parent pulumi.Resource, name string, config *deploymentspb.SqlDatabase) error

func (*NitricGcpPulumiProvider) Topic

func (p *NitricGcpPulumiProvider) Topic(ctx *pulumi.Context, parent pulumi.Resource, name string, config *deploymentspb.Topic) error

func (*NitricGcpPulumiProvider) Websocket

func (a *NitricGcpPulumiProvider) Websocket(ctx *pulumi.Context, parent pulumi.Resource, name string, config *deploymentspb.Websocket) error

func (*NitricGcpPulumiProvider) WithDefaultResourceOptions

func (a *NitricGcpPulumiProvider) WithDefaultResourceOptions(opts ...pulumi.ResourceOption) []pulumi.ResourceOption

type Policy

type Policy struct {
	pulumi.ResourceState

	Name         string
	RolePolicies []*projects.IAMMember
}

type Project

type Project struct {
	pulumi.ResourceState

	Name     string
	Services []*projects.Service
}

func NewProject

func NewProject(ctx *pulumi.Context, name string, args *ProjectArgs, opts ...pulumi.ResourceOption) (*Project, error)

Creates a new GCP Project

type ProjectArgs

type ProjectArgs struct {
	ProjectId     string
	ProjectNumber string
}

type SecretManagerSecret

type SecretManagerSecret struct {
	pulumi.ResourceState

	Name   string
	Secret *secretmanager.Secret
}

Jump to

Keyboard shortcuts

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