Documentation
¶
Index ¶
- Constants
- Variables
- func DebugPulumi(ctx context.Context, env []string, cmd ...string) error
- func GetPrivateDomain(projectName string) string
- func GetPulumiBackend(stateUrl string) (string, string, error)
- func MakeEnv(key string, value any) string
- func ParsePulumiStackObject(ctx context.Context, obj Obj, bucket, prefix string, ...) (string, error)
- type ByocBaseClient
- func (b *ByocBaseClient) Debug(context.Context, *defangv1.DebugRequest) (*defangv1.DebugResponse, error)
- func (b *ByocBaseClient) GetEndpoint(fqn string, projectName, delegateDomain string, ...) string
- func (b ByocBaseClient) GetPrivateFqdn(projectName string, fqn string) string
- func (b *ByocBaseClient) GetProjectDomain(projectName, zone string) string
- func (b *ByocBaseClient) GetProjectLastCDImage(ctx context.Context, projectName string) (string, error)
- func (b *ByocBaseClient) GetPublicFqdn(projectName, delegateDomain, fqn string) string
- func (b *ByocBaseClient) GetServiceInfos(ctx context.Context, projectName, delegateDomain, etag string, ...) ([]*defangv1.ServiceInfo, error)
- func (b *ByocBaseClient) RemoteProjectName(ctx context.Context) (string, error)
- func (b *ByocBaseClient) ServiceDNS(name string) string
- func (b *ByocBaseClient) SetCanIUseConfig(quotas *defangv1.CanIUseResponse)
- func (b *ByocBaseClient) StackDir(projectName, name string) string
- type CanIUseConfig
- type ErrMultipleProjects
- type ErrNoPermission
- type HasStackSupport
- type Node
- type Obj
- type ProjectBackend
- type ServiceInfoUpdater
Constants ¶
View Source
const (
CdTaskPrefix = "defang-cd" // WARNING: renaming this practically deletes the Pulumi state
)
Variables ¶
Functions ¶
func GetPrivateDomain ¶
Types ¶
type ByocBaseClient ¶
type ByocBaseClient struct { client.RetryDelayer PulumiStack string SetupDone bool ShouldDelegateSubdomain bool TenantName string CanIUseConfig // 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) GetEndpoint ¶
func (b *ByocBaseClient) GetEndpoint(fqn string, projectName, delegateDomain string, port *composeTypes.ServicePortConfig) string
This function was copied from Fabric controller and slightly modified to work with BYOC
func (ByocBaseClient) GetPrivateFqdn ¶
func (b ByocBaseClient) GetPrivateFqdn(projectName string, fqn string) string
This function was copied from Fabric controller and slightly modified to work with BYOC
func (*ByocBaseClient) GetProjectDomain ¶
func (b *ByocBaseClient) GetProjectDomain(projectName, zone string) string
func (*ByocBaseClient) GetProjectLastCDImage ¶
func (*ByocBaseClient) GetPublicFqdn ¶
func (b *ByocBaseClient) GetPublicFqdn(projectName, delegateDomain, fqn string) string
This function was copied from Fabric controller and slightly modified to work with BYOC
func (*ByocBaseClient) GetServiceInfos ¶
func (b *ByocBaseClient) GetServiceInfos(ctx context.Context, projectName, delegateDomain, etag string, services map[string]composeTypes.ServiceConfig) ([]*defangv1.ServiceInfo, error)
func (*ByocBaseClient) RemoteProjectName ¶
func (b *ByocBaseClient) RemoteProjectName(ctx context.Context) (string, error)
func (*ByocBaseClient) ServiceDNS ¶
func (b *ByocBaseClient) ServiceDNS(name string) string
func (*ByocBaseClient) SetCanIUseConfig ¶
func (b *ByocBaseClient) SetCanIUseConfig(quotas *defangv1.CanIUseResponse)
func (*ByocBaseClient) StackDir ¶
func (b *ByocBaseClient) StackDir(projectName, name string) string
stackDir returns a stack-qualified path, like the Pulumi TS function `stackDir`
type CanIUseConfig ¶
type ErrMultipleProjects ¶
type ErrMultipleProjects struct {
ProjectNames []string
}
func (ErrMultipleProjects) Error ¶
func (mp ErrMultipleProjects) Error() string
type ErrNoPermission ¶
type ErrNoPermission string
func (ErrNoPermission) Error ¶
func (e ErrNoPermission) Error() string
type HasStackSupport ¶
type HasStackSupport interface {
GetStackName() string
}
type Node ¶
type Node struct { Name string Deps []string ServiceInfo *defangv1.ServiceInfo Visited bool }
Simple DFS topological sort to make sure the dependencies are created first
type ProjectBackend ¶
type ServiceInfoUpdater ¶
type ServiceInfoUpdater interface {
UpdateServiceInfo(ctx context.Context, serviceInfo *defangv1.ServiceInfo, projectName, delegateDomain string, service composeTypes.ServiceConfig) error
}
Click to show internal directories.
Click to hide internal directories.