googlestorage

package
v0.0.0-...-4f62784 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachDiskdictnoaryconvert

func AttachDiskdictnoaryconvert(option AttachDisk, AttachDiskjsonmap map[string]interface{})

func CreateDiskdictnoaryconvert

func CreateDiskdictnoaryconvert(option Creatdisk, Creatdiskjsonmap map[string]interface{})

func CreateSnapshotdictnoaryconvert

func CreateSnapshotdictnoaryconvert(option Snapshot, CreateSnapshotjsonmap map[string]interface{})

Types

type AttachDisk

type AttachDisk struct {
	Source             string            `json:"source"`
	DeviceName         string            `json:"deviceName"`
	AutoDelete         bool              `json:"autoDelete"`
	Boot               bool              `json:"boot"`
	DiskEncryptionKeys DiskEncryptionKey `json:"diskEncryptionKey"`
	Index              int               `json:"index"`
	Interface          string            `json:"interface"`
	Kind               string            `json:"kind"`
	Licenses           []string          `json:"licenses"`
	Mode               string            `json:"mode"`
	Type               string            `json:"type"`
	InitializeParam    InitializeParams  `json:"initializeParams"`
}

type Creatdisk

type Creatdisk struct {
	Name                         string                      `json:"name"`
	Type                         string                      `json:"type"`
	Zone                         string                      `json:"zone"`
	SizeGb                       string                      `json:"sizeGb"`
	SourceImageEncryptionKeys    SourceImageEncryptionKey    `json:"sourceImageEncryptionKey"`
	DiskEncryptionKeys           DiskEncryptionKey           `json:"diskEncryptionKey"`
	SourceSnapshotEncryptionKeys SourceSnapshotEncryptionKey `json:"sourceSnapshotEncryptionKey"`
	Licenses                     []string                    `json:"licenses"`
	Users                        []string                    `json:"users"`

	CreationTimestamp   string `json:"creationTimestamp"`
	Description         string `json:"description"`
	ID                  string `json:"id"`
	Kind                string `json:"kind"`
	LabelFingerprint    string `json:"labelFingerprint"`
	SourceSnapshotID    string `json:"sourceSnapshotId"`
	Status              string `json:"status"`
	LastAttachTimestamp string `json:"lastAttachTimestamp"`
	LastDetachTimestamp string `json:"lastDetachTimestamp"`
	Options             string `json:"options"`
	SelfLink            string `json:"selfLink"`
	SourceImage         string `json:"sourceImage"`
	SourceImageID       string `json:"sourceImageId"`
	SourceSnapshot      string `json:"sourceSnapshot"`
}

type DiskEncryptionKey

type DiskEncryptionKey struct {
	RawKey string `json:"rawKey"`
	Sha256 string `json:"sha256"`
}

type GoogleStorage

type GoogleStorage struct {
	Name   string `json:"name"`
	Type   string `json:"type"`
	Zone   string `json:"zone"`
	SizeGb string `json:"sizeGb"`
}

func (*GoogleStorage) AttachDisk

func (googlestorage *GoogleStorage) AttachDisk(request interface{}) (resp interface{}, err error)

func (*GoogleStorage) CreateDisk

func (googlestorage *GoogleStorage) CreateDisk(request interface{}) (resp interface{}, err error)

func (*GoogleStorage) CreateSnapshot

func (googlestorage *GoogleStorage) CreateSnapshot(request interface{}) (resp interface{}, err error)

func (*GoogleStorage) DeleteDisk

func (googlestorage *GoogleStorage) DeleteDisk(request interface{}) (resp interface{}, err error)

func (*GoogleStorage) DeleteSnapshot

func (googlestorage *GoogleStorage) DeleteSnapshot(request interface{}) (resp interface{}, err error)

func (*GoogleStorage) DetachDisk

func (googlestorage *GoogleStorage) DetachDisk(request interface{}) (resp interface{}, err error)

type InitializeParams

type InitializeParams struct {
	DiskName                  string                   `json:"diskName"`
	DiskType                  string                   `json:"diskType"`
	DiskSizeGb                string                   `json:"diskSizeGb"`
	SourceImage               string                   `json:"sourceImage"`
	SourceImageEncryptionKeys SourceImageEncryptionKey `json:"sourceImageEncryptionKey"`
}

type Snapshot

type Snapshot struct {
	Name                     string                  `json:"name"`
	CreationTimestamp        string                  `json:"creationTimestamp"`
	Description              string                  `json:"description"`
	DiskSizeGb               string                  `json:"diskSizeGb"`
	ID                       string                  `json:"id"`
	Kind                     string                  `json:"kind"`
	LabelFingerprint         string                  `json:"labelFingerprint"`
	SelfLink                 string                  `json:"selfLink"`
	SourceDisk               string                  `json:"sourceDisk"`
	SourceDiskID             string                  `json:"sourceDiskId"`
	Status                   string                  `json:"status"`
	StorageBytes             string                  `json:"storageBytes"`
	StorageBytesStatus       string                  `json:"storageBytesStatus"`
	Licenses                 []string                `json:"licenses"`
	SourceDiskEncryptionKeys SourceDiskEncryptionKey `json:"sourceDiskEncryptionKey"`
	SnapshotEncryptionKeys   SnapshotEncryptionKey   `json:"snapshotEncryptionKey"`
}

type SnapshotEncryptionKey

type SnapshotEncryptionKey struct {
	RawKey string `json:"rawKey"`
	Sha256 string `json:"sha256"`
}

type SourceDiskEncryptionKey

type SourceDiskEncryptionKey struct {
	RawKey string `json:"rawKey"`
	Sha256 string `json:"sha256"`
}

type SourceImageEncryptionKey

type SourceImageEncryptionKey struct {
	RawKey string `json:"rawKey"`
	Sha256 string `json:"sha256"`
}

type SourceSnapshotEncryptionKey

type SourceSnapshotEncryptionKey struct {
	RawKey string `json:"rawKey"`
	Sha256 string `json:"sha256"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL