Documentation
¶
Overview ¶
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Index ¶
Constants ¶
View Source
const ( OpCreate = "C" OpRead = "R" OpUpdate = "U" OpDelete = "D" )
Variables ¶
This section is empty.
Functions ¶
func IsValidOpLabel ¶
func SecretsEqual ¶
func SecretsEqual(s, t *SecretEntry) bool
func ValidOpLabels ¶
func ValidOpLabels() []string
Types ¶
type AuthorizationPolicyEntry ¶
type AuthorizationPolicyEntry struct {
Id string `json:"id"`
RoleLabels []string `json:"roleLabels"`
AllowedOperations []Operation `json:"allowedOperations"`
Owner string `json:"owner"`
}
func ExtractAndValidateAuthorizationPolicyEntry ¶
func ExtractAndValidateAuthorizationPolicyEntry(req *http.Request) (*AuthorizationPolicyEntry, error)
func NewAuthorizationPolicyEntry ¶
func NewAuthorizationPolicyEntry(ape *AuthorizationPolicyEntry) *AuthorizationPolicyEntry
type CreationResponse ¶
type CreationResponse struct {
Id string `json:"id"`
}
type LoginRequest ¶
func ExtractAndValidateLoginRequest ¶
func ExtractAndValidateLoginRequest(req *http.Request) (*LoginRequest, error)
type LoginResponse ¶
type LoginResponse struct {
ChallengeOrToken string `json:"challengeOrToken"`
}
type NamespaceEntry ¶
type NamespaceEntry struct {
Path string `json:"path"`
Owner string `json:"owner"`
RoleLabels []string `json:"roleLabels"`
ChildPaths []string `json:"childPaths"`
}
func ExtractAndValidateNamespaceEntry ¶
func ExtractAndValidateNamespaceEntry(req *http.Request) (*NamespaceEntry, error)
func NewNamespaceEntry ¶
func NewNamespaceEntry(ne *NamespaceEntry) *NamespaceEntry
type RoleEntry ¶
func NewRoleEntry ¶
type SecretEntry ¶
type SecretEntry struct {
Id string `json:"id"`
Type string `json:"type"`
MetaData string `json:"metaData"`
SecretData []byte `json:"secretData"`
Owner string `json:"owner"`
ExpirationTime time.Time `json:"expirationTime"`
}
func ExtractAndValidateSecretEntry ¶
func ExtractAndValidateSecretEntry(req *http.Request) (*SecretEntry, error)
func NewSecretEntry ¶
func NewSecretEntry(se *SecretEntry) *SecretEntry
type UserEntry ¶
type UserEntry struct {
Username string `json:"username"`
Credentials []byte `json:"credentials"`
Roles []RoleEntry `json:"roles"`
}
func NewUserEntry ¶
Click to show internal directories.
Click to hide internal directories.