Documentation ¶
Index ¶
- Constants
- type CloudCredentials
- func (c *CloudCredentials) EcsV1Client() (*golangsdk.ServiceClient, error)
- func (c *CloudCredentials) EcsV21Client() (*golangsdk.ServiceClient, error)
- func (c *CloudCredentials) EvsV1Client() (*golangsdk.ServiceClient, error)
- func (c *CloudCredentials) EvsV21Client() (*golangsdk.ServiceClient, error)
- func (c *CloudCredentials) EvsV2Client() (*golangsdk.ServiceClient, error)
- func (c *CloudCredentials) SFSTurboV1Client() (*golangsdk.ServiceClient, error)
- func (c *CloudCredentials) SFSV2Client() (*golangsdk.ServiceClient, error)
- func (c *CloudCredentials) Validate() error
Constants ¶
View Source
const (
UserAgent = "huaweicloud-kubernetes-csi"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudCredentials ¶
type CloudCredentials struct { Global struct { Cloud string `gcfg:"cloud"` AuthURL string `gcfg:"auth-url"` Region string `gcfg:"region"` AccessKey string `gcfg:"access-key"` SecretKey string `gcfg:"secret-key"` ProjectID string `gcfg:"project-id"` Idc bool `gcfg:"idc"` } Vpc struct { ID string `gcfg:"id"` SubnetID string `gcfg:"subnet-id"` SecurityGroupID string `gcfg:"security-group-id"` } CloudClient *golangsdk.ProviderClient }
CloudCredentials define
func LoadConfig ¶
func LoadConfig(configFile string) (*CloudCredentials, error)
LoadConfig from file
func (*CloudCredentials) EcsV1Client ¶
func (c *CloudCredentials) EcsV1Client() (*golangsdk.ServiceClient, error)
func (*CloudCredentials) EcsV21Client ¶
func (c *CloudCredentials) EcsV21Client() (*golangsdk.ServiceClient, error)
func (*CloudCredentials) EvsV1Client ¶
func (c *CloudCredentials) EvsV1Client() (*golangsdk.ServiceClient, error)
func (*CloudCredentials) EvsV21Client ¶
func (c *CloudCredentials) EvsV21Client() (*golangsdk.ServiceClient, error)
func (*CloudCredentials) EvsV2Client ¶
func (c *CloudCredentials) EvsV2Client() (*golangsdk.ServiceClient, error)
func (*CloudCredentials) SFSTurboV1Client ¶
func (c *CloudCredentials) SFSTurboV1Client() (*golangsdk.ServiceClient, error)
func (*CloudCredentials) SFSV2Client ¶
func (c *CloudCredentials) SFSV2Client() (*golangsdk.ServiceClient, error)
func (*CloudCredentials) Validate ¶
func (c *CloudCredentials) Validate() error
Click to show internal directories.
Click to hide internal directories.