Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogFatal = iota LogError LogWarn LogInfo )
View Source
const Version = "v1"
Variables ¶
View Source
var ( SchemeHttp = "http" SchemeHttps = "https" MethodGet = "GET" MethodPut = "PUT" MethodPost = "POST" MethodDelete = "DELETE" MethodPatch = "PATCH" MethodHead = "HEAD" )
Functions ¶
This section is empty.
Types ¶
type Credential ¶
func NewCredentials ¶
func NewCredentials(accessKey, secretKey string) *Credential
type DefaultLogger ¶
type DefaultLogger struct {
Level int
}
func NewDefaultLogger ¶
func NewDefaultLogger(level int) *DefaultLogger
func (DefaultLogger) Log ¶
func (logger DefaultLogger) Log(level int, message ...interface{})
type DummyLogger ¶
type DummyLogger struct { }
func NewDummyLogger ¶
func NewDummyLogger() *DummyLogger
func (DummyLogger) Log ¶
func (logger DummyLogger) Log(level int, message ...interface{})
type NCloudClient ¶
type NCloudClient struct { Credential Credential Config Config ServiceName string Revision string Logger Logger }
type NCloudRequest ¶
func (NCloudRequest) GetMethod ¶
func (n NCloudRequest) GetMethod() string
func (NCloudRequest) GetPath ¶
func (n NCloudRequest) GetPath() string
type RefreshStatus ¶
type RefreshStatus int
const ( RefreshStatusRuning RefreshStatus = iota RefreshStatusSuccess RefreshStatusFailed )
type RequestInterface ¶
Click to show internal directories.
Click to hide internal directories.