appPlatform

package
v0.0.0-...-6fdcf42 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CdImageBase = "defangio/cd"
	CdName      = "defang-cd"
)

Variables

View Source
var IMG_RE = regexp.MustCompile(`^((?:(.+?)\/)?(.+?)(?:@(sha256:[0-9a-f]{64})|:(\w[\w.-]{0,127}))?)$`) // FIXME: avoid unbounded "+" in the regex

Copied from defang-mvp/pulumi/shared/utils.ts

Functions

func NewClient

func NewClient(ctx context.Context) (*godo.Client, error)

Types

type DoApp

type DoApp struct {
	Region      do.Region
	ProjectName string
	BucketName  string
	AppID       string
}

func New

func New(region do.Region) *DoApp

func (DoApp) CreateS3Client

func (d DoApp) CreateS3Client() (*s3.Client, error)

func (DoApp) CreateS3DownloadUrl

func (d DoApp) CreateS3DownloadUrl(ctx context.Context, name string) (string, error)

func (DoApp) CreateUploadURL

func (d DoApp) CreateUploadURL(ctx context.Context, name string) (string, error)

func (*DoApp) GetBucketName

func (d *DoApp) GetBucketName(ctx context.Context, s3Client *s3.Client) (string, error)

func (DoApp) Run

func (d DoApp) Run(ctx context.Context, env []*godo.AppVariableDefinition, cmd ...string) (*godo.App, error)

func (*DoApp) SetUp

func (d *DoApp) SetUp(ctx context.Context) error

type Image

type Image struct {
	Registry string
	Repo     string
	Tag      string
	Digest   string
}

func ParseImage

func ParseImage(image string) (*Image, error)

Jump to

Keyboard shortcuts

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