Skip to content

Commit

Permalink
Merge pull request #3 from strongdm/development
Browse files Browse the repository at this point in the history
Resource Tags
  • Loading branch information
etodd authored Apr 10, 2020
2 parents 98fe72f + e5e9952 commit 29a11ee
Show file tree
Hide file tree
Showing 7 changed files with 3,611 additions and 2,096 deletions.
6 changes: 3 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type Client struct {
func New(token, secret string, opts ...ClientOption) (*Client, error) {
decodedSecret, err := base64.StdEncoding.DecodeString(secret)
if err != nil {
return nil, errorToPorcelain(fmt.Errorf("invalid secret: %w", err))
return nil, convertErrorToPorcelain(fmt.Errorf("invalid secret: %w", err))
}

client := &Client{
Expand Down Expand Up @@ -102,7 +102,7 @@ func New(token, secret string, opts ...ClientOption) (*Client, error) {
}
cc, err := grpc.Dial(client.apiHost, dialOpt)
if err != nil {
return nil, errorToPorcelain(fmt.Errorf("cannot dial API server: %w", err))
return nil, convertErrorToPorcelain(fmt.Errorf("cannot dial API server: %w", err))
}
client.grpcConn = cc
client.accountAttachments = &AccountAttachments{
Expand Down Expand Up @@ -159,7 +159,7 @@ func (c *Client) AccountAttachments() *AccountAttachments {
return c.accountAttachments
}

// AccountGrants connect a resource directly to an account, giving the account the permission to connect to that resource.
// AccountGrants assign a resource directly to an account, giving the account the permission to connect to that resource.
func (c *Client) AccountGrants() *AccountGrants {
return c.accountGrants
}
Expand Down
867 changes: 633 additions & 234 deletions internal/v1/drivers.pb.go

Large diffs are not rendered by default.

182 changes: 134 additions & 48 deletions internal/v1/options.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 29a11ee

Please sign in to comment.