Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdminClient ¶
NewAdminClient returns a new AdminClient, and assigns the given credentials to an alias, and returns an `mc` client for that alias.
Types ¶
type AccountInfo ¶
type AccountInfo struct { ParentUser string `json:"parentUser"` AccountStatus string `json:"accountStatus"` ImpliedPolicy bool `json:"impliedPolicy"` Policy json.RawMessage `json:"policy"` }
AccountInfo is the response body of the info service account call.
type Credentials ¶
type Credentials struct { AccessKey string `xml:"AccessKeyId" json:"accessKey"` SecretKey string `xml:"SecretAccessKey" json:"secretKey"` SessionToken string `xml:"SessionToken" json:"sessionToken"` Expiration time.Time `xml:"Expiration" json:"expiration"` }
Credentials holds access and secret keys.
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process represents a running minio process.
func EnsureRunning ¶
EnsureRunning starts a MinIO process for the bucket (if not already running) and returns running Process.
func (*Process) AdminClient ¶
AdminClient returns admin client for the minio process.
type ServiceAccountArgs ¶
type ServiceAccountArgs struct { Policy json.RawMessage `json:"policy"` // Parsed value from iam/policy.Parse() AccessKey string `json:"accessKey"` SecretKey string `json:"secretKey"` }
ServiceAccountArgs is the request options for adding or modifying a service account.
Click to show internal directories.
Click to hide internal directories.