Versions in this module Expand all Collapse all v0 v0.1.4 Nov 27, 2023 Changes in this version + func DownloadObject(ctx context.Context, bucketName string, path string, fileName string) string + func FecthZones(ctx context.Context) ([]string, error) + func GetDisk(ctx context.Context, diskId string) (*compute.Disk, error) + func GetImage(ctx context.Context, ImageId string) (*compute.Image, error) + func GetInstance(ctx context.Context, instaceId string) (*computepb.Instance, error) + func GetLocalTime(timestamp string) (string, error) + func GetPreSignedUrl(ctx context.Context, bucketName string, path string, fileName string) string + func GetResourceFromURL(url string) string + func GetSnapshot(ctx context.Context, snapshotID string) (*compute.Snapshot, error) + type DiskResp struct + CreationTime string + Name string + Size string + Status string + Type string + Zone string + func ListDisks(ctx context.Context) ([]DiskResp, error) + type ImageResp struct + CreatedAt string + Location string + Name string + Status string + func ListImages(ctx context.Context) ([]ImageResp, error) + type ServiceAccount struct + ProjectID string + func FetchProjectID(filePath string) (ServiceAccount, error) + type SnapshotResp struct + CreatedAt string + Name string + Size string + func ListSnapshots(ctx context.Context) ([]SnapshotResp, error) + type StorageObjResp struct + LastModified string + Name string + ObjectType string + Size string + SizeInBytes int64 + StorageClass string + func GetInfoAboutBucket(ctx context.Context) ([]StorageObjResp, error) + type StorageResp struct + BucketName string + CreationTime string + Region string + func ListBuckets(ctx context.Context) ([]StorageResp, error) + type VMResp struct + AvailabilityZone string + InstanceId string + InstanceState string + InstanceType string + LaunchTime string + MonitoringState string + PublicDNS string + func ListInstances(ctx context.Context) ([]VMResp, error)