Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UploaderConfig ¶
type UploaderConfig struct { // Azure TenantId。 TenantId string `json:"tenantId"` // Azure ClientId。 ClientId string `json:"clientId"` // Azure ClientSecret。 ClientSecret string `json:"clientSecret"` // Azure 主权云环境。 CloudName string `json:"cloudName,omitempty"` // Key Vault 名称。 KeyVaultName string `json:"keyvaultName"` }
type UploaderProvider ¶
type UploaderProvider struct {
// contains filtered or unexported fields
}
func NewUploader ¶
func NewUploader(config *UploaderConfig) (*UploaderProvider, error)
func (*UploaderProvider) Upload ¶
func (u *UploaderProvider) Upload(ctx context.Context, certPem string, privkeyPem string) (res *uploader.UploadResult, err error)
Click to show internal directories.
Click to hide internal directories.