Skip to content

Commit

Permalink
update module import path for repository transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
speatzle committed Feb 22, 2022
1 parent 47ec059 commit 69221b3
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 speatzle
Copyright (c) 2021 Samuel Lorch

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# go-passbolt
[![Go Reference](https://pkg.go.dev/badge/github.com/speatzle/go-passbolt.svg)](https://pkg.go.dev/github.com/speatzle/go-passbolt)
[![Go Reference](https://pkg.go.dev/badge/github.com/passbolt/go-passbolt.svg)](https://pkg.go.dev/github.com/passbolt/go-passbolt)

A Go module to interact with [Passbolt](https://www.passbolt.com/), an open-source password manager for teams

There also is a CLI Tool to interact with Passbolt using this module [here](https://github.com/speatzle/go-passbolt-cli).
There also is a CLI Tool to interact with Passbolt using this module [here](https://github.com/passbolt/go-passbolt-cli).

This module tries to support the latest Passbolt Community/PRO server release, PRO Features such as folders are supported. Older versions of Passbolt such as v2 are unsupported (it's a password manager, please update it)

Expand All @@ -15,14 +15,14 @@ The helper package has simplified functions that use the API package to perform

To use the API package, please read the [Passbolt API docs](https://help.passbolt.com/api). Sadly the docs aren't complete so many things here have been found by looking at the source of Passbolt or through trial and error. If you have a question just ask.

PR's are welcome. But be gentle: if it's something bigger or fundamental: please [create an issue](https://github.com/speatzle/go-passbolt/issues/new) and ask first.
PR's are welcome. But be gentle: if it's something bigger or fundamental: please [create an issue](https://github.com/passbolt/go-passbolt/issues/new) and ask first.

Disclaimer: This project is community driven and not associated with Passbolt SA


# Install

`go get github.com/speatzle/go-passbolt`
`go get github.com/passbolt/go-passbolt`

# Examples
## Login
Expand All @@ -36,7 +36,7 @@ import (
"context"
"fmt"

"github.com/speatzle/go-passbolt/api"
"github.com/passbolt/go-passbolt/api"
)

const address = "https://passbolt.example.com"
Expand Down Expand Up @@ -70,7 +70,7 @@ You can do this using the `client.CheckSession()` function.

## Create a Resource

Creating a resource using the helper package is simple. First, add `"github.com/speatzle/go-passbolt/helper"` to your imports.
Creating a resource using the helper package is simple. First, add `"github.com/passbolt/go-passbolt/helper"` to your imports.

Then you can simply:

Expand Down Expand Up @@ -331,7 +331,7 @@ go-passbolt now supports MFA! You can set it up using the Client's `MFACallback`

## Other

These examples are just the main use cases of these Modules, many more API calls are supported. Look at the [reference](https://pkg.go.dev/github.com/speatzle/go-passbolt) for more information.
These examples are just the main use cases of these Modules, many more API calls are supported. Look at the [reference](https://pkg.go.dev/github.com/passbolt/go-passbolt) for more information.


## Full Example
Expand All @@ -350,8 +350,8 @@ import (
"context"
"fmt"

"github.com/speatzle/go-passbolt/api"
"github.com/speatzle/go-passbolt/helper"
"github.com/passbolt/go-passbolt/api"
"github.com/passbolt/go-passbolt/helper"
)

const address = "https://passbolt.example.com"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/speatzle/go-passbolt
module github.com/passbolt/go-passbolt

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion helper/folder.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/speatzle/go-passbolt/api"
"github.com/passbolt/go-passbolt/api"
)

// CreateFolder Creates a new Folder
Expand Down
2 changes: 1 addition & 1 deletion helper/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/speatzle/go-passbolt/api"
"github.com/passbolt/go-passbolt/api"
)

// GroupMembershipOperation creates/modifies/deletes a group membership
Expand Down
2 changes: 1 addition & 1 deletion helper/mfa.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http"
"time"

"github.com/speatzle/go-passbolt/api"
"github.com/passbolt/go-passbolt/api"
)

// AddMFACallbackTOTP adds a MFA callback to the client that generates OTP Codes on demand using a Token with configurable retries and delay
Expand Down
2 changes: 1 addition & 1 deletion helper/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"fmt"

"github.com/speatzle/go-passbolt/api"
"github.com/passbolt/go-passbolt/api"
)

// CreateResource Creates a Resource where the Password and Description are Encrypted and Returns the Resources ID
Expand Down
2 changes: 1 addition & 1 deletion helper/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strings"

"github.com/speatzle/go-passbolt/api"
"github.com/passbolt/go-passbolt/api"

"github.com/ProtonMail/gopenpgp/v2/crypto"
"github.com/ProtonMail/gopenpgp/v2/helper"
Expand Down
2 changes: 1 addition & 1 deletion helper/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"testing"

"github.com/speatzle/go-passbolt/api"
"github.com/passbolt/go-passbolt/api"
)

var client *api.Client
Expand Down
2 changes: 1 addition & 1 deletion helper/share.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/speatzle/go-passbolt/api"
"github.com/passbolt/go-passbolt/api"
)

// ShareOperation defines how Resources are to be Shared With Users/Groups
Expand Down
2 changes: 1 addition & 1 deletion helper/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/speatzle/go-passbolt/api"
"github.com/passbolt/go-passbolt/api"
)

// CreateUser Creates a new User
Expand Down
2 changes: 1 addition & 1 deletion helper/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package helper
import (
"fmt"

"github.com/speatzle/go-passbolt/api"
"github.com/passbolt/go-passbolt/api"
)

func getPublicKeyByUserID(userID string, Users []api.User) (string, error) {
Expand Down

0 comments on commit 69221b3

Please sign in to comment.