Documentation ¶
Index ¶
- Constants
- Variables
- func DebugPulumi(ctx context.Context, env []string, cmd ...string) error
- func DnsSafe(fqdn string) string
- func DnsSafeLabel(fqn string) string
- func ExtractImageTag(fullQualifiedImageURI string) string
- func GetPrivateDomain(projectName string) string
- func MakeEnv(key string, value any) string
- type ByocBaseClient
- func (b *ByocBaseClient) Debug(context.Context, *defangv1.DebugRequest) (*defangv1.DebugResponse, error)
- func (b *ByocBaseClient) GetProjectDomain(projectName, zone string) string
- func (b *ByocBaseClient) GetProjectLastCDImage(ctx context.Context, projectName string) (string, error)
- func (b *ByocBaseClient) GetVersions(context.Context) (*defangv1.Version, error)
- func (b *ByocBaseClient) ParsePulumiStackObject(ctx context.Context, obj Obj, bucket, prefix string, ...) (string, error)
- func (b *ByocBaseClient) RemoteProjectName(ctx context.Context) (string, error)
- func (b *ByocBaseClient) ServiceDNS(name string) string
- func (b *ByocBaseClient) SetCDImage(image string)
- type Obj
- type ProjectBackend
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 DnsSafeLabel ¶
This function was copied from Fabric controller and slightly modified to work with BYOC
func ExtractImageTag ¶
func GetPrivateDomain ¶
Types ¶
type ByocBaseClient ¶
type ByocBaseClient struct { PulumiStack string SetupDone bool ShouldDelegateSubdomain bool TenantName string CDImage string // contains filtered or unexported fields }
func NewByocBaseClient ¶
func NewByocBaseClient(ctx context.Context, tenantName types.TenantName, backend ProjectBackend) *ByocBaseClient
func (*ByocBaseClient) Debug ¶
func (b *ByocBaseClient) Debug(context.Context, *defangv1.DebugRequest) (*defangv1.DebugResponse, error)
func (*ByocBaseClient) GetProjectDomain ¶
func (b *ByocBaseClient) GetProjectDomain(projectName, zone string) string
func (*ByocBaseClient) GetProjectLastCDImage ¶
func (*ByocBaseClient) GetVersions ¶
func (*ByocBaseClient) ParsePulumiStackObject ¶
func (*ByocBaseClient) RemoteProjectName ¶
func (b *ByocBaseClient) RemoteProjectName(ctx context.Context) (string, error)
func (*ByocBaseClient) ServiceDNS ¶
func (b *ByocBaseClient) ServiceDNS(name string) string
func (*ByocBaseClient) SetCDImage ¶
func (b *ByocBaseClient) SetCDImage(image string)
Click to show internal directories.
Click to hide internal directories.