mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
717570d00a
Signed-off-by: Malte Poll <mp@edgeless.systems>
62 lines
2.0 KiB
Go
62 lines
2.0 KiB
Go
package client
|
|
|
|
import (
|
|
"context"
|
|
|
|
compute "cloud.google.com/go/compute/apiv1"
|
|
"github.com/googleapis/gax-go/v2"
|
|
computepb "google.golang.org/genproto/googleapis/cloud/compute/v1"
|
|
)
|
|
|
|
type instanceTemplateClient struct {
|
|
*compute.InstanceTemplatesClient
|
|
}
|
|
|
|
func (c *instanceTemplateClient) Close() error {
|
|
return c.InstanceTemplatesClient.Close()
|
|
}
|
|
|
|
func (c *instanceTemplateClient) Delete(ctx context.Context, req *computepb.DeleteInstanceTemplateRequest,
|
|
opts ...gax.CallOption,
|
|
) (Operation, error) {
|
|
return c.InstanceTemplatesClient.Delete(ctx, req, opts...)
|
|
}
|
|
|
|
func (c *instanceTemplateClient) Insert(ctx context.Context, req *computepb.InsertInstanceTemplateRequest,
|
|
opts ...gax.CallOption,
|
|
) (Operation, error) {
|
|
return c.InstanceTemplatesClient.Insert(ctx, req, opts...)
|
|
}
|
|
|
|
type instanceGroupManagersClient struct {
|
|
*compute.InstanceGroupManagersClient
|
|
}
|
|
|
|
func (c *instanceGroupManagersClient) Close() error {
|
|
return c.InstanceGroupManagersClient.Close()
|
|
}
|
|
|
|
func (c *instanceGroupManagersClient) Get(ctx context.Context, req *computepb.GetInstanceGroupManagerRequest,
|
|
opts ...gax.CallOption,
|
|
) (*computepb.InstanceGroupManager, error) {
|
|
return c.InstanceGroupManagersClient.Get(ctx, req, opts...)
|
|
}
|
|
|
|
func (c *instanceGroupManagersClient) SetInstanceTemplate(ctx context.Context, req *computepb.SetInstanceTemplateInstanceGroupManagerRequest,
|
|
opts ...gax.CallOption,
|
|
) (Operation, error) {
|
|
return c.InstanceGroupManagersClient.SetInstanceTemplate(ctx, req, opts...)
|
|
}
|
|
|
|
func (c *instanceGroupManagersClient) CreateInstances(ctx context.Context, req *computepb.CreateInstancesInstanceGroupManagerRequest,
|
|
opts ...gax.CallOption,
|
|
) (Operation, error) {
|
|
return c.InstanceGroupManagersClient.CreateInstances(ctx, req, opts...)
|
|
}
|
|
|
|
func (c *instanceGroupManagersClient) DeleteInstances(ctx context.Context, req *computepb.DeleteInstancesInstanceGroupManagerRequest,
|
|
opts ...gax.CallOption,
|
|
) (Operation, error) {
|
|
return c.InstanceGroupManagersClient.DeleteInstances(ctx, req, opts...)
|
|
}
|