Documentation
¶
Index ¶
- Constants
- Variables
- func GetGoogleAPIErrorDetail(detail interface{}, path string) string
- func GetValueInStruct(s *structpb.Struct, path string) string
- type ByocGcp
- func (b *ByocGcp) AccountInfo(ctx context.Context) (client.AccountInfo, error)
- func (b *ByocGcp) BootstrapCommand(ctx context.Context, req client.BootstrapCommandRequest) (types.ETag, error)
- func (b *ByocGcp) BootstrapList(ctx context.Context) ([]string, error)
- func (b *ByocGcp) CreateUploadURL(ctx context.Context, req *defangv1.UploadURLRequest) (*defangv1.UploadURLResponse, error)
- func (b *ByocGcp) Delete(ctx context.Context, req *defangv1.DeleteRequest) (*defangv1.DeleteResponse, error)
- func (b *ByocGcp) DeleteConfig(ctx context.Context, req *defangv1.Secrets) error
- func (b *ByocGcp) Deploy(ctx context.Context, req *defangv1.DeployRequest) (*defangv1.DeployResponse, error)
- func (b *ByocGcp) Destroy(ctx context.Context, req *defangv1.DestroyRequest) (types.ETag, error)
- func (b *ByocGcp) Follow(ctx context.Context, req *defangv1.TailRequest) (client.ServerStream[defangv1.TailResponse], error)
- func (b *ByocGcp) GetProjectUpdate(ctx context.Context, projectName string) (*defangv1.ProjectUpdate, error)
- func (b *ByocGcp) GetService(ctx context.Context, req *defangv1.GetRequest) (*defangv1.ServiceInfo, error)
- func (b *ByocGcp) GetServices(ctx context.Context, req *defangv1.GetServicesRequest) (*defangv1.GetServicesResponse, error)
- func (b *ByocGcp) ListConfig(ctx context.Context, req *defangv1.ListConfigsRequest) (*defangv1.Secrets, error)
- func (b *ByocGcp) PrepareDomainDelegation(ctx context.Context, req client.PrepareDomainDelegationRequest) (*client.PrepareDomainDelegationResponse, error)
- func (b *ByocGcp) Preview(ctx context.Context, req *defangv1.DeployRequest) (*defangv1.DeployResponse, error)
- func (b *ByocGcp) PutConfig(ctx context.Context, req *defangv1.PutConfigRequest) error
- func (b *ByocGcp) Query(ctx context.Context, req *defangv1.DebugRequest) error
- func (b *ByocGcp) Subscribe(ctx context.Context, req *defangv1.SubscribeRequest) (client.ServerStream[defangv1.SubscribeResponse], error)
- func (b *ByocGcp) TearDown(ctx context.Context) error
- type GcpAccountInfo
- type LogParser
- type LogStream
- type ServerStream
- type SubscribeStream
Constants ¶
View Source
const ( DefangCDProjectName = "defang-cd" UploadPrefix = "uploads/" )
Variables ¶
View Source
var ( DefaultCDTags = map[string]string{"created-by": "defang"} PulumiVersion = pkg.Getenv("DEFANG_PULUMI_VERSION", "3.136.1") )
Functions ¶
func GetGoogleAPIErrorDetail ¶
Used to get nested values from the detail of a googleapi.Error
Types ¶
type ByocGcp ¶
type ByocGcp struct { *byoc.ByocBaseClient // contains filtered or unexported fields }
func NewByocProvider ¶
func NewByocProvider(ctx context.Context, tenantName types.TenantName) *ByocGcp
func (*ByocGcp) AccountInfo ¶
func (*ByocGcp) BootstrapCommand ¶
func (*ByocGcp) BootstrapList ¶
func (*ByocGcp) CreateUploadURL ¶
func (b *ByocGcp) CreateUploadURL(ctx context.Context, req *defangv1.UploadURLRequest) (*defangv1.UploadURLResponse, error)
func (*ByocGcp) Delete ¶
func (b *ByocGcp) Delete(ctx context.Context, req *defangv1.DeleteRequest) (*defangv1.DeleteResponse, error)
func (*ByocGcp) DeleteConfig ¶
func (*ByocGcp) Deploy ¶
func (b *ByocGcp) Deploy(ctx context.Context, req *defangv1.DeployRequest) (*defangv1.DeployResponse, error)
func (*ByocGcp) Follow ¶
func (b *ByocGcp) Follow(ctx context.Context, req *defangv1.TailRequest) (client.ServerStream[defangv1.TailResponse], error)
func (*ByocGcp) GetProjectUpdate ¶
func (*ByocGcp) GetService ¶
func (b *ByocGcp) GetService(ctx context.Context, req *defangv1.GetRequest) (*defangv1.ServiceInfo, error)
func (*ByocGcp) GetServices ¶
func (b *ByocGcp) GetServices(ctx context.Context, req *defangv1.GetServicesRequest) (*defangv1.GetServicesResponse, error)
func (*ByocGcp) ListConfig ¶
func (*ByocGcp) PrepareDomainDelegation ¶
func (b *ByocGcp) PrepareDomainDelegation(ctx context.Context, req client.PrepareDomainDelegationRequest) (*client.PrepareDomainDelegationResponse, error)
func (*ByocGcp) Preview ¶
func (b *ByocGcp) Preview(ctx context.Context, req *defangv1.DeployRequest) (*defangv1.DeployResponse, error)
func (*ByocGcp) Subscribe ¶
func (b *ByocGcp) Subscribe(ctx context.Context, req *defangv1.SubscribeRequest) (client.ServerStream[defangv1.SubscribeResponse], error)
type GcpAccountInfo ¶
type GcpAccountInfo struct {
// contains filtered or unexported fields
}
func (GcpAccountInfo) AccountID ¶
func (g GcpAccountInfo) AccountID() string
func (GcpAccountInfo) Details ¶
func (g GcpAccountInfo) Details() string
func (GcpAccountInfo) Provider ¶
func (g GcpAccountInfo) Provider() client.ProviderID
func (GcpAccountInfo) Region ¶
func (g GcpAccountInfo) Region() string
type LogStream ¶
type LogStream struct { *ServerStream[*defangv1.TailResponse] }
func (*LogStream) AddJobExecutionLog ¶
type ServerStream ¶
type ServerStream[T any] struct { // contains filtered or unexported fields }
func NewServerStream ¶
func (*ServerStream[T]) Close ¶
func (s *ServerStream[T]) Close() error
func (*ServerStream[T]) Err ¶
func (s *ServerStream[T]) Err() error
func (*ServerStream[T]) Msg ¶
func (s *ServerStream[T]) Msg() T
func (*ServerStream[T]) Receive ¶
func (s *ServerStream[T]) Receive() bool
func (*ServerStream[T]) Start ¶
func (s *ServerStream[T]) Start() error
type SubscribeStream ¶
type SubscribeStream struct { *ServerStream[*defangv1.SubscribeResponse] }
func NewSubscribeStream ¶
func (*SubscribeStream) AddJobExecutionUpdate ¶
func (s *SubscribeStream) AddJobExecutionUpdate(executionName string)
func (*SubscribeStream) AddJobStatusUpdate ¶
func (s *SubscribeStream) AddJobStatusUpdate(project, etag string, services []string)
func (*SubscribeStream) AddServiceStatusUpdate ¶
func (s *SubscribeStream) AddServiceStatusUpdate(project, etag string, services []string)
Click to show internal directories.
Click to hide internal directories.