Documentation ¶
Index ¶
Constants ¶
View Source
const ( CollectionType = "collection" UserPreferenceResourceType = "userpreference" SettingsResourceType = "management.cattle.io.setting" ClusterResourceType = "management.cattle.io.cluster" AuthProviderResourceType = "authProvider" UserResourceType = "user" PrincipalResourceType = "principal" SchemaType = "schema" )
Variables ¶
This section is empty.
Functions ¶
func GetBaseURL ¶
func GetBaseURL(ec echo.Context) string
func GetSelfLink ¶
Types ¶
type AuthProvider ¶
type Collection ¶
type Collection struct { Type string `json:"type"` Data []interface{} `json:"data"` ResourceType string `json:"resourceType"` Actions map[string]string `json:"actions"` Links map[string]string `json:"links"` Revision string `json:"revision,omitempty"` }
func NewCollection ¶
func NewCollection(typ string) *Collection
type Principal ¶
type Principal struct { Name string `json:"name"` ID string `json:"id"` LoginName string `json:"loginName"` BaseType string `json:"baseType"` Type string `json:"type"` Data []interface{} `json:"data"` Actions map[string]string `json:"actions"` Links map[string]string `json:"links"` MemberOf bool `json:"mustChangePassword"` Me bool `json:"me"` Provider string `json:"provider"` PrincipalType string `json:"principalType"` }
type Schema ¶
type Schema struct { ID string `json:"id"` Type string `json:"type"` Links map[string]string `json:"links"` PluralName string `json:"pluralName"` ResourceMethods []string `json:"resourceMethods"` ResourceFields map[string]interface{} `json:"resourceFields"` CollectionMethods []string `json:"collectionMethods"` Attributes map[string]interface{} `json:"attributes"` }
type User ¶
type User struct { Name string `json:"name"` ID string `json:"id"` Username string `json:"username"` Description string `json:"description"` UUID string `json:"uuid"` BaseType string `json:"baseType"` Type string `json:"type"` Actions map[string]string `json:"actions"` Links map[string]string `json:"links"` State string `json:"state"` MustChangePassword bool `json:"mustChangePassword"` Me bool `json:"me"` Enabled bool `json:"enabled"` PrinicpalIDs []string `json:"principalIds"` }
Click to show internal directories.
Click to hide internal directories.