Documentation
¶
Index ¶
- Variables
- type AmendProfileService
- type AmendProfileServiceParams
- type CreateProfileService
- type CreateProfileServiceParams
- type CurrentProfileService
- type DeleteProfileService
- type DeleteProfileServiceParams
- type GetProfileService
- type GetProfileServiceParams
- type ListProfileService
- type SetProfileService
- type SetProfileServiceParams
- type UnsetProfileService
- type UpdateProfileService
- type UpdateProfileServiceParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrProfileAlreadyExists = errors.New("profile already exists")
View Source
var ErrProfileNotConfigured = errors.New("profile not configured")
View Source
var ErrProfileNotExists = errors.New("profile not exists")
Functions ¶
This section is empty.
Types ¶
type AmendProfileService ¶
type AmendProfileService struct {
// contains filtered or unexported fields
}
func NewAmendProfileService ¶
func NewAmendProfileService( profileRepository domain.ProfileRepository, scmCommitRepository domain.ScmCommitRepository, ) *AmendProfileService
func (*AmendProfileService) Execute ¶
func (cp *AmendProfileService) Execute(params AmendProfileServiceParams) (*domain.ScmCommit, error)
type AmendProfileServiceParams ¶
type AmendProfileServiceParams struct {
Workspace string
}
type CreateProfileService ¶
type CreateProfileService struct {
// contains filtered or unexported fields
}
func NewCreateProfileService ¶
func NewCreateProfileService(profileRepository domain.ProfileRepository) *CreateProfileService
func (*CreateProfileService) Execute ¶
func (cp *CreateProfileService) Execute(params CreateProfileServiceParams) (*domain.Profile, error)
type CurrentProfileService ¶
type CurrentProfileService struct {
// contains filtered or unexported fields
}
func NewCurrentProfileService ¶
func NewCurrentProfileService( profileRepository domain.ProfileRepository, scmUserRepository domain.ScmUserRepository, ) *CurrentProfileService
type DeleteProfileService ¶
type DeleteProfileService struct {
// contains filtered or unexported fields
}
func NewDeleteProfileService ¶
func NewDeleteProfileService(profileRepository domain.ProfileRepository) *DeleteProfileService
func (*DeleteProfileService) Execute ¶
func (cp *DeleteProfileService) Execute(params DeleteProfileServiceParams) error
type DeleteProfileServiceParams ¶
type DeleteProfileServiceParams struct {
Workspace string
}
type GetProfileService ¶
type GetProfileService struct {
// contains filtered or unexported fields
}
func NewGetProfileService ¶
func NewGetProfileService(profileRepository domain.ProfileRepository) *GetProfileService
func (*GetProfileService) Execute ¶
func (cp *GetProfileService) Execute(params GetProfileServiceParams) (*domain.Profile, error)
type GetProfileServiceParams ¶
type GetProfileServiceParams struct {
Workspace string
}
type ListProfileService ¶
type ListProfileService struct {
// contains filtered or unexported fields
}
func NewListProfileService ¶
func NewListProfileService( profileRepository domain.ProfileRepository, ) *ListProfileService
type SetProfileService ¶ added in v0.1.5
type SetProfileService struct {
// contains filtered or unexported fields
}
func NewSetProfileService ¶ added in v0.1.5
func NewSetProfileService( profileRepository domain.ProfileRepository, scmUserRepository domain.ScmUserRepository, ) *SetProfileService
func (*SetProfileService) Execute ¶ added in v0.1.5
func (up *SetProfileService) Execute(params SetProfileServiceParams) (*domain.Profile, error)
type SetProfileServiceParams ¶ added in v0.1.5
type SetProfileServiceParams struct {
Workspace string
}
type UnsetProfileService ¶ added in v0.1.5
type UnsetProfileService struct {
// contains filtered or unexported fields
}
func NewUnsetProfileService ¶ added in v0.1.5
func NewUnsetProfileService( scmUserRepository domain.ScmUserRepository, ) *UnsetProfileService
func (*UnsetProfileService) Execute ¶ added in v0.1.5
func (up *UnsetProfileService) Execute() error
type UpdateProfileService ¶
type UpdateProfileService struct {
// contains filtered or unexported fields
}
func NewUpdateProfileService ¶
func NewUpdateProfileService(profileRepository domain.ProfileRepository) *UpdateProfileService
func (*UpdateProfileService) Execute ¶
func (cp *UpdateProfileService) Execute(params UpdateProfileServiceParams) (*domain.Profile, error)
Click to show internal directories.
Click to hide internal directories.