Documentation ¶
Index ¶
- func AppendIfMissing(slice []string, s string) []string
- func CreateErrorFromValue(statusCode int, v []byte) error
- func FromBToS(pointer *[]byte) string
- func NewServicePrincipalTokenFromCredentials(c map[string]string, scope string) (*adal.ServicePrincipalToken, error)
- func S(input string) *string
- func ToI(pointer *int32) int
- func ToJSON(v interface{}) (string, error)
- func ToS(pointer *string) string
- type AKSError
- type AzureServerError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIfMissing ¶
AppendIfMissing appends string to a slice if it's not contains it
func CreateErrorFromValue ¶
CreateErrorFromValue creates error from azure response
func NewServicePrincipalTokenFromCredentials ¶
func NewServicePrincipalTokenFromCredentials(c map[string]string, scope string) (*adal.ServicePrincipalToken, error)
NewServicePrincipalTokenFromCredentials creates a new ServicePrincipalToken using values of the passed credentials map.
Types ¶
type AKSError ¶
AKSError describes a client error
type AzureServerError ¶
type AzureServerError struct {
Message string `json:"message"`
}
AzureServerError describes an Azure error
Click to show internal directories.
Click to hide internal directories.