Documentation ¶
Index ¶
- func StopAll()
- type AddServiceAccountResp
- type AdminClient
- func (c *AdminClient) AddAlias(ctx context.Context) error
- func (c *AdminClient) AddServiceAccount(ctx context.Context, account, accessKey, secretKey string, policy []byte) (*AddServiceAccountResp, error)
- func (c *AdminClient) DeleteServiceAccount(ctx context.Context, accessKey string) error
- func (c *AdminClient) ExportIAM(ctx context.Context) ([]byte, error)
- func (c *AdminClient) InfoServiceAccount(ctx context.Context, accessKey string) (*InfoServiceAccountResp, error)
- func (c *AdminClient) RemoveAlias(ctx context.Context) error
- func (c *AdminClient) ServiceStop(ctx context.Context) error
- func (c *AdminClient) UpdateServiceAccount(ctx context.Context, account, secretKey string, policy []byte) error
- type InfoServiceAccountResp
- type Process
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddServiceAccountResp ¶
type AddServiceAccountResp struct { AccessKey string `json:"accessKey,omitempty"` SecretKey string `json:"secretKey,omitempty"` SessionToken string `json:"sessionToken,omitempty"` }
AddServiceAccountResp is the response body of the add service account call.
type AdminClient ¶
type AdminClient struct {
// contains filtered or unexported fields
}
AdminClient represents minio client.
func (*AdminClient) AddAlias ¶
func (c *AdminClient) AddAlias(ctx context.Context) error
AddAlias adds a new alias to configuration file.
func (*AdminClient) AddServiceAccount ¶
func (c *AdminClient) AddServiceAccount(ctx context.Context, account, accessKey, secretKey string, policy []byte) (*AddServiceAccountResp, error)
AddServiceAccount adds a new service account.
func (*AdminClient) DeleteServiceAccount ¶
func (c *AdminClient) DeleteServiceAccount(ctx context.Context, accessKey string) error
DeleteServiceAccount removes a service account.
func (*AdminClient) ExportIAM ¶
func (c *AdminClient) ExportIAM(ctx context.Context) ([]byte, error)
ExportIAM exports IAM data.
func (*AdminClient) InfoServiceAccount ¶
func (c *AdminClient) InfoServiceAccount(ctx context.Context, accessKey string) (*InfoServiceAccountResp, error)
InfoServiceAccount returns a service account info.
func (*AdminClient) RemoveAlias ¶
func (c *AdminClient) RemoveAlias(ctx context.Context) error
RemoveAlias removes an alias from configuration file.
func (*AdminClient) ServiceStop ¶
func (c *AdminClient) ServiceStop(ctx context.Context) error
ServiceStop stops the MinIO cluster.
func (*AdminClient) UpdateServiceAccount ¶
func (c *AdminClient) UpdateServiceAccount(ctx context.Context, account, secretKey string, policy []byte) error
UpdateServiceAccount modifies an existing service account.
type InfoServiceAccountResp ¶
type InfoServiceAccountResp struct { AccountStatus string `json:"accountStatus"` ParentUser string `json:"parentUser"` Policy map[string]any `json:"policy"` }
InfoServiceAccountResp is the response body of the info service account call.
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 ¶
func (p *Process) AdminClient() (*AdminClient, error)
AdminClient returns admin client for the minio process.