project

package
v0.12.0-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL