Documentation ¶
Index ¶
- func AddGroupToRole(p *v1alpha1.AppProject, roleName, group string) (bool, error)
- func GetJWTToken(proj *v1alpha1.AppProject, roleName string, issuedAt int64) (*v1alpha1.JWTToken, int, error)
- func GetRoleByName(proj *v1alpha1.AppProject, name string) (*v1alpha1.ProjectRole, int, error)
- func NormalizePolicies(p *v1alpha1.AppProject)
- func RemoveGroupFromRole(p *v1alpha1.AppProject, roleName, group string) (bool, error)
- func ValidateProject(p *v1alpha1.AppProject) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGroupToRole ¶ added in v0.11.0
func AddGroupToRole(p *v1alpha1.AppProject, roleName, group string) (bool, error)
AddGroupToRole adds an OIDC group to a role
func GetJWTToken ¶ added in v0.11.0
func GetJWTToken(proj *v1alpha1.AppProject, roleName string, issuedAt int64) (*v1alpha1.JWTToken, int, error)
GetJWTToken looks up the index of a JWTToken in a project by the issue at time
func GetRoleByName ¶ added in v0.11.0
func GetRoleByName(proj *v1alpha1.AppProject, name string) (*v1alpha1.ProjectRole, int, error)
GetRoleByName returns the role in a project by the name with its index
func NormalizePolicies ¶ added in v0.11.0
func NormalizePolicies(p *v1alpha1.AppProject)
NormalizePolicies normalizes the policies in the project
func RemoveGroupFromRole ¶ added in v0.11.0
func RemoveGroupFromRole(p *v1alpha1.AppProject, roleName, group string) (bool, error)
RemoveGroupFromRole removes an OIDC group from a role
func ValidateProject ¶ added in v0.11.0
func ValidateProject(p *v1alpha1.AppProject) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.