client

package
v0.0.0-...-7669b99 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTPRClient

func NewTPRClient(config *rest.Config) (*rest.RESTClient, error)

Types

type AliyunClient

type AliyunClient struct {
	EcsClient *ecs.Client
	SlbClient *slb.Client
	DnsClient *dns.Client
	RegionID  string
	ZoneID    string
}

func NewAliyunClient

func NewAliyunClient(config Config) (*AliyunClient, error)

func NewAliyunClientFormEnv

func NewAliyunClientFormEnv() *AliyunClient

type Config

type Config struct {
	Global struct {
		AccessKeyID     string `json:"accessKeyID"`
		AccessKeySecret string `json:"accessKeySecret"`
		RegionID        string `json:"regionID"`
		ZoneID          string `json:"zoneID"`
	}
}

Jump to

Keyboard shortcuts

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