Versions in this module Expand all Collapse all v2 v2.0.1 Apr 11, 2024 Changes in this version + type AdvanceAuthResponse struct + ErrorCode interface{} + ErrorID interface{} + Exception interface{} + InnerExceptions interface{} + IsSoftError bool + Message interface{} + MessageID interface{} + Result AdvanceAuthResult + Success bool + type AdvanceAuthResult struct + AuthLevel string + CustomerID string + DisplayName string + EmailAddress string + OAuthTokens OAuthTokens + PodFqdn string + SourceDsType string + StartingPoint string + Summary string + SystemID string + User string + UserDirectory string + UserId string + type Challenge struct + Mechanisms []Mechanism + type ClientHints struct + AllowForgotPassword bool + AllowPersist bool + PersistDefault bool + RequestedUsername string + StartingPoint string + type Connection struct + OAuthProfileId string + Url string + type Mechanism struct + AnswerType string + MechanismId string + Name string + PromptMechChosen string + PromptSelectMech string + type OAuthTokens struct + AccessToken string + ExpiresIn int + IdToken string + RefreshToken string + Scope string + SessionExpiresIn int + TokenType string + type Response struct + DatabaseHealthy bool + Healthy bool + ScheduledForDeletion bool + ServiceBusHealthy bool + StorageAccountHealthy bool + type Result struct + AllowLoginMfaCache bool + Challenges []Challenge + ClientHints ClientHints + SessionId string + Summary string + TenantId string + Version string + type SearchResult struct + Records []Secret + SearchText string type Server + func (s Server) Secrets(searchText, field string) ([]Secret, error) + type StartAuthResponse struct + ErrorCode interface{} + ErrorID interface{} + Exception interface{} + InnerExceptions interface{} + IsSoftError bool + Message interface{} + MessageID interface{} + Result Result + Success bool type UserCredential + Token string + type Vault struct + Connection Connection + IsActive bool + IsDefault bool + IsGlobalDefault bool + Name string + Type string + VaultId string + type VaultsResponseModel struct + Vaults []Vault v2.0.0 May 31, 2022 Changes in this version + type Configuration struct + Credentials UserCredential + ServerURL string + TLD string + TLSClientConfig *tls.Config + Tenant string + type Secret struct + Active bool + AutoChangeEnabled bool + CheckOutChangePasswordEnabled bool + CheckOutEnabled bool + CheckOutIntervalMinutes int + CheckedOut bool + DelayIndexing bool + EnableInheritPermissions bool + EnableInheritSecretPolicy bool + Fields []SecretField + FolderID int + ID int + LauncherConnectAsSecretID int + Name string + PasswordTypeWebScriptID int + ProxyEnabled bool + RequiresComment bool + SecretPolicyID int + SecretTemplateID int + SessionRecordingEnabled bool + SiteID int + SshKeyArgs *SshKeyArgs + WebLauncherRequiresIncognitoMode bool + func (s Secret) Field(fieldName string) (string, bool) + func (s Secret) FieldById(fieldId int) (string, bool) + type SecretField struct + FieldDescription string + FieldID int + FieldName string + FileAttachmentID int + Filename string + IsFile bool + IsNotes bool + IsPassword bool + ItemID int + ItemValue string + Slug string + type SecretTemplate struct + Fields []SecretTemplateField + ID int + Name string + func (s SecretTemplate) FieldIdToSlug(fieldId int) (string, bool) + func (s SecretTemplate) FieldSlugToId(slug string) (int, bool) + func (s SecretTemplate) GetField(slug string) (*SecretTemplateField, bool) + type SecretTemplateField struct + Description string + DisplayName string + FieldSlugName string + IsFile bool + IsList bool + IsNotes bool + IsPassword bool + IsRequired bool + IsUrl bool + ListType string + Name string + SecretTemplateFieldID int + type Server struct + func New(config Configuration) (*Server, error) + func (s Server) CreateSecret(secret Secret) (*Secret, error) + func (s Server) DeleteSecret(id int) error + func (s Server) GeneratePassword(slug string, template *SecretTemplate) (string, error) + func (s Server) Secret(id int) (*Secret, error) + func (s Server) SecretTemplate(id int) (*SecretTemplate, error) + func (s Server) UpdateSecret(secret Secret) (*Secret, error) + type SshKeyArgs struct + GeneratePassphrase bool + GenerateSshKeys bool + type UserCredential struct + Domain string + Password string + Username string