Documentation
¶
Index ¶
- func AddJWTtoTheHeader(ctx context.Context, req *http.Request) error
- func AddProjectIDtoTheHeader(ctx context.Context, req *http.Request) error
- func AssertInMaintenance(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func CreateHost(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostComputeHostsResponse
- func CreateInstance(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostInstancesResponse
- func CreateOS(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostOSResourcesResponse
- func CreateOu(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostOusResponse
- func CreateProvider(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostProvidersResponse
- func CreateRegion(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostRegionsResponse
- func CreateSchedRepeated(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostSchedulesRepeatedResponse
- func CreateSchedSingle(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostSchedulesSingleResponse
- func CreateSite(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostSitesResponse
- func CreateTelemetryLogsGroup(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostTelemetryGroupsLogsResponse
- func CreateTelemetryLogsProfile(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostTelemetryProfilesLogsResponse
- func CreateTelemetryMetricsGroup(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostTelemetryGroupsMetricsResponse
- func CreateTelemetryMetricsProfile(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostTelemetryProfilesMetricsResponse
- func CreateWorkload(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostWorkloadsResponse
- func CreateWorkloadMember(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...) *api.PostWorkloadMembersResponse
- func DeleteInstance(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func DeleteOS(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func DeleteOu(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func DeleteProvider(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func DeleteRegion(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func DeleteSchedRepeated(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func DeleteSchedSingle(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func DeleteSite(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func DeleteTelemetryLogsGroup(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func DeleteTelemetryLogsProfile(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func DeleteTelemetryMetricsGroup(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func DeleteTelemetryMetricsProfile(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func DeleteWorkload(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func DeleteWorkloadMember(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func GetAPIClient() (*api.ClientWithResponses, error)
- func GetClientWithCA(caPath string) (*http.Client, error)
- func GetHostRequestWithRandomUUID() api.Host
- func ListMetadataContains(lst api.Metadata, key, value string) bool
- func ListStringContains(s []string, str string) bool
- func LoadFile(filePath string) (string, error)
- func SoftDeleteHost(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
- func UnallocateHostFromSite(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProjectIDtoTheHeader ¶
func AssertInMaintenance ¶
func CreateHost ¶
func CreateHost( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, hostRequest api.Host, ) *api.PostComputeHostsResponse
CreateHost adds a host via the REST APIs, and setup the soft delete upon test cleanup.
func CreateInstance ¶
func CreateInstance( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, instRequest api.Instance, ) *api.PostInstancesResponse
func CreateOS ¶
func CreateOS( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, reqOS api.OperatingSystemResource, ) *api.PostOSResourcesResponse
func CreateOu ¶
func CreateOu( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, ouRequest api.OU, ) *api.PostOusResponse
func CreateProvider ¶
func CreateProvider( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, reqProvider api.Provider, ) *api.PostProvidersResponse
func CreateRegion ¶
func CreateRegion( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, regionRequest api.Region, ) *api.PostRegionsResponse
func CreateSchedRepeated ¶
func CreateSchedRepeated( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, reqSched api.RepeatedSchedule, ) *api.PostSchedulesRepeatedResponse
func CreateSchedSingle ¶
func CreateSchedSingle( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, reqSched api.SingleSchedule, ) *api.PostSchedulesSingleResponse
func CreateSite ¶
func CreateSite( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, siteRequest api.Site, ) *api.PostSitesResponse
func CreateTelemetryLogsGroup ¶
func CreateTelemetryLogsGroup( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, request api.TelemetryLogsGroup, ) *api.PostTelemetryGroupsLogsResponse
func CreateTelemetryLogsProfile ¶
func CreateTelemetryLogsProfile( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, request api.TelemetryLogsProfile, ) *api.PostTelemetryProfilesLogsResponse
func CreateTelemetryMetricsGroup ¶
func CreateTelemetryMetricsGroup( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, request api.TelemetryMetricsGroup, ) *api.PostTelemetryGroupsMetricsResponse
func CreateTelemetryMetricsProfile ¶
func CreateTelemetryMetricsProfile( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, request api.TelemetryMetricsProfile, ) *api.PostTelemetryProfilesMetricsResponse
func CreateWorkload ¶
func CreateWorkload( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, reqWorkload api.Workload, ) *api.PostWorkloadsResponse
func CreateWorkloadMember ¶
func CreateWorkloadMember( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, reqMember api.WorkloadMember, ) *api.PostWorkloadMembersResponse
func DeleteInstance ¶
func DeleteProvider ¶
func DeleteRegion ¶
func DeleteSchedRepeated ¶
func DeleteSchedSingle ¶
func DeleteSite ¶
func DeleteWorkload ¶
func DeleteWorkloadMember ¶
func GetAPIClient ¶
func GetAPIClient() (*api.ClientWithResponses, error)
func ListStringContains ¶
func SoftDeleteHost ¶
func SoftDeleteHost( t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, hostID string, )
SoftDeleteHost: unallocate the host if allocated to any site so we free any linked resources (site), and does a soft delete of Host. Eventually Host Resource Manager will do the hard delete.
func UnallocateHostFromSite ¶
func UnallocateHostFromSite(t testing.TB, ctx context.Context, apiClient *api.ClientWithResponses, hostId string)
UnallocateHostFromSite: unallocate the given hostId from a site.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.