Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TODO Put this url config via app args // ManagerServiceURL refers to the URL of the Manager service ManagerServiceURL = os.Getenv("MANAGER_SERVICE_URL") ErrCustomerNotfound = errors.New("customer not found") ErrForbidden = errors.New("Forbidden") ErrRoleBindingNotFound = errors.New("role-binding not found") )
Functions ¶
This section is empty.
Types ¶
type CustomerClient ¶
CustomerClient interface defines Customer APIs
func NewCustomerClient ¶
func NewCustomerClient(serverURL string) CustomerClient
NewCustomerClient makes a client calling Customer APIs
type ManagerClient ¶
type ManagerClient interface { // Query Manager service to get all buckets of the tenant ListBuckets() ([]model.Bucket, error) // Create a bucket object at Manager service CreateBucket(bucketName string) (*model.Bucket, error) DeleteBucket(bucketName string) error UpdateACLs(bucketName string, acls authz.ACLList) (*model.Bucket, error) ListRoleBindings() ([]rbac.RoleBinding, error) CreateRoleBinding(roleBinding rbac.RoleBinding) (*rbac.RoleBinding, error) DeleteRoleBinding(name string) error ListRoles() ([]rbac.Role, error) }
ManagerClient interface defines Manager APIs
Click to show internal directories.
Click to hide internal directories.