Documentation
¶
Index ¶
Constants ¶
View Source
const ( LogFatal = iota LogError LogWarn LogInfo )
View Source
const Version = "v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
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 }
func (NCloudClient) Send ¶
func (c NCloudClient) Send(method, path, data string) ([]byte, error)
type NCloudRequest ¶
func (NCloudRequest) GetMethod ¶
func (n NCloudRequest) GetMethod() string
func (NCloudRequest) GetPath ¶
func (n NCloudRequest) GetPath() string
type Signer ¶
type Signer struct {
Credentials Credential
}
func NewSigner ¶
func NewSigner(credsProvider Credential) *Signer
Source Files
¶
Click to show internal directories.
Click to hide internal directories.