Documentation ¶
Index ¶
- Constants
- Variables
- func AnnotateAwsError(err error) error
- func NewServiceQuotasClient(ctx context.Context, cfg aws.Config) *servicequotas.Client
- func ValidateGPUResources(ctx context.Context, project *composeTypes.Project) error
- type AWSAccountInfo
- type ByocAws
- func (b *ByocAws) AccountInfo(ctx context.Context) (client.AccountInfo, error)
- func (b *ByocAws) AddEcsEventHandler(handler ECSEventHandler)
- func (b *ByocAws) BootstrapCommand(ctx context.Context, req client.BootstrapCommandRequest) (string, error)
- func (b *ByocAws) BootstrapList(ctx context.Context) ([]string, error)
- func (b *ByocAws) CreateUploadURL(ctx context.Context, req *defangv1.UploadURLRequest) (*defangv1.UploadURLResponse, error)
- func (b *ByocAws) Delete(ctx context.Context, req *defangv1.DeleteRequest) (*defangv1.DeleteResponse, error)
- func (b *ByocAws) DeleteConfig(ctx context.Context, secrets *defangv1.Secrets) error
- func (b *ByocAws) Deploy(ctx context.Context, req *defangv1.DeployRequest) (*defangv1.DeployResponse, error)
- func (b *ByocAws) Destroy(ctx context.Context, req *defangv1.DestroyRequest) (string, error)
- func (b *ByocAws) Follow(ctx context.Context, req *defangv1.TailRequest) (client.ServerStream[defangv1.TailResponse], error)
- func (b *ByocAws) GetService(ctx context.Context, s *defangv1.ServiceID) (*defangv1.ServiceInfo, error)
- func (b *ByocAws) GetServices(ctx context.Context, req *defangv1.GetServicesRequest) (*defangv1.ListServicesResponse, error)
- func (b *ByocAws) HandleECSEvent(evt ecs.Event)
- func (b *ByocAws) ListConfig(ctx context.Context, req *defangv1.ListConfigsRequest) (*defangv1.Secrets, error)
- func (b *ByocAws) PrepareDomainDelegation(ctx context.Context, req client.PrepareDomainDelegationRequest) (*client.PrepareDomainDelegationResponse, error)
- func (b *ByocAws) Preview(ctx context.Context, req *defangv1.DeployRequest) (*defangv1.DeployResponse, error)
- func (b *ByocAws) PutConfig(ctx context.Context, secret *defangv1.PutConfigRequest) error
- func (b *ByocAws) Query(ctx context.Context, req *defangv1.DebugRequest) error
- func (b *ByocAws) Subscribe(ctx context.Context, req *defangv1.SubscribeRequest) (client.ServerStream[defangv1.SubscribeResponse], error)
- func (b *ByocAws) TearDown(ctx context.Context) error
- type ECSEventHandler
- type ErrMissingAwsCreds
- type QuotaClientAPI
Constants ¶
View Source
const (
CdImageRepo = "public.ecr.aws/defang-io/cd"
)
Variables ¶
View Source
var ErrAWSNoConnection = errors.New("no connect to AWS service quotas")
View Source
var ErrGPUQuotaZero = errors.New("no GPUs enabled. To resolve see https://docs.defang.io/docs/tutorials/deploy-with-gpu")
View Source
var ErrNoQuotasReceived = errors.New("no service quotas received")
View Source
var (
PulumiVersion = pkg.Getenv("DEFANG_PULUMI_VERSION", "3.136.1")
)
Functions ¶
func AnnotateAwsError ¶
func NewServiceQuotasClient ¶
func ValidateGPUResources ¶
func ValidateGPUResources(ctx context.Context, project *composeTypes.Project) error
Types ¶
type AWSAccountInfo ¶
type AWSAccountInfo struct {
// contains filtered or unexported fields
}
func (AWSAccountInfo) AccountID ¶
func (i AWSAccountInfo) AccountID() string
func (AWSAccountInfo) Details ¶
func (i AWSAccountInfo) Details() string
func (AWSAccountInfo) Provider ¶
func (i AWSAccountInfo) Provider() client.ProviderID
func (AWSAccountInfo) Region ¶
func (i AWSAccountInfo) Region() string
type ByocAws ¶
type ByocAws struct { *byoc.ByocBaseClient // contains filtered or unexported fields }
func (*ByocAws) AccountInfo ¶
func (*ByocAws) AddEcsEventHandler ¶
func (b *ByocAws) AddEcsEventHandler(handler ECSEventHandler)
func (*ByocAws) BootstrapCommand ¶
func (*ByocAws) BootstrapList ¶
func (*ByocAws) CreateUploadURL ¶
func (b *ByocAws) CreateUploadURL(ctx context.Context, req *defangv1.UploadURLRequest) (*defangv1.UploadURLResponse, error)
func (*ByocAws) Delete ¶
func (b *ByocAws) Delete(ctx context.Context, req *defangv1.DeleteRequest) (*defangv1.DeleteResponse, error)
func (*ByocAws) DeleteConfig ¶
func (*ByocAws) Deploy ¶
func (b *ByocAws) Deploy(ctx context.Context, req *defangv1.DeployRequest) (*defangv1.DeployResponse, error)
func (*ByocAws) Follow ¶
func (b *ByocAws) Follow(ctx context.Context, req *defangv1.TailRequest) (client.ServerStream[defangv1.TailResponse], error)
func (*ByocAws) GetService ¶
func (*ByocAws) GetServices ¶
func (b *ByocAws) GetServices(ctx context.Context, req *defangv1.GetServicesRequest) (*defangv1.ListServicesResponse, error)
func (*ByocAws) HandleECSEvent ¶
func (*ByocAws) ListConfig ¶
func (*ByocAws) PrepareDomainDelegation ¶
func (b *ByocAws) PrepareDomainDelegation(ctx context.Context, req client.PrepareDomainDelegationRequest) (*client.PrepareDomainDelegationResponse, error)
func (*ByocAws) Preview ¶
func (b *ByocAws) Preview(ctx context.Context, req *defangv1.DeployRequest) (*defangv1.DeployResponse, error)
func (*ByocAws) Subscribe ¶
func (b *ByocAws) Subscribe(ctx context.Context, req *defangv1.SubscribeRequest) (client.ServerStream[defangv1.SubscribeResponse], error)
type ECSEventHandler ¶
type ErrMissingAwsCreds ¶
type ErrMissingAwsCreds struct {
// contains filtered or unexported fields
}
func (ErrMissingAwsCreds) Error ¶
func (e ErrMissingAwsCreds) Error() string
func (ErrMissingAwsCreds) Unwrap ¶
func (e ErrMissingAwsCreds) Unwrap() error
type QuotaClientAPI ¶
type QuotaClientAPI interface {
ListServiceQuotas(ctx context.Context, params *servicequotas.ListServiceQuotasInput, optFns ...func(*servicequotas.Options)) (*servicequotas.ListServiceQuotasOutput, error)
}
Click to show internal directories.
Click to hide internal directories.