Versions in this module Expand all Collapse all v0 v0.7.0 Nov 24, 2023 Changes in this version + type ResourceTypeSchema struct + Resource json.RawMessage + Secret json.RawMessage + type SecretDataTOTP struct + Algorithm string + Digits int + Period int + SecretKey string + type SecretDataTypePasswordDescriptionTOTP struct + Description string + Password string + TOTP SecretDataTOTP + type SecretDataTypeTOTP struct + TOTP SecretDataTOTP v0.6.1 Aug 10, 2023 v0.6.0 Apr 19, 2023 Changes in this version + type MFAChallenge struct + Provider MFAProviders + type MFAChallengeResponse struct + TOTP string v0.5.8 Dec 30, 2022 v0.5.7 Apr 13, 2022 v0.5.6 Apr 7, 2022 v0.5.5 Feb 22, 2022 Changes in this version + const UserLocaleENUK + var ErrAPIResponseErrorStatusCode = errors.New("Error API JSON Response Status") + var ErrAPIResponseUnknownStatusCode = errors.New("Unknown API JSON Response Status") + type APIHeader struct + Action string + Code int + ID string + Message string + Servertime int + Status string + URL string + type APIResponse struct + Body json.RawMessage + Header APIHeader + type ARO struct + type AuthenticationToken struct + Token string + type Avatar struct + Adapter string + Created *Time + Extension string + Filename string + Filesize int + ForeignKey string + Hash string + ID string + MimeType string + Model string + Modified *Time + Path string + URL *URL + UserID string + type Client struct + Debug bool + MFACallback func(ctx context.Context, c *Client, res *APIResponse) (http.Cookie, error) + func NewClient(httpClient *http.Client, ...) (*Client, error) + func (c *Client) CheckSession(ctx context.Context) bool + func (c *Client) CreateComment(ctx context.Context, resourceID string, comment Comment) (*Comment, error) + func (c *Client) CreateFavorite(ctx context.Context, resourceID string) (*Favorite, error) + func (c *Client) CreateFolder(ctx context.Context, folder Folder) (*Folder, error) + func (c *Client) CreateGroup(ctx context.Context, group Group) (*Group, error) + func (c *Client) CreateResource(ctx context.Context, resource Resource) (*Resource, error) + func (c *Client) CreateUser(ctx context.Context, user User) (*User, error) + func (c *Client) DecryptMessage(message string) (string, error) + func (c *Client) DeleteComment(ctx context.Context, commentID string) error + func (c *Client) DeleteFavorite(ctx context.Context, favoriteID string) error + func (c *Client) DeleteFolder(ctx context.Context, folderID string) error + func (c *Client) DeleteGroup(ctx context.Context, groupID string) error + func (c *Client) DeleteResource(ctx context.Context, resourceID string) error + func (c *Client) DeleteUser(ctx context.Context, userID string) error + func (c *Client) DeleteUserDryrun(ctx context.Context, userID string) error + func (c *Client) DoCustomRequest(ctx context.Context, method, path, version string, body interface{}, ...) (*APIResponse, error) + func (c *Client) DoCustomRequestAndReturnRawResponse(ctx context.Context, method, path, version string, body interface{}, ...) (*http.Response, *APIResponse, error) + func (c *Client) EncryptMessage(message string) (string, error) + func (c *Client) EncryptMessageWithPublicKey(publickey, message string) (string, error) + func (c *Client) GetComments(ctx context.Context, resourceID string, opts *GetCommentsOptions) ([]Comment, error) + func (c *Client) GetFolder(ctx context.Context, folderID string, opts *GetFolderOptions) (*Folder, error) + func (c *Client) GetFolders(ctx context.Context, opts *GetFoldersOptions) ([]Folder, error) + func (c *Client) GetGPGKey(ctx context.Context, gpgkeyID string) (*GPGKey, error) + func (c *Client) GetGPGKeys(ctx context.Context, opts *GetGPGKeysOptions) ([]GPGKey, error) + func (c *Client) GetGroup(ctx context.Context, groupID string) (*Group, error) + func (c *Client) GetGroups(ctx context.Context, opts *GetGroupsOptions) ([]Group, error) + func (c *Client) GetHealthCheckStatus(ctx context.Context) (string, error) + func (c *Client) GetMe(ctx context.Context) (*User, error) + func (c *Client) GetPublicKey(ctx context.Context) (string, string, error) + func (c *Client) GetResource(ctx context.Context, resourceID string) (*Resource, error) + func (c *Client) GetResourcePermissions(ctx context.Context, resourceID string) ([]Permission, error) + func (c *Client) GetResourceType(ctx context.Context, typeID string) (*ResourceType, error) + func (c *Client) GetResourceTypes(ctx context.Context, opts *GetResourceTypesOptions) ([]ResourceType, error) + func (c *Client) GetResources(ctx context.Context, opts *GetResourcesOptions) ([]Resource, error) + func (c *Client) GetRoles(ctx context.Context) ([]Role, error) + func (c *Client) GetSecret(ctx context.Context, resourceID string) (*Secret, error) + func (c *Client) GetUser(ctx context.Context, userID string) (*User, error) + func (c *Client) GetUserID() string + func (c *Client) GetUsers(ctx context.Context, opts *GetUsersOptions) ([]User, error) + func (c *Client) Login(ctx context.Context) error + func (c *Client) Logout(ctx context.Context) error + func (c *Client) MoveFolder(ctx context.Context, folderID, folderParentID string) error + func (c *Client) MoveResource(ctx context.Context, resourceID, folderParentID string) error + func (c *Client) PerformHealthCheck(ctx context.Context) (json.RawMessage, error) + func (c *Client) SearchAROs(ctx context.Context, opts SearchAROsOptions) ([]ARO, error) + func (c *Client) SetupComplete(ctx context.Context, userID string, request SetupCompleteRequest) error + func (c *Client) SetupInstall(ctx context.Context, userID, token string) (*SetupInstallResponse, error) + func (c *Client) SetupServerVerification(ctx context.Context) (string, string, error) + func (c *Client) ShareFolder(ctx context.Context, folderID string, permissions []Permission) error + func (c *Client) ShareResource(ctx context.Context, resourceID string, shareRequest ResourceShareRequest) error + func (c *Client) SimulateShareResource(ctx context.Context, resourceID string, shareRequest ResourceShareRequest) (*ResourceShareSimulationResult, error) + func (c *Client) UpdateComment(ctx context.Context, commentID string, comment Comment) (*Comment, error) + func (c *Client) UpdateFolder(ctx context.Context, folderID string, folder Folder) (*Folder, error) + func (c *Client) UpdateGroup(ctx context.Context, groupID string, update GroupUpdate) (*Group, error) + func (c *Client) UpdateGroupDryRun(ctx context.Context, groupID string, update GroupUpdate) (*UpdateGroupDryRunResult, error) + func (c *Client) UpdateResource(ctx context.Context, resourceID string, resource Resource) (*Resource, error) + func (c *Client) UpdateUser(ctx context.Context, userID string, user User) (*User, error) + func (c *Client) VerifyServer(ctx context.Context, token, encToken string) error + type Comment struct + Children []Comment + Content string + Created *Time + CreatedBy string + Description string + ForeignKey string + ForeignModel string + ID string + Modified *Time + ModifiedBy string + ParentID string + UserID string + type Favorite struct + Created *Time + ForeignKey string + ForeignModel string + ID string + Modified *Time + type Folder struct + ChildrenFolders []Folder + ChildrenResources []Resource + Created *Time + CreatedBy string + FolderParentID string + ID string + Modified *Time + ModifiedBy string + Name string + Permissions []Permission + Personal bool + type GPGAuth struct + KeyID string + Token string + type GPGKey struct + ArmoredKey string + Bits int + Created *Time + Deleted bool + Expires *Time + Fingerprint string + ID string + KeyCreated *Time + KeyID string + Modified *Time + Type string + type GPGVerify struct + KeyID string + Token string + type GPGVerifyContainer struct + Req GPGVerify + type GetCommentsOptions struct + ContainCreator bool + ContainModifier bool + type GetFolderOptions struct + ContainChildrenFolders bool + ContainChildrenResources bool + ContainCreator bool + ContainCreatorProfile bool + ContainModiferProfile bool + ContainModifier bool + ContainPermission bool + ContainPermissionGroup bool + ContainPermissionUserProfile bool + ContainPermissions bool + type GetFoldersOptions struct + ContainChildrenFolders bool + ContainChildrenResources bool + ContainCreator bool + ContainCreatorProfile bool + ContainModiferProfile bool + ContainModifier bool + ContainPermission bool + ContainPermissionGroup bool + ContainPermissionUserProfile bool + ContainPermissions bool + FilterHasID []string + FilterHasParent []string + FilterSearch string + type GetGPGKeysOptions struct + FilterModifiedAfter int + type GetGroupsOptions struct + ContainGroupsUsers bool + ContainGroupsUsersUser bool + ContainGroupsUsersUserGPGKey bool + ContainGroupsUsersUserProfile bool + ContainModifier bool + ContainModifierProfile bool + ContainMyGroupUser bool + ContainUsers bool + FilterHasManagers []string + FilterHasUsers []string + type GetResourceTypesOptions struct + type GetResourcesOptions struct + ContainCreator bool + ContainFavorites bool + ContainModifier bool + ContainPermissions bool + ContainPermissionsGroup bool + ContainPermissionsUserProfile bool + ContainResourceType bool + ContainSecret bool + ContainTags bool + FilterHasID []string + FilterHasParent []string + FilterHasTag string + FilterIsFavorite bool + FilterIsOwnedByMe bool + FilterIsSharedWithGroup []string + FilterIsSharedWithMe bool + type GetUsersOptions struct + ContainLastLoggedIn bool + FilterHasAccess []string + FilterHasGroup []string + FilterIsAdmin bool + FilterSearch string + type Group struct + Created *Time + CreatedBy string + Deleted bool + GroupUsers []GroupMembership + ID string + Modified *Time + ModifiedBy string + Name string + Users []GroupUser + type GroupJoinData struct + Created *Time + GroupID string + ID string + IsAdmin bool + UserID string + type GroupMembership struct + Created *Time + Delete bool + GroupID string + ID string + IsAdmin bool + User User + UserID string + type GroupSecret struct + Secret []Secret + type GroupUpdate struct + GroupChanges []GroupMembership + Name string + Secrets []Secret + type GroupUser struct + JoinData GroupJoinData + type Login struct + Auth *GPGAuth + type MFAChallange struct + Provider MFAProviders + type MFAChallangeResponse struct + TOTP string + type MFAProviders struct + TOTP string + type Permission struct + ACO string + ACOForeignKey string + ARO string + AROForeignKey string + Created *Time + Delete bool + ID string + IsNew bool + Modified *Time + Type int + type Profile struct + Created *Time + FirstName string + ID string + LastName string + Modified *Time + UserID string + type PublicKeyReponse struct + Fingerprint string + Keydata string + type Resource struct + Created *Time + CreatedBy string + Creator *User + Deleted bool + Description string + Favorite *Favorite + FolderParentID string + ID string + Modified *Time + ModifiedBy string + Modifier *User + Name string + Permission *Permission + ResourceType ResourceType + ResourceTypeID string + Secrets []Secret + Tags []Tag + URI string + Username string + type ResourceShareRequest struct + Permissions []Permission + Secrets []Secret + type ResourceShareSimulationChange struct + User ResourceShareSimulationUser + type ResourceShareSimulationChanges struct + Added []ResourceShareSimulationChange + Removed []ResourceShareSimulationChange + type ResourceShareSimulationResult struct + Changes ResourceShareSimulationChanges + type ResourceShareSimulationUser struct + ID string + type ResourceType struct + Created *Time + Definition json.RawMessage + Description string + ID string + Modified *Time + Slug string + type Role struct + Avatar Avatar + Created *Time + Description string + ID string + Modified *Time + Name string + type SearchAROsOptions struct + FilterSearch string + type Secret struct + Created *Time + Data string + ID string + Modified *Time + ResourceID string + UserID string + type SecretDataTypePasswordAndDescription struct + Description string + Password string + type SetupCompleteRequest struct + AuthenticationToken AuthenticationToken + GPGKey GPGKey + User User + type SetupInstallResponse struct + type Tag struct + ID string + IsShared bool + Slug string + type Time struct + func (t *Time) UnmarshalJSON(buf []byte) error + func (t Time) MarshalJSON() ([]byte, error) + type URL struct + Medium string + Small string + type UpdateGroupDryRun struct + Secrets []GroupSecret + SecretsNeeded []UpdateGroupSecretsNeededContainer + type UpdateGroupDryRunResult struct + DryRun UpdateGroupDryRun + type UpdateGroupDryRunSecretsNeeded struct + ResourceID string + UserID string + type UpdateGroupSecretsNeededContainer struct + Secret UpdateGroupDryRunSecretsNeeded + type User struct + Active bool + Created *Time + Deleted bool + Description string + Favorite *Favorite + GPGKey *GPGKey + ID string + LastLoggedIn string + Locale string + Modified *Time + Profile *Profile + Role *Role + RoleID string + Username string