Documentation ¶
Index ¶
- type ChaosHub
- type Operator
- func (c *Operator) CreateChaosHub(ctx context.Context, chaosHub *ChaosHub) error
- func (c *Operator) GetChaosHubByProjectID(ctx context.Context, projectID string) ([]ChaosHub, error)
- func (c *Operator) GetHubByID(ctx context.Context, hubID string, projectID string) (ChaosHub, error)
- func (c *Operator) GetHubs(ctx context.Context) ([]ChaosHub, error)
- func (c *Operator) UpdateChaosHub(ctx context.Context, query bson.D, update bson.D) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChaosHub ¶
type ChaosHub struct { ID string `bson:"chaoshub_id"` ProjectID string `bson:"project_id"` RepoURL string `bson:"repo_url"` RepoBranch string `bson:"repo_branch"` HubName string `bson:"hub_name"` IsPrivate bool `bson:"IsPrivate"` AuthType string `bson:"AuthType"` HubType string `bson:"hub_type"` Token *string `bson:"Token"` UserName *string `bson:"UserName"` Password *string `bson:"Password"` SSHPrivateKey *string `bson:"SSHPrivateKey"` SSHPublicKey *string `bson:"SSHPublicKey"` IsRemoved bool `bson:"IsRemoved"` CreatedAt string `bson:"created_at"` UpdatedAt string `bson:"updated_at"` LastSyncedAt string `bson:"last_synced_at"` }
ChaosHub ...
func (*ChaosHub) GetOutputChaosHub ¶
GetOutputChaosHub ...
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
func NewChaosHubOperator ¶
func NewChaosHubOperator(mongodbOperator mongodb.MongoOperator) *Operator
func (*Operator) CreateChaosHub ¶
CreateChaosHub creates a private chaosHub for the user in the database
func (*Operator) GetChaosHubByProjectID ¶
func (c *Operator) GetChaosHubByProjectID(ctx context.Context, projectID string) ([]ChaosHub, error)
GetChaosHubByProjectID returns a private Hub based on the projectID
func (*Operator) GetHubByID ¶
func (c *Operator) GetHubByID(ctx context.Context, hubID string, projectID string) (ChaosHub, error)
GetHubByID returns a single chaosHub based on the hubID
Click to show internal directories.
Click to hide internal directories.