Documentation ¶
Index ¶
- Variables
- func AnnotateAwsError(err error) error
- func ListPulumiStacks(ctx context.Context, s3client *s3.Client, bucketName string) ([]string, 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) GetProjectUpdate(ctx context.Context, projectName string) (*defangv1.ProjectUpdate, error)
- func (b *ByocAws) GetService(ctx context.Context, s *defangv1.GetRequest) (*defangv1.ServiceInfo, error)
- func (b *ByocAws) GetServices(ctx context.Context, req *defangv1.GetServicesRequest) (*defangv1.GetServicesResponse, 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 ErrMissingAwsRegion
- type NewByocInterface
- type QuotaClientAPI
- type StsProviderAPI
Constants ¶
This section is empty.
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 ListPulumiStacks ¶
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) GetProjectUpdate ¶
func (*ByocAws) GetService ¶
func (b *ByocAws) GetService(ctx context.Context, s *defangv1.GetRequest) (*defangv1.ServiceInfo, error)
func (*ByocAws) GetServices ¶
func (b *ByocAws) GetServices(ctx context.Context, req *defangv1.GetServicesRequest) (*defangv1.GetServicesResponse, 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 ErrMissingAwsRegion ¶
type ErrMissingAwsRegion struct {
// contains filtered or unexported fields
}
func (ErrMissingAwsRegion) Error ¶
func (e ErrMissingAwsRegion) Error() string
func (ErrMissingAwsRegion) Unwrap ¶
func (e ErrMissingAwsRegion) Unwrap() error
type NewByocInterface ¶
type NewByocInterface func(ctx context.Context, tenantName types.TenantName) *ByocAws
var NewByocProvider NewByocInterface = newByocProvider
type QuotaClientAPI ¶
type QuotaClientAPI interface {
ListServiceQuotas(ctx context.Context, params *servicequotas.ListServiceQuotasInput, optFns ...func(*servicequotas.Options)) (*servicequotas.ListServiceQuotasOutput, error)
}
type StsProviderAPI ¶
type StsProviderAPI interface { GetCallerIdentity(ctx context.Context, params *sts.GetCallerIdentityInput, optFns ...func(*sts.Options)) (*sts.GetCallerIdentityOutput, error) AssumeRole(ctx context.Context, params *sts.AssumeRoleInput, optFns ...func(*sts.Options)) (*sts.AssumeRoleOutput, error) }
var StsClient StsProviderAPI
Click to show internal directories.
Click to hide internal directories.