Documentation ¶
Index ¶
Constants ¶
View Source
const CreateRequest = `` /* 166-byte string literal not displayed */
View Source
const CreateResponse = `
{
"tasks": [
"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
]
}
`
View Source
const DeleteResponse = `
{
"tasks": [
"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
]
}
`
View Source
const GetResponse = `` /* 356-byte string literal not displayed */
View Source
const ListInstancesResponse = `` /* 2955-byte string literal not displayed */
View Source
const ListResponse = `` /* 449-byte string literal not displayed */
View Source
const ResizeRequest = `
{
"node_count": 2
}
`
View Source
const ResizeResponse = `
{
"tasks": [
"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
]
}
`
View Source
const UpdateRequest = `
{
"min_mode_count": 1,
"max_mode_count": 3,
}
`
View Source
const UpdateResponse = `` /* 356-byte string literal not displayed */
Variables ¶
View Source
var ( Cluster1Name = "cluster-1" Pool1 = pools.ClusterPool{ ID: "f3446423-0a82-475a-a1bd-31ce788ace9e", Name: "pool-1", FlavorID: "g0-standard-2-4", NodeCount: 1, MinNodeCount: 1, MaxNodeCount: 2, Status: "Running", BootVolumeType: volumes.SsdHiIops, BootVolumeSize: 50, AutoHealingEnabled: false, CreatedAt: createdTime, IsPublicIPv4: false, } Instance1 = instances.Instance{ ID: "2246207d-fb9f-4ea4-acea-5b2cf77ff46b", Name: "cluster-1-pool-1-machine-deployment-56bc6958d-jz6m4", CreatedAt: gcorecloud.JSONRFC3339ZZ{Time: createdTime}, Status: "ACTIVE", VMState: "active", Flavor: flavors.Flavor{ FlavorID: "g0-standard-2-4", FlavorName: "g0-standard-2-4", VCPUS: 2, RAM: 4096, }, Metadata: map[string]interface{}{ "capgc/infra_machine_name": "cluster-1-pool-1-machine-template-j6c5g", "capgc/infra_machine_uid": "1a08139a-d441-4311-8dfb-442fe366be95", "capgc/kubernetes_version": "v1.26.7", "gcloud_cluster_name": "cluster-1", "gcloud_service": "k8s", "gcloud_service_type": "worker", "task_id": "9640f68f-5748-4113-90bd-67a66e985e43", "os_distro": "Ubuntu", "os_type": "linux", "os_version": "22.04", "image_name": "gcloud-k8s-v1.26.7-xUbuntu_22.04-worker-0.0.1.raw", "image_id": "d488fd8c-e70c-4bc2-b2b5-260960a083a2", }, Volumes: []instances.InstanceVolume{ { ID: "1ed838bb-2072-42a3-a5f6-d09777a3b023", DeleteOnTermination: false, }, }, Addresses: map[string][]instances.InstanceAddress{ "cluster-1": { { Address: net.ParseIP("10.42.42.179"), Type: types.AddressTypeFixed, }, }, }, SecurityGroups: []gcorecloud.ItemName{ { Name: "cluster-1-7-1234-worker", }, }, CreatorTaskID: &creatorTaskID, ProjectID: 1234, RegionID: 7, Region: "ED-10 Preprod", AvailabilityZone: "nova", } Tasks1 = tasks.TaskResults{ Tasks: []tasks.TaskID{"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"}, } ExpectedClusterPoolListSlice = []pools.ClusterPool{Pool1} ExpectedInstancesSlice = []instances.Instance{Instance1} )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.