Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPath = "/tmp/" DefaultHubID = "6f39cea9-6264-4951-83a8-29976b614289" DefaultHubSyncTimeInterval = 6 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
func NewCloningInputFrom ¶
func NewCloningInputFrom(chaosHub model.CreateChaosHubRequest) model.CloningInput
Types ¶
type Service ¶
type Service interface { AddChaosHub(ctx context.Context, chaosHub model.CreateChaosHubRequest, projectID string) (*model.ChaosHub, error) AddRemoteChaosHub(ctx context.Context, chaosHub model.CreateRemoteChaosHub, projectID string) (*model.ChaosHub, error) SaveChaosHub(ctx context.Context, chaosHub model.CreateChaosHubRequest, projectID string) (*model.ChaosHub, error) SyncChaosHub(ctx context.Context, hubID string, projectID string) (string, error) UpdateChaosHub(ctx context.Context, chaosHub model.UpdateChaosHubRequest, projectID string) (*model.ChaosHub, error) DeleteChaosHub(ctx context.Context, hubID string, projectID string) (bool, error) ListChaosFaults(ctx context.Context, hubID string, projectID string) ([]*model.Chart, error) GetChaosFault(ctx context.Context, request model.ExperimentRequest, projectID string) (*model.FaultDetails, error) GetChaosHub(ctx context.Context, chaosHubID string, projectID string) (*model.ChaosHubStatus, error) ListChaosHubs(ctx context.Context, projectID string, request *model.ListChaosHubRequest) ([]*model.ChaosHubStatus, error) ListPredefinedExperiments(ctx context.Context, hubID string, projectID string) ([]*model.PredefinedExperimentList, error) GetPredefinedExperiment(ctx context.Context, hubID string, experiment []string, projectID string) ([]*model.PredefinedExperimentList, error) IsChaosHubAvailable(ctx context.Context, name string, projectID string) (bool, error) GetAllHubs(ctx context.Context) ([]*model.ChaosHub, error) RecurringHubSync() SyncDefaultChaosHubs() GetChaosHubStats(ctx context.Context, projectID string) (*model.GetChaosHubStatsResponse, error) }
func NewService ¶
func NewService(chaosHubOperator *dbSchemaChaosHub.Operator) Service
NewService returns a new instance of Service
Click to show internal directories.
Click to hide internal directories.