Documentation ¶
Index ¶
- Variables
- type GceConfig
- type GcpSvcWrapper
- func (s *GcpSvcWrapper) AddRoute(name string, ip string) error
- func (s *GcpSvcWrapper) AttachDisk(vol string, instance string, device string) error
- func (s *GcpSvcWrapper) CreateDisk(vol string, size int64) error
- func (s *GcpSvcWrapper) DelRoute(name string) error
- func (s *GcpSvcWrapper) DetatchDisk(instance string, device string) error
- func (s *GcpSvcWrapper) ListInstances() ([]*googlecloud.Instance, error)
- func (s *GcpSvcWrapper) TagNewInstance(name string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// OperationTimeout represents Maximum time(Second) to wait for operation ready.
OperationTimeout = 180
)
Functions ¶
This section is empty.
Types ¶
type GcpSvcWrapper ¶
type GcpSvcWrapper struct { Project string Zone string Service *googlecloud.Service }
func GetService ¶
func (*GcpSvcWrapper) AttachDisk ¶
func (s *GcpSvcWrapper) AttachDisk(vol string, instance string, device string) error
func (*GcpSvcWrapper) CreateDisk ¶
func (s *GcpSvcWrapper) CreateDisk(vol string, size int64) error
func (*GcpSvcWrapper) DelRoute ¶
func (s *GcpSvcWrapper) DelRoute(name string) error
func (*GcpSvcWrapper) DetatchDisk ¶
func (s *GcpSvcWrapper) DetatchDisk(instance string, device string) error
func (*GcpSvcWrapper) ListInstances ¶
func (s *GcpSvcWrapper) ListInstances() ([]*googlecloud.Instance, error)
func (*GcpSvcWrapper) TagNewInstance ¶
func (s *GcpSvcWrapper) TagNewInstance(name string) error
Click to show internal directories.
Click to hide internal directories.