Documentation
¶
Index ¶
Constants ¶
View Source
const ( // SecretTypeAzure azure secret type SecretTypeAzure corev1.SecretType = "azure" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
Config *Config
LoadBalancer loadBalancerClient
VM virtualMachineClient
NetworkInterface networkInterfaceClient
SecurityGroup securityGroupClient
PublicIPAddress publicIPAddressClient
}
Client defines the Azure clients we need
func NewClient ¶
func NewClient(storeLister *core.StoreLister) (*Client, error)
NewClient returns a new Azure Client
func NewClientWithConfig ¶
NewClientWithConfig returns a Azure Client by config
type Config ¶
type Config struct {
SubscriptionID string `json:"subscriptionID"`
ClientID string `json:"clientID"`
ClientSecret string `json:"clientSecret"`
TenantID string `json:"tenantID"`
}
Config defines the config data required by Azure
type ServiceError ¶
ServiceError for azure service return error
func NewServiceError ¶
func NewServiceError(code string, message string) *ServiceError
NewServiceError create a service error
func ParseServiceError ¶
func ParseServiceError(err error) *ServiceError
ParseServiceError parse azure error to ServiceError struct if the err is not service error, will return nil
func (*ServiceError) Error ¶
func (e *ServiceError) Error() string
Click to show internal directories.
Click to hide internal directories.