Documentation
¶
Index ¶
- func SignIn(ctx context.Context, account string) (string, error)
- type Account
- type AuthResponse
- type BaseType
- type Cli
- func (cli *Cli) AddUserToGroup(ctx context.Context, group, role, user string) error
- func (cli *Cli) AddUserToVault(ctx context.Context, vault, user, permissions string) error
- func (cli *Cli) GetAccount(ctx context.Context) (Account, error)
- func (cli *Cli) GetSignedInAccount(ctx context.Context) (AuthResponse, error)
- func (cli *Cli) ListGroupMembers(ctx context.Context, group string) ([]User, error)
- func (cli *Cli) ListGroups(ctx context.Context) ([]Group, error)
- func (cli *Cli) ListUsers(ctx context.Context) ([]User, error)
- func (cli *Cli) ListVaultGroups(ctx context.Context, vaultId string) ([]Group, error)
- func (cli *Cli) ListVaultMembers(ctx context.Context, vaultId string) ([]User, error)
- func (cli *Cli) ListVaults(ctx context.Context) ([]Vault, error)
- func (cli *Cli) RemoveUserFromGroup(ctx context.Context, group, user string) error
- func (cli *Cli) RemoveUserFromVault(ctx context.Context, vault, user, permissions string) error
- type Group
- type User
- type Vault
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthResponse ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
1Password CLI instance.
func (*Cli) AddUserToGroup ¶
AddUserToGroup adds user to group.
func (*Cli) AddUserToVault ¶ added in v0.0.7
AddUserToVault adds user to vault.
func (*Cli) GetAccount ¶
GetAccount gets information about the account.
func (*Cli) GetSignedInAccount ¶
func (cli *Cli) GetSignedInAccount(ctx context.Context) (AuthResponse, error)
GetSignedInAccount gets information about the signed in account.
func (*Cli) ListGroupMembers ¶
ListGroupMembers lists all members of a group.
func (*Cli) ListGroups ¶
ListGroups lists all groups in the account.
func (*Cli) ListVaultGroups ¶
ListVaultGroups lists all groups that have access to a vault.
func (*Cli) ListVaultMembers ¶
ListVaultMembers lists all users that have access to a vault.
func (*Cli) ListVaults ¶
ListVaults lists all vaults in the account.
func (*Cli) RemoveUserFromGroup ¶
RemoveUserFromGroup removes user from group.
func (*Cli) RemoveUserFromVault ¶ added in v0.0.7
RemoveUserFromVault removes user from vault. This will error out if the principal's grant was inherited via a group membership with permissions to the vault. 1Password CLI errors with "the accessor doesn't have any permissions" if the grant is inherited from a group. Avoid mixing group and individual grants to vaults when using just-in-time provisioning.