Documentation ¶
Index ¶
- Constants
- func CreateInstanceWaitHandler(ctx context.Context, a APIClientInterface, instanceId, projectId string) *wait.AsyncActionHandler[argus.GetInstanceResponse]
- func CreateScrapeConfigWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[argus.ListScrapeConfigsResponse]
- func DeleteInstanceWaitHandler(ctx context.Context, a APIClientInterface, instanceId, projectId string) *wait.AsyncActionHandler[argus.GetInstanceResponse]
- func DeleteScrapeConfigWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[argus.ListScrapeConfigsResponse]
- func UpdateInstanceWaitHandler(ctx context.Context, a APIClientInterface, instanceId, projectId string) *wait.AsyncActionHandler[argus.GetInstanceResponse]
- type APIClientInterface
Constants ¶
View Source
const ( CreateSuccess = "CREATE_SUCCEEDED" CreateFail = "CREATE_FAILED" UpdateSuccess = "UPDATE_SUCCEEDED" UpdateFail = "UPDATE_FAILED" DeleteSuccess = "DELETE_SUCCEEDED" DeleteFail = "DELETE_FAILED" )
Variables ¶
This section is empty.
Functions ¶
func CreateInstanceWaitHandler ¶
func CreateInstanceWaitHandler(ctx context.Context, a APIClientInterface, instanceId, projectId string) *wait.AsyncActionHandler[argus.GetInstanceResponse]
CreateInstanceWaitHandler will wait for instance creation
func CreateScrapeConfigWaitHandler ¶
func CreateScrapeConfigWaitHandler(ctx context.Context, a APIClientInterface, instanceId, jobName, projectId string) *wait.AsyncActionHandler[argus.ListScrapeConfigsResponse]
CreateScrapeConfigWaitHandler will wait for scrape config creation
func DeleteInstanceWaitHandler ¶
func DeleteInstanceWaitHandler(ctx context.Context, a APIClientInterface, instanceId, projectId string) *wait.AsyncActionHandler[argus.GetInstanceResponse]
DeleteInstanceWaitHandler will wait for instance deletion
func DeleteScrapeConfigWaitHandler ¶
func DeleteScrapeConfigWaitHandler(ctx context.Context, a APIClientInterface, instanceId, jobName, projectId string) *wait.AsyncActionHandler[argus.ListScrapeConfigsResponse]
DeleteScrapeConfigWaitHandler will wait for scrape config deletion
func UpdateInstanceWaitHandler ¶
func UpdateInstanceWaitHandler(ctx context.Context, a APIClientInterface, instanceId, projectId string) *wait.AsyncActionHandler[argus.GetInstanceResponse]
UpdateInstanceWaitHandler will wait for instance update
Types ¶
type APIClientInterface ¶
type APIClientInterface interface { GetInstanceExecute(ctx context.Context, instanceId, projectId string) (*argus.GetInstanceResponse, error) ListScrapeConfigsExecute(ctx context.Context, instanceId, projectId string) (*argus.ListScrapeConfigsResponse, error) }
APIClientInterface Interfaces needed for tests
Click to show internal directories.
Click to hide internal directories.