testing

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CreateRequest = `` /* 856-byte string literal not displayed */
View Source
const GetResponse = `` /* 911-byte string literal not displayed */
View Source
const ListResponse = `` /* 1260-byte string literal not displayed */
View Source
const TasksResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`
View Source
const UpdateRequest = `` /* 813-byte string literal not displayed */

Variables

View Source
var (
	Inference1 = inferences.InferenceDeployment{
		ProjectID:     fake.ProjectID,
		Name:          "test-inf",
		Image:         "nginx:latest",
		ListeningPort: listeningPort,
		CreatedAt:     &createdAt,
		Status:        "ACTIVE",
		AuthEnabled:   false,
		Address:       "https://example.com",
		Containers: []inferences.Container{
			{
				DeployStatus: inferences.ContainerDeployStatus{
					Ready: 1,
					Total: 3,
				},
				RegionID: fake.RegionID,
				Scale: inferences.ContainerScale{
					CooldownPeriod:  &cooldownPeriod,
					PollingInterval: &pollingInterval,
					Max:             3,
					Min:             1,
					Triggers: inferences.ContainerScaleTrigger{
						Cpu: &inferences.ScaleTriggerThreshold{
							Threshold: 80,
						},
						Memory: &inferences.ScaleTriggerThreshold{
							Threshold: 70,
						},
					},
				},
			},
		},
		Timeout: timeout,
		Envs: map[string]string{
			"DEBUG_MODE": "False",
			"KEY":        "12345",
		},
		FlavorName:      "inference-16vcpu-232gib-1xh100-80gb",
		Command:         &cmd,
		CredentialsName: "dockerhub",
		Logging: &inferences.Logging{
			DestinationRegionID:      &regionID,
			Enabled:                  true,
			OpensearchDashboardsLink: "https://opensearch.gcore.com",
			RetentionPolicy:          &retentionPolicy,
			TopicName:                &topicName,
		},
	}
	InferencesSlice = []inferences.InferenceDeployment{Inference1}
	Tasks1          = tasks.TaskResults{
		Tasks: []tasks.TaskID{"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL