Documentation
¶
Index ¶
- Variables
- func AnnotateAwsError(err error) error
- func ListPulumiStacks(ctx context.Context, s3client S3Client, bucketName string) (iter.Seq[state.PulumiState], error)
- func NewServiceQuotasClient(cfg aws.Config) *servicequotas.Client
- type ByocAws
- func (b *ByocAws) AccountInfo(ctx context.Context) (*client.AccountInfo, error)
- func (b *ByocAws) AddCodebuildEventHandler(handler CodebuildEventHandler)
- func (b *ByocAws) AddEcsEventHandler(handler ECSEventHandler)
- func (b *ByocAws) CdCommand(ctx context.Context, req client.CdCommandRequest) (string, error)
- func (b *ByocAws) CdList(ctx context.Context, allRegions bool) (iter.Seq[state.Info], error)
- func (b *ByocAws) CreateUploadURL(ctx context.Context, req *defangv1.UploadURLRequest) (*defangv1.UploadURLResponse, error)
- func (b *ByocAws) DeleteConfig(ctx context.Context, secrets *defangv1.Secrets) error
- func (b *ByocAws) Deploy(ctx context.Context, req *client.DeployRequest) (*defangv1.DeployResponse, error)
- func (b *ByocAws) FixupServices(ctx context.Context, project *composeTypes.Project) error
- func (b *ByocAws) GetDeploymentStatus(ctx context.Context) error
- func (b *ByocAws) GetPrivateDomain(projectName string) string
- 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) HandleCodebuildEvent(evt codebuild.Event)
- 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 *client.DeployRequest) (*defangv1.DeployResponse, error)
- func (b *ByocAws) PrintCloudFormationTemplate() ([]byte, error)
- func (b *ByocAws) PutConfig(ctx context.Context, secret *defangv1.PutConfigRequest) error
- func (b *ByocAws) QueryLogs(ctx context.Context, req *defangv1.TailRequest) (client.ServerStream[defangv1.TailResponse], error)
- func (b *ByocAws) SetUpCD(ctx context.Context) error
- func (b *ByocAws) Subscribe(ctx context.Context, req *defangv1.SubscribeRequest) (client.ServerStream[defangv1.SubscribeResponse], error)
- func (b *ByocAws) TearDownCD(ctx context.Context) error
- func (b *ByocAws) UpdateServiceInfo(ctx context.Context, si *defangv1.ServiceInfo, ...) error
- type CodebuildEventHandler
- type Config
- type ECSEventHandler
- type ErrMissingAwsCreds
- type ErrMissingAwsRegion
- type QuotaClientAPI
- type S3Client
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://s.defang.io/deploy-gpu")
View Source
var ErrNoQuotasReceived = errors.New("no service quotas received")
Functions ¶
func AnnotateAwsError ¶
func ListPulumiStacks ¶
func NewServiceQuotasClient ¶
func NewServiceQuotasClient(cfg aws.Config) *servicequotas.Client
Types ¶
type ByocAws ¶
type ByocAws struct {
*byoc.ByocBaseClient
// contains filtered or unexported fields
}
func NewByocProvider ¶
func (*ByocAws) AccountInfo ¶
func (*ByocAws) AddCodebuildEventHandler ¶
func (b *ByocAws) AddCodebuildEventHandler(handler CodebuildEventHandler)
func (*ByocAws) AddEcsEventHandler ¶
func (b *ByocAws) AddEcsEventHandler(handler ECSEventHandler)
func (*ByocAws) CreateUploadURL ¶
func (b *ByocAws) CreateUploadURL(ctx context.Context, req *defangv1.UploadURLRequest) (*defangv1.UploadURLResponse, error)
func (*ByocAws) DeleteConfig ¶
func (*ByocAws) Deploy ¶
func (b *ByocAws) Deploy(ctx context.Context, req *client.DeployRequest) (*defangv1.DeployResponse, error)
func (*ByocAws) FixupServices ¶
func (*ByocAws) GetDeploymentStatus ¶
func (*ByocAws) GetPrivateDomain ¶
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) HandleCodebuildEvent ¶
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 *client.DeployRequest) (*defangv1.DeployResponse, error)
func (*ByocAws) PrintCloudFormationTemplate ¶
func (*ByocAws) QueryLogs ¶
func (b *ByocAws) QueryLogs(ctx context.Context, req *defangv1.TailRequest) (client.ServerStream[defangv1.TailResponse], error)
func (*ByocAws) Subscribe ¶
func (b *ByocAws) Subscribe(ctx context.Context, req *defangv1.SubscribeRequest) (client.ServerStream[defangv1.SubscribeResponse], error)
func (*ByocAws) UpdateServiceInfo ¶
func (b *ByocAws) UpdateServiceInfo(ctx context.Context, si *defangv1.ServiceInfo, projectName, delegateDomain string, service composeTypes.ServiceConfig) error
type CodebuildEventHandler ¶
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 QuotaClientAPI ¶
type QuotaClientAPI interface {
ListServiceQuotas(ctx context.Context, params *servicequotas.ListServiceQuotasInput, optFns ...func(*servicequotas.Options)) (*servicequotas.ListServiceQuotasOutput, error)
}
type S3Client ¶
type S3Client interface {
GetBucketLocation(ctx context.Context, params *s3.GetBucketLocationInput, optFns ...func(*s3.Options)) (*s3.GetBucketLocationOutput, error)
GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
ListBuckets(ctx context.Context, params *s3.ListBucketsInput, optFns ...func(*s3.Options)) (*s3.ListBucketsOutput, error)
ListObjectsV2(ctx context.Context, params *s3.ListObjectsV2Input, optFns ...func(*s3.Options)) (*s3.ListObjectsV2Output, error)
}
Click to show internal directories.
Click to hide internal directories.