Skip to content

Commit 935c46c

Browse files
author
Alexis Jasso
authored
Update role data and resource to use go sdk (#228)
* Update role data and resource to use go sdk * format time strings * string to custom type * more time format strings * one more custom type * remove roles from REST client * permissions data source too because sure why not * nil check for permission parent slug
1 parent 3d2f579 commit 935c46c

10 files changed

Lines changed: 69 additions & 880 deletions

File tree

firehydrant/client.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ type Client interface {
7070
// Signals
7171
IngestURL() IngestURLClient
7272
Transposers() TransposersClient
73-
Roles() Roles
74-
Permissions() Permissions
7573
}
7674

7775
type transportWithUserAgent struct {
@@ -216,14 +214,6 @@ func (c *APIClient) StatusUpdateTemplates() StatusUpdateTemplates {
216214
return &RESTStatusUpdateTemplateClient{client: c}
217215
}
218216

219-
func (c *APIClient) Roles() Roles {
220-
return &RESTRolesClient{client: c}
221-
}
222-
223-
func (c *APIClient) Permissions() Permissions {
224-
return &RESTPermissionsClient{client: c}
225-
}
226-
227217
// GetUsers gets matching users in FireHydrant
228218
func (c *APIClient) GetUsers(ctx context.Context, params GetUserParams) (*UserResponse, error) {
229219
userResponse := &UserResponse{}

firehydrant/permissions.go

Lines changed: 0 additions & 61 deletions
This file was deleted.

firehydrant/permissions_test.go

Lines changed: 0 additions & 112 deletions
This file was deleted.

firehydrant/roles.go

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)