You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/configuration.go

38 lines
939 B

/*
* vpc
*
* VPC Network 관련 API<br/>https://ncloud.apigw.ntruss.com/vpc/v2
*
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package vpc
import (
"github.com/NaverCloudPlatform/ncloud-sdk-go-v2/ncloud"
"os"
)
// contextKeys are used to identify the type of value in the context.
// Since these are string, it is possible to get a short description of the
// context key for logging and debugging using key.String().
type contextKey string
func (c contextKey) String() string {
return "auth " + string(c)
}
func NewConfiguration(apiKey *ncloud.APIKey) *ncloud.Configuration {
cfg := &ncloud.Configuration{
BasePath: "https://ncloud.apigw.ntruss.com/vpc/v2",
DefaultHeader: make(map[string]string),
UserAgent: "vpc/1.0.0/go",
APIKey: apiKey,
}
if os.Getenv("NCLOUD_API_GW") != "" {
cfg.BasePath = os.Getenv("NCLOUD_API_GW") + "/vpc/v2"
}
return cfg
}