mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 22:34:56 -04:00
Document exported funcs,types,interfaces and enable check. (#475)
* Include EXC0014 and fix issues. * Include EXC0012 and fix issues. Signed-off-by: Fabian Kammel <fk@edgeless.systems> Co-authored-by: Otto Bittner <cobittner@posteo.net>
This commit is contained in:
parent
c9873f2bfb
commit
0d12e37c96
74 changed files with 337 additions and 78 deletions
|
@ -73,7 +73,7 @@ func (c *Client) GetScalingGroupName(scalingGroupID string) (string, error) {
|
|||
return scaleSet, nil
|
||||
}
|
||||
|
||||
// GetScalingGroupName retrieves the name of a scaling group as needed by the cluster-autoscaler.
|
||||
// GetAutoscalingGroupName retrieves the name of a scaling group as needed by the cluster-autoscaler.
|
||||
func (c *Client) GetAutoscalingGroupName(scalingGroupID string) (string, error) {
|
||||
return c.GetScalingGroupName(scalingGroupID)
|
||||
}
|
||||
|
|
|
@ -7,8 +7,12 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
package constants
|
||||
|
||||
const (
|
||||
AutoscalingStrategyResourceName = "autoscalingstrategy"
|
||||
NodeImageResourceName = "constellation-os"
|
||||
// AutoscalingStrategyResourceName resource name used for AutoscalingStrategy.
|
||||
AutoscalingStrategyResourceName = "autoscalingstrategy"
|
||||
// NodeImageResourceName resource name used for NodeImage.
|
||||
NodeImageResourceName = "constellation-os"
|
||||
// ControlPlaneScalingGroupResourceName resource name used for ControlPlaneScalingGroup.
|
||||
ControlPlaneScalingGroupResourceName = "scalinggroup-controlplane"
|
||||
WorkerScalingGroupResourceName = "scalinggroup-worker"
|
||||
// WorkerScalingGroupResourceName resource name used for WorkerScaling.
|
||||
WorkerScalingGroupResourceName = "scalinggroup-worker"
|
||||
)
|
||||
|
|
|
@ -56,12 +56,14 @@ type diskAPI interface {
|
|||
opts ...gax.CallOption) (*computepb.Disk, error)
|
||||
}
|
||||
|
||||
// Operation describes a generic protobuf operation that can be waited for.
|
||||
type Operation interface {
|
||||
Proto() *computepb.Operation
|
||||
Done() bool
|
||||
Wait(ctx context.Context, opts ...gax.CallOption) error
|
||||
}
|
||||
|
||||
// InstanceGroupManagerScopedListIterator can list the Next InstanceGroupManagersScopedListPair.
|
||||
type InstanceGroupManagerScopedListIterator interface {
|
||||
Next() (compute.InstanceGroupManagersScopedListPair, error)
|
||||
}
|
||||
|
|
|
@ -96,7 +96,7 @@ func (c *Client) GetScalingGroupName(scalingGroupID string) (string, error) {
|
|||
return instanceGroupName, nil
|
||||
}
|
||||
|
||||
// GetScalingGroupName retrieves the name of a scaling group as needed by the cluster-autoscaler.
|
||||
// GetAutoscalingGroupName retrieves the name of a scaling group as needed by the cluster-autoscaler.
|
||||
func (c *Client) GetAutoscalingGroupName(scalingGroupID string) (string, error) {
|
||||
project, zone, instanceGroupName, err := splitInstanceGroupID(scalingGroupID)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue