byoc

package
v0.0.0-...-5999d53 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CdDefaultImageTag = "public-beta" // for when a project has no cd version, this would be a old deployment
	CdLatestImageTag  = "public-beta" // Update this to the latest CD service major version number whenever cd major is changed
	CdTaskPrefix      = "defang-cd"   // WARNING: renaming this practically deletes the Pulumi state
)

Variables

View Source
var (
	DefangPrefix = pkg.Getenv("DEFANG_PREFIX", "Defang") // prefix for all resources created by Defang
)

Functions

func DebugPulumi

func DebugPulumi(ctx context.Context, env []string, cmd ...string) error

func DnsSafe

func DnsSafe(fqdn string) string

func DnsSafeLabel

func DnsSafeLabel(fqn string) string

This function was copied from Fabric controller and slightly modified to work with BYOC

func ExtractImageTag

func ExtractImageTag(fullQualifiedImageURI string) string

func GetCdImage

func GetCdImage(repo string, tag string) string

func GetPrivateDomain

func GetPrivateDomain(projectName string) string

func MakeEnv

func MakeEnv(key string, value any) string

Types

type BootstrapLister

type BootstrapLister interface {
	BootstrapList(context.Context) ([]string, error)
}

type ByocBaseClient

type ByocBaseClient struct {
	PulumiStack             string
	Quota                   quota.Quotas
	SetupDone               bool
	ShouldDelegateSubdomain bool
	TenantID                string
	// contains filtered or unexported fields
}

func NewByocBaseClient

func NewByocBaseClient(ctx context.Context, tenantID types.TenantID, bl BootstrapLister) *ByocBaseClient

func (*ByocBaseClient) Debug

func (*ByocBaseClient) GetProjectDomain

func (b *ByocBaseClient) GetProjectDomain(projectName, zone string) string

func (*ByocBaseClient) GetVersions

func (b *ByocBaseClient) GetVersions(context.Context) (*defangv1.Version, error)

func (*ByocBaseClient) RemoteProjectName

func (b *ByocBaseClient) RemoteProjectName(ctx context.Context) (string, error)

func (*ByocBaseClient) ServiceDNS

func (b *ByocBaseClient) ServiceDNS(name string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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