Skip to content

Commit

Permalink
Delete unused type
Browse files Browse the repository at this point in the history
  • Loading branch information
royroyee committed Apr 12, 2024
1 parent e4648bd commit 7951dd7
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 42 deletions.
1 change: 0 additions & 1 deletion api/iam/iam_test.go

This file was deleted.

9 changes: 0 additions & 9 deletions api/iam/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,6 @@ type GroupCreateRequest struct {
Servers []string `json:"servers"`
}

type Membership struct {
ID string `json:"id"`
Group string `json:"group"`
GroupName string `json:"group_name"`
User string `json:"user"`
UserName string `json:"user_name"`
Role string `json:"role"`
}

type MemberAddRequest struct {
Group string `json:"group"`
User string `json:"user"`
Expand Down
23 changes: 2 additions & 21 deletions client/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ type CheckAuthResponse struct {
}

type CheckPrivilegesResponse struct {
ID string `json:"id"`
Username string `json:"username"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Email string `json:"email"`
Phone string `json:"phone"`
Tags string `json:"tags"`
Description string `json:"description"`
NumGroups int `json:"num_groups"`
UID int `json:"uid"`
Shell string `json:"shell"`
HomeDirectory string `json:"home_directory"`
IsActive bool `json:"is_active"`
IsStaff bool `json:"is_staff"`
IsSuperuser bool `json:"is_superuser"`
IsLDAPUser bool `json:"is_ldap_user"`
DateJoined string `json:"date_joined"`
LastLogin string `json:"last_login"`
LastLoginIP string `json:"last_login_ip"`
AddedAt string `json:"added_at"`
UpdatedAt string `json:"updated_at"`
IsStaff bool `json:"is_staff"`
IsSuperuser bool `json:"is_superuser"`
}
1 change: 0 additions & 1 deletion pkg/cert/cert_test.go

This file was deleted.

10 changes: 0 additions & 10 deletions pkg/cert/types.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
package cert

type SubjectInfo struct {
Country []string
Province []string
Locality []string
Organization []string
OrganizationalUnit []string
CommonName string
EmailAddresses []string
}

type CertificatePath struct {
PrivateKeyPath string
CSRPath string
Expand Down

0 comments on commit 7951dd7

Please sign in to comment.