Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationService ¶
type ApplicationService interface {
List() ([]*models.Application, error)
}
func NewApplicationService ¶
func NewApplicationService(db *gorm.DB) (ApplicationService, error)
type ProjectsService ¶
type ProjectsService interface { ListProjects(ctx context.Context, name string, user string) ([]*models.Project, error) CreateProject(ctx context.Context, project *models.Project) (*models.Project, error) UpdateProject(ctx context.Context, project *models.Project) (*models.Project, error) FindByID(projectID models.ID) (*models.Project, error) FindByName(projectName string) (*models.Project, error) }
func NewProjectsService ¶
func NewProjectsService( mlflowURL string, projectRepository repository.ProjectRepository, authEnforcer enforcer.Enforcer, authEnabled bool) (ProjectsService, error)
type SecretService ¶
type SecretService interface { // FindByID finds a secret given its secretID FindByID(secretID models.ID) (*models.Secret, error) // Create creates a secret in the storage and returns the created secret. Create(secret *models.Secret) (*models.Secret, error) // Update updates a secret in the storage and returns the updated secret. Update(secret *models.Secret) (*models.Secret, error) // List lists all secrets of a project given its projectID List(projectID models.ID) ([]*models.Secret, error) // Delete deletes a secret given its secretID Delete(secretID models.ID) error }
SecretService is the interface that provides secret related methods.
func NewSecretService ¶
func NewSecretService(secretRepository repository.SecretRepository, storageRepository repository.SecretStorageRepository, projectRepository repository.ProjectRepository, storageClientRegistry *secretstorage.Registry, defaultSecretStorage *models.SecretStorage, ) SecretService
type SecretStorageService ¶ added in v1.8.0
type SecretStorageService interface { Create(ss *models.SecretStorage) (*models.SecretStorage, error) // FindByID retrieves a secret storage by ID FindByID(id models.ID) (*models.SecretStorage, error) // List retrieves all secret storages for a project List(projectID models.ID) ([]*models.SecretStorage, error) // ListAll retrieves all secret storages ListAll() ([]*models.SecretStorage, error) // Update updates a secret storage Update(storage *models.SecretStorage) (*models.SecretStorage, error) // UpdateGlobal updates a global secret storage UpdateGlobal(storage *models.SecretStorage) (*models.SecretStorage, error) // Delete deletes a secret storage Delete(id models.ID) error }
func NewSecretStorageService ¶ added in v1.8.0
func NewSecretStorageService(ssRepository repository.SecretStorageRepository, projectRepository repository.ProjectRepository, ssClientRegistry *secretstorage.Registry) SecretStorageService
Source Files ¶
Click to show internal directories.
Click to hide internal directories.