Versions in this module Expand all Collapse all v0 v0.0.8 Sep 14, 2025 Changes in this version + const APP_NAME + var TYPE_NAME = map[TYPE]string + var TYPE_VALUE = map[string]TYPE + type AddAppServiceRequest struct + type AppInterface interface + CreateApplication func(context.Context, *CreateApplicationRequest) (*Application, error) + DeleteApplication func(context.Context, *DeleteApplicationRequest) (*Application, error) + DescribeApplication func(context.Context, *DescribeApplicationRequest) (*Application, error) + QueryApplication func(context.Context, *QueryApplicationRequest) (*types.Set[*Application], error) + UpdateApplication func(context.Context, *UpdateApplicationRequest) (*Application, error) + func GetService() AppInterface + type Application struct + Id string + Services []*Service + UpdateAt *time.Time + UpdateBy string + func NewApplication(req CreateApplicationRequest) (*Application, error) + func (a *Application) AddService(services ...*Service) *Application + func (a *Application) BuildId() + func (a *Application) SetReady(v bool) *Application + func (a *Application) String() string + func (a *Application) TableName() string + type ApplicationReadyAudit struct + AuditAt time.Time + AuditBy string + Message string + Ready bool + RoleName string + type ApplicationStatus struct + Ready *bool + UpdateAt *time.Time + type CodeRepository struct + CreatedAt time.Time + EnableHook bool + HookConfig string + HookId string + HttpUrl string + Language *LANGUAGE + Namespace string + ProjectId string + Provider SCM_PROVIDER + SshUrl string + Token string + WebUrl string + type CreateApplicationRequest struct + CreateAt time.Time + CreateBy string + func NewCreateApplicationRequest() *CreateApplicationRequest + func (a *CreateApplicationRequest) GetImageRepositoryPrimaryAddress() string + func (a *CreateApplicationRequest) Validate() error + type CreateApplicationSpec struct + Audits []ApplicationReadyAudit + CodeRepository CodeRepository + Description string + Extras map[string]string + Icon string + ImageRepository []ImageRepository + Level *uint32 + Name string + Owner string + Priority *uint32 + Type TYPE + type CreateServiceRequest struct + ApplicationName string + Name string + func NewCreateServiceRequest(app_name, serviceName string) *CreateServiceRequest + type DeleteApplicationRequest struct + type DeleteServiceRequest struct + type DescribeApplicationRequest struct + Id string + type DescribeServiceRequest struct + ServiceId string + func NewDescribeServiceRequest(serviceId string) *DescribeServiceRequest + type ImageRepository struct + Address string + IsPrimary bool + type LANGUAGE string + const LANGUAGE_C + const LANGUAGE_C_PLUS_PLUS + const LANGUAGE_C_SHARP + const LANGUAGE_DART + const LANGUAGE_GOLANG + const LANGUAGE_JAVA + const LANGUAGE_JAVASCRIPT + const LANGUAGE_KOTLIN + const LANGUAGE_OBJECT_C + const LANGUAGE_PHP + const LANGUAGE_POWER_SHELL + const LANGUAGE_PYTHON + const LANGUAGE_RUBY + const LANGUAGE_RUST + const LANGUAGE_SHELL + const LANGUAGE_SWIFT + type QueryApplicationRequest struct + func NewQueryApplicationRequest() *QueryApplicationRequest + type QueryApplicationRequestSpec struct + Id string + Name string + Ready *bool + type QueryServiceRequest struct + ApplicationId string + ApplicationName string + func NewQueryServiceRequest() *QueryServiceRequest + func (r *QueryServiceRequest) SetApplicationId(appId string) *QueryServiceRequest + func (r *QueryServiceRequest) SetApplicationName(appName string) *QueryServiceRequest + type SCM_PROVIDER string + const SCM_PROVIDER_BITBUCKET + const SCM_PROVIDER_GITHUB + const SCM_PROVIDER_GITLAB + type Service struct + CreateAt time.Time + Id string + UpdateAt *time.Time + UpdateBy string + func NewService(req *CreateServiceRequest) *Service + func (c *Service) TableName() string + func (s *Service) String() string + type ServiceInterface interface + AddAppService func(context.Context, *AddAppServiceRequest) (*Service, error) + DeleteService func(context.Context, *DeleteServiceRequest) (*Service, error) + DescribeService func(context.Context, *DescribeServiceRequest) (*Service, error) + QueryService func(context.Context, *QueryServiceRequest) (*types.Set[*Service], error) + UpdateService func(context.Context, *UpdateServiceRequest) (*Service, error) + type TYPE int32 + const TYPE_CONTAINER_IMAGE + const TYPE_OTHER + const TYPE_SOURCE_CODE + func ParseTypeFromString(str string) (TYPE, error) + func (t *TYPE) UnmarshalJSON(b []byte) error + func (t TYPE) Equal(target TYPE) bool + func (t TYPE) IsIn(targets ...TYPE) bool + func (t TYPE) MarshalJSON() ([]byte, error) + func (t TYPE) String() string + type UpdateApplicationRequest struct + UpdateBy string + type UpdateServiceRequest struct