Documentation ¶
Index ¶
- func API(server *ServerConfig)
- func AddGroup(group madmin.GroupAddRemove, server *ServerConfig) error
- func AddPolicy(policyName string, server *ServerConfig) error
- func MakeBucket(bucketName string, server *ServerConfig) error
- func SetPolicy(policySet *PolicySet, server *ServerConfig) error
- type HealthStatus
- type Policy
- type PolicySet
- type ServerConfig
- type User
- type UserGroup
- type UserStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGroup ¶
func AddGroup(group madmin.GroupAddRemove, server *ServerConfig) error
AddGroup adds new group
func AddPolicy ¶
func AddPolicy(policyName string, server *ServerConfig) error
AddPolicy adds a new policy
func MakeBucket ¶
func MakeBucket(bucketName string, server *ServerConfig) error
MakeBucket returns a new bucket
func SetPolicy ¶
func SetPolicy(policySet *PolicySet, server *ServerConfig) error
Types ¶
type HealthStatus ¶
type HealthStatus struct {
API string `json:"api, omitempty"`
}
HealthStatus checks health of api
type PolicySet ¶
type PolicySet struct { PolicyName string `json:"policyName,omitempty"` PolicyString string `json:"policyString,omitempty"` EntityName string `json:"entityName,omitempty"` IsGroup string `json:"isGroup,omitempty"` }
PolicySet set policy
type ServerConfig ¶
type ServerConfig struct { MinioConfig *mconfig.MinioConfig Router *mux.Router MadmClnt *madmin.AdminClient MinioClnt *minio.Client }
ServerConfig server config and status
type User ¶
type User struct { AccessKey string `json:"acessKey,omitempty"` SecretKey string `json:"secretKey,omitempty"` }
User user data
type UserGroup ¶
type UserGroup struct { AccessKey string `json:"accessKey,omitempty"` Group string `json:"group,omitempty"` }
UserGroup User status
type UserStatus ¶
type UserStatus struct { AccessKey string `json:"accessKey,omitempty"` Status madmin.AccountStatus `json:"status,omitempty"` }
UserStatus User status
Click to show internal directories.
Click to hide internal directories.