ncloud

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 9 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

func BoolValue

func BoolValue(v *bool) bool

func Float32

func Float32(v float32) *float32

func Float32Value

func Float32Value(v *float32) float32

func Int

func Int(v int) *int

func Int32

func Int32(v int32) *int32

func Int32String added in v1.5.0

func Int32String(n int32) *string

func Int32Value

func Int32Value(v *int32) int32

func Int64

func Int64(v int64) *int64

func Int64Value

func Int64Value(v *int64) int64

func IntString

func IntString(n int) *string

func IntValue

func IntValue(v *int) int

func String

func String(v string) *string

func StringInterfaceList

func StringInterfaceList(i []interface{}) []*string

func StringList

func StringList(s []string) []*string

func StringListValue

func StringListValue(input []*string) []string

func StringValue

func StringValue(v *string) string

Types

type APIKey

type APIKey struct {
	AccessKey string
	SecretKey string
}

func Keys

func Keys() *APIKey

Keys This is for backward compatibility. Will be deprecated soon.

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *http.Client
	APIKey        *APIKey
	Credentials   *credentials.Credentials
}

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

func (*Configuration) GetCredentials added in v1.3.0

func (c *Configuration) GetCredentials() *credentials.Credentials

func (*Configuration) InitCredentials added in v1.3.0

func (c *Configuration) InitCredentials()

func (*Configuration) ValidCredentials added in v1.3.0

func (c *Configuration) ValidCredentials() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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