Documentation ¶
Overview ¶
*
- Copyright (c) 2019-present Future Corporation *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright (c) 2019-present Future Corporation *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright (c) 2019-present Future Corporation *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright (c) 2019-present Future Corporation *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
Index ¶
- Constants
- func GetCurrentNodeCount(ctx context.Context, projectID, targetLabel string) (map[string]int64, error)
- func GetOriginalNodePoolSize(ctx context.Context, projectID, targetLabel, labelValue string) (map[string]int64, error)
- func SetLableIfNoLabel(ctx context.Context, projectID, targetLabel string) error
- type ComputeEngineCall
- type GKENodePoolCall
- type InstanceGroupCall
- type SQLCall
Constants ¶
View Source
const CallInterval = 50 * time.Millisecond
API call interval
Variables ¶
This section is empty.
Functions ¶
func GetCurrentNodeCount ¶
func GetCurrentNodeCount(ctx context.Context, projectID, targetLabel string) (map[string]int64, error)
GetCurrentNodeCount returns map that key=NodePoolName and value=currentSize
Types ¶
type ComputeEngineCall ¶
type ComputeEngineCall struct {
// contains filtered or unexported fields
}
func ComputeEngine ¶
func ComputeEngine(ctx context.Context, projectID string) *ComputeEngineCall
func (*ComputeEngineCall) Filter ¶
func (r *ComputeEngineCall) Filter(labelName, value string) *ComputeEngineCall
type GKENodePoolCall ¶
type GKENodePoolCall struct {
// contains filtered or unexported fields
}
func GKENodePool ¶
func GKENodePool(ctx context.Context, projectID string) *GKENodePoolCall
func (*GKENodePoolCall) Filter ¶
func (r *GKENodePoolCall) Filter(labelName, value string) *GKENodePoolCall
type InstanceGroupCall ¶
type InstanceGroupCall struct {
// contains filtered or unexported fields
}
func InstanceGroup ¶
func InstanceGroup(ctx context.Context, projectID string) *InstanceGroupCall
func (*InstanceGroupCall) Filter ¶
func (r *InstanceGroupCall) Filter(labelName, value string) *InstanceGroupCall
Click to show internal directories.
Click to hide internal directories.