fix linting
This commit is contained in:
@@ -2,6 +2,7 @@ package models
|
||||
|
||||
import "go.infratographer.com/x/gidx"
|
||||
|
||||
// OrganizationDetails contains the organization and membership information.
|
||||
type OrganizationDetails struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
@@ -9,6 +10,7 @@ type OrganizationDetails struct {
|
||||
Projects []*ProjectDetails `json:"projects"`
|
||||
}
|
||||
|
||||
// PrefixedID returns the prefixed id for the organization.
|
||||
func (d *OrganizationDetails) PrefixedID() gidx.PrefixedID {
|
||||
if d.ID == "" {
|
||||
return gidx.NullPrefixedID
|
||||
|
||||
@@ -11,7 +11,7 @@ const (
|
||||
// MetalUserIssuer is the issuer that is used for metal api token users.
|
||||
MetalUserIssuer = "https://auth.equinix.com/"
|
||||
|
||||
// MetaluserIssuerIDPrefix is the issuer id prefix added by the issuer.
|
||||
// MetalUserIssuerIDPrefix is the issuer id prefix added by the issuer.
|
||||
MetalUserIssuerIDPrefix = "auth|"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user