Documentation ¶
Index ¶
- Constants
- func CreateGroup(c api.Client, group Group) error
- func CreateRole(c api.Client, role Role) error
- func CreateUser(c api.Client, user User) error
- func DeleteCredential(c api.Client, name string) error
- func DeleteGroup(c api.Client, name string) error
- func DeleteRole(c api.Client, name string) error
- func DeleteUser(c api.Client, name string) error
- func UpdateCredential(c api.Client, credential Credential) error
- func UpdateGroup(c api.Client, group Group) error
- func UpdateRole(c api.Client, role Role) error
- func UpdateUser(c api.Client, user User) error
- type Credential
- type Group
- type GroupPermission
- type GroupUser
- type Role
- type RolePermission
- type Secret
- type TemporaryToken
- type User
- type UserPermission
Constants ¶
View Source
const CredentialsEndpoint = "api/v1/credentials"
View Source
const GroupsEndpoint = "api/v1/groups"
View Source
const RolesEndpoint = "api/v1/rbac/roles"
View Source
const UsersEndpoint = "api/v1/users"
Variables ¶
This section is empty.
Functions ¶
func DeleteCredential ¶
Delete an existing credential.
func UpdateCredential ¶
func UpdateCredential(c api.Client, credential Credential) error
Create a new or update an existing credential.
Types ¶
type Credential ¶
type Credential struct { Id string `json:"_id,omitempty"` AccountGUID string `json:"accountGUID,omitempty"` AccountID string `json:"accountID,omitempty"` ApiToken Secret `json:"apiToken,omitempty"` CaCert string `json:"caCert,omitempty"` Created string `json:"created,omitempty"` Description string `json:"description,omitempty"` External bool `json:"external,omitempty"` LastModified string `json:"lastModified,omitempty"` Owner string `json:"owner,omitempty"` RoleArn string `json:"roleArn,omitempty"` Secret Secret `json:"secret,omitempty"` SkipVerify bool `json:"skipVerify,omitempty"` Tokens []TemporaryToken `json:"tokens,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` UseAWSRole bool `json:"useAWSRole,omitempty"` UseSTSRegionalEndpoint bool `json:"useSTSRegionalEndpoint,omitempty"` }
func GetCredential ¶
func GetCredential(c api.Client, name string) (*Credential, error)
Get a specific credential.
func ListCredentials ¶
func ListCredentials(c api.Client) ([]Credential, error)
Get all credentials.
type Group ¶
type Group struct { Id string `json:"groupId,omitempty"` // Group identifier in the Azure SAML identification process. LdapGroup bool `json:"ldapGroup,omitempty"` Name string `json:"groupName,omitempty"` OauthGroup bool `json:"oauthGroup,omitempty"` OidcGroup bool `json:"oidcGroup,omitempty"` Permissions []GroupPermission `json:"permissions,omitempty"` Role string `json:"role,omitempty"` SamlGroup bool `json:"samlGroup,omitempty"` Users []GroupUser `json:"user,omitempty"` }
type GroupPermission ¶
type Role ¶
type Role struct { Description string `json:"description,omitempty"` Name string `json:"name,omitempty"` Permissions []RolePermission `json:"perms,omitempty"` }
type RolePermission ¶
type TemporaryToken ¶
type User ¶
type User struct { AuthType string `json:"authType,omitempty"` Password string `json:"password,omitempty"` Permissions []UserPermission `json:"permissions,omitempty"` Role string `json:"role,omitempty"` Username string `json:"username,omitempty"` }
type UserPermission ¶
Click to show internal directories.
Click to hide internal directories.