Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultBitwardenServerURL = "https://vault.bitwarden.com"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListObjectsFilterOptions ¶ added in v0.9.0
type ListObjectsFilterOptions struct { CollectionFilter string FolderFilter string OrganizationFilter string SearchFilter string UrlFilter string }
func ListObjectsOptionsToFilterOptions ¶ added in v0.9.0
func ListObjectsOptionsToFilterOptions(options ...ListObjectsOption) ListObjectsFilterOptions
func (*ListObjectsFilterOptions) IsValid ¶ added in v0.9.0
func (f *ListObjectsFilterOptions) IsValid() bool
type ListObjectsOption ¶ added in v0.9.0
type ListObjectsOption func(filters *ListObjectsFilterOptions)
func WithCollectionID ¶ added in v0.9.0
func WithCollectionID(id string) ListObjectsOption
func WithFolderID ¶ added in v0.9.0
func WithFolderID(id string) ListObjectsOption
func WithOrganizationID ¶ added in v0.9.0
func WithOrganizationID(id string) ListObjectsOption
func WithSearch ¶ added in v0.9.0
func WithSearch(search string) ListObjectsOption
func WithUrl ¶ added in v0.9.0
func WithUrl(url string) ListObjectsOption
type ListObjectsOptionGenerator ¶ added in v0.9.0
type ListObjectsOptionGenerator func(id string) ListObjectsOption
type PasswordManager ¶ added in v0.10.0
type PasswordManager interface { CreateAttachment(ctx context.Context, itemId, filePath string) (*models.Object, error) CreateObject(context.Context, models.Object) (*models.Object, error) DeleteAttachment(ctx context.Context, itemId, attachmentId string) error DeleteObject(context.Context, models.Object) error EditObject(context.Context, models.Object) (*models.Object, error) GetAttachment(ctx context.Context, itemId, attachmentId string) ([]byte, error) GetObject(context.Context, models.Object) (*models.Object, error) ListObjects(ctx context.Context, objType models.ObjectType, options ...ListObjectsOption) ([]models.Object, error) LoginWithAPIKey(ctx context.Context, password, clientId, clientSecret string) error LoginWithPassword(ctx context.Context, username, password string) error Sync(context.Context) error }
type SecretsManager ¶ added in v0.10.0
type SecretsManager interface { CreateProject(ctx context.Context, project models.Project) (*models.Project, error) CreateSecret(ctx context.Context, secret models.Secret) (*models.Secret, error) DeleteProject(ctx context.Context, project models.Project) error DeleteSecret(ctx context.Context, secret models.Secret) error EditProject(ctx context.Context, project models.Project) (*models.Project, error) EditSecret(ctx context.Context, secret models.Secret) (*models.Secret, error) GetProject(ctx context.Context, project models.Project) (*models.Project, error) GetSecret(ctx context.Context, secret models.Secret) (*models.Secret, error) GetSecretByKey(ctx context.Context, secretKey string) (*models.Secret, error) LoginWithAccessToken(ctx context.Context, accessKey string) error }
Click to show internal directories.
Click to hide internal directories.