Documentation
¶
Index ¶
Constants ¶
This section is empty.
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) (*model.ChaosHub, error) AddRemoteChaosHub(ctx context.Context, chaosHub model.CreateRemoteChaosHub) (*model.ChaosHub, error) SaveChaosHub(ctx context.Context, chaosHub model.CreateChaosHubRequest) (*model.ChaosHub, error) SyncHub(ctx context.Context, hubID string, projectID string) (string, error) UpdateChaosHub(ctx context.Context, chaosHub model.UpdateChaosHubRequest) (*model.ChaosHub, error) DeleteChaosHub(ctx context.Context, hubID string, projectID string) (bool, error) ListCharts(ctx context.Context, hubName string, projectID string) ([]*model.Chart, error) GetHubExperiment(ctx context.Context, request model.ExperimentRequest) (*model.Chart, error) ListHubStatus(ctx context.Context, projectID string) ([]*model.ChaosHubStatus, error) GetYAMLData(request model.ExperimentRequest) (string, error) GetExperimentManifestDetails(ctx context.Context, request model.ExperimentRequest) (*model.ExperimentDetails, error) ListPredefinedWorkflows(hubName string, projectID string) ([]*model.PredefinedWorkflowList, error) GetPredefinedExperimentYAMLData(request model.ExperimentRequest) (string, error) IsChaosHubAvailable(ctx context.Context, hubName string, projectID string) (bool, error) GetAllHubs(ctx context.Context) ([]*model.ChaosHub, error) RecurringHubSync() }
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.