Documentation
¶
Index ¶
- type AppService
- type EventStatus
- type EventType
- type EventWithLogs
- type LogType
- type Querier
- type Repo
- func (r *Repo) ChartDelete(ctx context.Context, teamID string, chartType gensql.ChartType) error
- func (r *Repo) ChartsForTeamGet(ctx context.Context, teamID string) ([]gensql.ChartType, error)
- func (r *Repo) ComputeInstanceCreate(ctx context.Context, instance *gensql.ComputeInstance) error
- func (r *Repo) ComputeInstanceDelete(ctx context.Context, owner string) error
- func (r *Repo) ComputeInstanceGet(ctx context.Context, owner string) (gensql.ComputeInstance, error)
- func (r *Repo) ComputeInstanceUpdate(ctx context.Context, owner string, diskSize int32) error
- func (r *Repo) ComputeInstancesGet(ctx context.Context) ([]gensql.ComputeInstance, error)
- func (r *Repo) DecryptValue(encValue string) (string, error)
- func (r *Repo) DispatchableEventsGet(ctx context.Context) ([]gensql.Event, error)
- func (r *Repo) EncryptValue(encValue string) (string, error)
- func (r *Repo) EventGet(ctx context.Context, id uuid.UUID) (gensql.Event, error)
- func (r *Repo) EventIncrementRetryCount(ctx context.Context, id uuid.UUID) error
- func (r *Repo) EventLogCreate(ctx context.Context, id uuid.UUID, message string, logType LogType) error
- func (r *Repo) EventLogsForEventGet(ctx context.Context, id uuid.UUID) ([]gensql.EventLog, error)
- func (r *Repo) EventLogsForOwnerGet(ctx context.Context, owner string, limit int32) ([]EventWithLogs, error)
- func (r *Repo) EventSetStatus(ctx context.Context, id uuid.UUID, status EventStatus) error
- func (r *Repo) EventsByOwnerGet(ctx context.Context, teamID string, limit int32) ([]gensql.Event, error)
- func (r *Repo) EventsGetType(ctx context.Context, eventType EventType) ([]gensql.Event, error)
- func (r *Repo) EventsReset(ctx context.Context) error
- func (r *Repo) GlobalChartValueInsert(ctx context.Context, key, value string, encrypted bool, ...) error
- func (r *Repo) GlobalValueDelete(ctx context.Context, key string, chartType gensql.ChartType) error
- func (r *Repo) GlobalValueGet(ctx context.Context, chartType gensql.ChartType, key string) (gensql.ChartGlobalValue, error)
- func (r *Repo) GlobalValuesGet(ctx context.Context, chartType gensql.ChartType) ([]gensql.ChartGlobalValue, error)
- func (r *Repo) HelmChartValuesInsert(ctx context.Context, chartType gensql.ChartType, chartValues map[string]string, ...) error
- func (r *Repo) NewSessionStore(key string) (gin.HandlerFunc, error)
- func (r *Repo) RegisterCreateAirflowEvent(ctx context.Context, teamID string, values any) error
- func (r *Repo) RegisterCreateComputeEvent(ctx context.Context, owner string, values any) error
- func (r *Repo) RegisterCreateJupyterEvent(ctx context.Context, teamID string, values any) error
- func (r *Repo) RegisterCreateTeamEvent(ctx context.Context, team gensql.Team) error
- func (r *Repo) RegisterCreateUserGSMEvent(ctx context.Context, owner string, values any) error
- func (r *Repo) RegisterDeleteAirflowEvent(ctx context.Context, teamID string) error
- func (r *Repo) RegisterDeleteComputeEvent(ctx context.Context, email string) error
- func (r *Repo) RegisterDeleteJupyterEvent(ctx context.Context, teamID string) error
- func (r *Repo) RegisterDeleteTeamEvent(ctx context.Context, teamID string) error
- func (r *Repo) RegisterDeleteUserGSMEvent(ctx context.Context, owner string) error
- func (r *Repo) RegisterHelmRollbackAirflowEvent(ctx context.Context, teamID string, values any) error
- func (r *Repo) RegisterHelmRollbackJupyterEvent(ctx context.Context, teamID string, values any) error
- func (r *Repo) RegisterHelmRolloutAirflowEvent(ctx context.Context, teamID string, values any) error
- func (r *Repo) RegisterHelmRolloutJupyterEvent(ctx context.Context, teamID string, values any) error
- func (r *Repo) RegisterHelmUninstallAirflowEvent(ctx context.Context, teamID string, values any) error
- func (r *Repo) RegisterHelmUninstallJupyterEvent(ctx context.Context, teamID string, values any) error
- func (r *Repo) RegisterResizeComputeDiskEvent(ctx context.Context, owner string, values any) error
- func (r *Repo) RegisterUpdateAirflowEvent(ctx context.Context, teamID string, values any) error
- func (r *Repo) RegisterUpdateJupyterEvent(ctx context.Context, teamID string, values any) error
- func (r *Repo) RegisterUpdateTeamEvent(ctx context.Context, team gensql.Team) error
- func (r *Repo) ServicesForUser(ctx context.Context, email, topLevelDomain string) (UserServices, error)
- func (r *Repo) SessionCreate(ctx context.Context, session *auth.Session) error
- func (r *Repo) SessionDelete(ctx context.Context, token string) error
- func (r *Repo) SessionGet(ctx context.Context, token string) (*auth.Session, error)
- func (r *Repo) TeamBySlugGet(ctx context.Context, slug string) (gensql.TeamBySlugGetRow, error)
- func (r *Repo) TeamChartValueInsert(ctx context.Context, key, value, teamID string, chartType gensql.ChartType) error
- func (r *Repo) TeamConfigurableValuesGet(ctx context.Context, chartType gensql.ChartType, teamID string, obj any) error
- func (r *Repo) TeamCreate(ctx context.Context, team *gensql.Team) error
- func (r *Repo) TeamDelete(ctx context.Context, teamID string) error
- func (r *Repo) TeamGet(ctx context.Context, teamID string) (gensql.TeamGetRow, error)
- func (r *Repo) TeamUpdate(ctx context.Context, team *gensql.Team) error
- func (r *Repo) TeamValueDelete(ctx context.Context, key, teamID string) error
- func (r *Repo) TeamValueGet(ctx context.Context, key, teamID string) (gensql.ChartTeamValue, error)
- func (r *Repo) TeamValueInsert(ctx context.Context, chartType gensql.ChartType, key, value, teamID string) error
- func (r *Repo) TeamValuesGet(ctx context.Context, chartType gensql.ChartType, teamID string) ([]gensql.ChartTeamValue, error)
- func (r *Repo) TeamsForChartGet(ctx context.Context, chartType gensql.ChartType) ([]string, error)
- func (r *Repo) TeamsForUser(ctx context.Context, email string) ([]string, error)
- func (r *Repo) TeamsGet(ctx context.Context) ([]gensql.Team, error)
- func (r *Repo) UserGSMCreate(ctx context.Context, googleSecretManager *gensql.UserGoogleSecretManager) error
- func (r *Repo) UserGSMDelete(ctx context.Context, owner string) error
- func (r *Repo) UserGSMGet(ctx context.Context, owner string) (gensql.UserGoogleSecretManager, error)
- type RepoMock
- func (r *RepoMock) DispatchableEventsGet(ctx context.Context) ([]gensql.Event, error)
- func (r *RepoMock) DispatcherEventsGet(ctx context.Context) ([]gensql.Event, error)
- func (r *RepoMock) EventIncrementRetryCount(ctx context.Context, id uuid.UUID) error
- func (r *RepoMock) EventLogCreate(ctx context.Context, id uuid.UUID, message string, logType LogType) error
- func (r *RepoMock) EventSetStatus(ctx context.Context, id uuid.UUID, status EventStatus) error
- func (r *RepoMock) EventsReset(ctx context.Context) error
- func (r *RepoMock) RegisterHelmInstallOrUpgradeEvent(ctx context.Context, teamID string, helmEvent any) error
- func (r *RepoMock) RegisterHelmRollbackEvent(ctx context.Context, helmEvent any) error
- func (r *RepoMock) RegisterHelmUninstallEvent(ctx context.Context, helmEvent any) bool
- type Repository
- type TeamServices
- type UserServices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventStatus ¶
type EventStatus string
const ( EventStatusNew EventStatus = "new" EventStatusProcessing EventStatus = "processing" EventStatusCompleted EventStatus = "completed" EventStatusPending EventStatus = "pending" EventStatusFailed EventStatus = "failed" EventStatusManualFailed EventStatus = "manual_failed" EventStatusDeadlineReached EventStatus = "deadline_reached" )
type EventType ¶
type EventType string
const ( EventTypeCreateTeam EventType = "create:team" EventTypeUpdateTeam EventType = "update:team" EventTypeDeleteTeam EventType = "delete:team" EventTypeCreateJupyter EventType = "create:jupyter" EventTypeUpdateJupyter EventType = "update:jupyter" EventTypeDeleteJupyter EventType = "delete:jupyter" EventTypeCreateAirflow EventType = "create:airflow" EventTypeUpdateAirflow EventType = "update:airflow" EventTypeDeleteAirflow EventType = "delete:airflow" EventTypeCreateCompute EventType = "create:compute" EventTypeResizeCompute EventType = "resize:compute" EventTypeDeleteCompute EventType = "delete:compute" EventTypeCreateUserGSM EventType = "create:usergsm" EventTypeDeleteUserGSM EventType = "delete:usergsm" EventTypeHelmRolloutJupyter EventType = "rolloutJupyter:helm" EventTypeHelmRollbackJupyter EventType = "rollbackJupyter:helm" EventTypeHelmUninstallJupyter EventType = "uninstallJupyter:helm" EventTypeHelmRolloutAirflow EventType = "rolloutAirflow:helm" EventTypeHelmRollbackAirflow EventType = "rollbackAirflow:helm" EventTypeHelmUninstallAirflow EventType = "uninstallAirflow:helm" )
type EventWithLogs ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) ChartDelete ¶
func (*Repo) ChartsForTeamGet ¶
func (*Repo) ComputeInstanceCreate ¶
func (*Repo) ComputeInstanceDelete ¶
func (*Repo) ComputeInstanceGet ¶
func (*Repo) ComputeInstanceUpdate ¶
func (*Repo) ComputeInstancesGet ¶
func (*Repo) DispatchableEventsGet ¶
func (*Repo) EventIncrementRetryCount ¶
func (*Repo) EventLogCreate ¶
func (*Repo) EventLogsForEventGet ¶
func (*Repo) EventLogsForOwnerGet ¶
func (*Repo) EventSetStatus ¶
func (*Repo) EventsByOwnerGet ¶
func (*Repo) EventsGetType ¶
func (*Repo) GlobalChartValueInsert ¶
func (*Repo) GlobalValueDelete ¶
func (*Repo) GlobalValueGet ¶
func (*Repo) GlobalValuesGet ¶
func (*Repo) HelmChartValuesInsert ¶
func (*Repo) NewSessionStore ¶
func (r *Repo) NewSessionStore(key string) (gin.HandlerFunc, error)
func (*Repo) RegisterCreateAirflowEvent ¶
func (*Repo) RegisterCreateComputeEvent ¶
func (*Repo) RegisterCreateJupyterEvent ¶
func (*Repo) RegisterCreateTeamEvent ¶
func (*Repo) RegisterCreateUserGSMEvent ¶
func (*Repo) RegisterDeleteAirflowEvent ¶
func (*Repo) RegisterDeleteComputeEvent ¶
func (*Repo) RegisterDeleteJupyterEvent ¶
func (*Repo) RegisterDeleteTeamEvent ¶
func (*Repo) RegisterDeleteUserGSMEvent ¶
func (*Repo) RegisterHelmRollbackAirflowEvent ¶
func (*Repo) RegisterHelmRollbackJupyterEvent ¶
func (*Repo) RegisterHelmRolloutAirflowEvent ¶
func (*Repo) RegisterHelmRolloutJupyterEvent ¶
func (*Repo) RegisterHelmUninstallAirflowEvent ¶
func (*Repo) RegisterHelmUninstallJupyterEvent ¶
func (*Repo) RegisterResizeComputeDiskEvent ¶
func (*Repo) RegisterUpdateAirflowEvent ¶
func (*Repo) RegisterUpdateJupyterEvent ¶
func (*Repo) RegisterUpdateTeamEvent ¶
func (*Repo) ServicesForUser ¶
func (*Repo) SessionCreate ¶
func (*Repo) SessionGet ¶
func (*Repo) TeamBySlugGet ¶
func (*Repo) TeamChartValueInsert ¶
func (*Repo) TeamConfigurableValuesGet ¶
func (*Repo) TeamValueDelete ¶
func (*Repo) TeamValueGet ¶
func (*Repo) TeamValueInsert ¶
func (*Repo) TeamValuesGet ¶
func (*Repo) TeamsForChartGet ¶
func (*Repo) TeamsForUser ¶
func (*Repo) UserGSMCreate ¶
func (*Repo) UserGSMGet ¶
type RepoMock ¶
type RepoMock struct{}
func (*RepoMock) DispatchableEventsGet ¶
func (*RepoMock) DispatcherEventsGet ¶
func (*RepoMock) EventIncrementRetryCount ¶
func (*RepoMock) EventLogCreate ¶
func (*RepoMock) EventSetStatus ¶
func (*RepoMock) RegisterHelmInstallOrUpgradeEvent ¶
func (*RepoMock) RegisterHelmRollbackEvent ¶
type Repository ¶
type Repository interface { EventSetStatus(context.Context, uuid.UUID, EventStatus) error EventIncrementRetryCount(context.Context, uuid.UUID) error DispatchableEventsGet(context.Context) ([]gensql.Event, error) EventsReset(context.Context) error EventLogCreate(context.Context, uuid.UUID, string, LogType) error }
type TeamServices ¶
type TeamServices struct { TeamID string Slug string Jupyterhub *AppService Airflow *AppService Events []EventWithLogs }
type UserServices ¶
type UserServices struct { Services []TeamServices Compute *gensql.ComputeInstance UserGSM *gensql.UserGoogleSecretManager UserEvents []EventWithLogs }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.