Documentation
¶
Index ¶
Constants ¶
View Source
const (
RevisionDateLayout = "2006-01-02T15:04:05.000Z"
)
Variables ¶
View Source
var (
ErrNotFound = errNotFound()
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { CreateObject(Object) (*Object, error) EditObject(Object) (*Object, error) HasSessionKey() bool GetObject(Object) (*Object, error) LoginWithPassword(username, password string) error LoginWithAPIKeyAndUnlock(password, clientId, clientSecret string) error Logout() error RemoveObject(Object) error SetServer(string) error Status() (*Status, error) Sync() error Unlock(password string) error }
type Object ¶
type Object struct { CollectionIds []string `json:"collectionIds,omitempty"` ID string `json:"id,omitempty"` ExternalID string `json:"externalId,omitempty"` FolderID string `json:"folderId,omitempty"` Login Login `json:"login,omitempty"` Name string `json:"name,omitempty"` Notes string `json:"notes,omitempty"` Object ObjectType `json:"object,omitempty"` OrganizationID string `json:"organizationId,omitempty"` SecureNote SecureNote `json:"secureNote,omitempty"` Type ItemType `json:"type,omitempty"` Fields []Field `json:"fields,omitempty"` Reprompt int `json:"reprompt,omitempty"` Favorite bool `json:"favorite,omitempty"` RevisionDate *time.Time `json:"revisionDate,omitempty"` }
type ObjectType ¶
type ObjectType string
const ( ObjectTypeItem ObjectType = "item" ObjectTypeFolder ObjectType = "folder" )
type Options ¶
type Options func(c Client)
func DisableSync ¶
func DisableSync() Options
func WithAppDataDir ¶
type SecureNote ¶
type SecureNote struct {
Type int `json:"type,omitempty"`
}
type VaultStatus ¶
type VaultStatus string
const ( StatusAuthenticated VaultStatus = "authenticated" StatusLocked VaultStatus = "locked" StatusUnauthenticated VaultStatus = "unauthenticated" )
Click to show internal directories.
Click to hide internal directories.