application

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

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

type CreateProfileServiceParams

type CreateProfileServiceParams struct {
	Workspace string
	Email     string
	Name      string
}

type CurrentProfileService

type CurrentProfileService struct {
	// contains filtered or unexported fields
}

func NewCurrentProfileService

func NewCurrentProfileService(
	profileRepository domain.ProfileRepository,
	scmUserRepository domain.ScmUserRepository,
) *CurrentProfileService

func (*CurrentProfileService) Execute

func (cp *CurrentProfileService) Execute() (*domain.Profile, error)

type DeleteProfileService

type DeleteProfileService struct {
	// contains filtered or unexported fields
}

func NewDeleteProfileService

func NewDeleteProfileService(profileRepository domain.ProfileRepository) *DeleteProfileService

func (*DeleteProfileService) Execute

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

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

func (*ListProfileService) Execute

func (lp *ListProfileService) Execute() ([]*domain.Profile, error)

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

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

type UpdateProfileServiceParams

type UpdateProfileServiceParams struct {
	Workspace string
	Email     string
	Name      string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL