oss

package
v0.12.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountTypeRAMUser = "ram_user"
	AccountTypeRAMRole = "ram_role"
)

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(pc *domain.ProviderConfig, crypto domain.Crypto) *config

func NewProvider

func NewProvider(typeName string, encryptor encryptor) *provider

Types

type Credentials

type Credentials struct {
	AccessKeyID     string `mapstructure:"access_key_id" json:"access_key_id"`
	AccessKeySecret string `mapstructure:"access_key_secret" json:"access_key_secret"`
	RAMRole         string `mapstructure:"ram_role" json:"ram_role"`
	RegionID        string `mapstructure:"region_id" json:"region_id"`
}

type OSSClient

type OSSClient struct {
	// contains filtered or unexported fields
}

type Policy

type Policy struct {
	Version   string            `json:"Version"`
	Statement []PolicyStatement `json:"Statement"`
}

type PolicyStatement

type PolicyStatement struct {
	Action    []string `json:"Action"`
	Effect    string   `json:"Effect"`
	Principal []string `json:"Principal"`
	Resource  []string `json:"Resource"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL