Documentation ¶
Index ¶
- Constants
- Variables
- func AnnotateAwsError(err error) error
- func DnsSafe(fqdn string) string
- func DnsSafeLabel(fqn string) string
- func ExtractImageTag(fullQualifiedImageURI string) string
- func GetCdImage(repo string, tag string) string
- type BootstrapLister
- type ByocBaseClient
- func (b *ByocBaseClient) Debug(context.Context, *defangv1.DebugRequest) (*defangv1.DebugResponse, error)
- func (b *ByocBaseClient) GetVersions(context.Context) (*defangv1.Version, error)
- func (b *ByocBaseClient) LoadProject(ctx context.Context) (*composeTypes.Project, error)
- func (b *ByocBaseClient) LoadProjectName(ctx context.Context) (string, error)
- func (b *ByocBaseClient) ServiceDNS(name string) string
- func (b *ByocBaseClient) SetProjectName(projectName string)
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 AnnotateAwsError ¶
func DnsSafeLabel ¶
This function was copied from Fabric controller and slightly modified to work with BYOC
func ExtractImageTag ¶
func GetCdImage ¶
Types ¶
type BootstrapLister ¶
type ByocBaseClient ¶
type ByocBaseClient struct { client.GrpcClient PrivateDomain string PrivateLbIps []string // TODO: use API to get these PrivateNatIps []string // TODO: use API to get these ProjectDomain string ProjectName string PulumiStack string Quota quota.Quotas SetupDone bool ShouldDelegateSubdomain bool TenantID string // contains filtered or unexported fields }
func NewByocBaseClient ¶
func NewByocBaseClient(ctx context.Context, grpcClient client.GrpcClient, tenantID types.TenantID, bl BootstrapLister) *ByocBaseClient
func (*ByocBaseClient) Debug ¶
func (b *ByocBaseClient) Debug(context.Context, *defangv1.DebugRequest) (*defangv1.DebugResponse, error)
func (*ByocBaseClient) GetVersions ¶
func (*ByocBaseClient) LoadProject ¶
func (b *ByocBaseClient) LoadProject(ctx context.Context) (*composeTypes.Project, error)
func (*ByocBaseClient) LoadProjectName ¶
func (b *ByocBaseClient) LoadProjectName(ctx context.Context) (string, error)
func (*ByocBaseClient) ServiceDNS ¶
func (b *ByocBaseClient) ServiceDNS(name string) string
func (*ByocBaseClient) SetProjectName ¶
func (b *ByocBaseClient) SetProjectName(projectName string)
Click to show internal directories.
Click to hide internal directories.