checker

package
v0.0.0-...-dbc92aa Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunChecker

func RunChecker(organizationResource string, projectLabels map[string]string, dataDir string)

RunChecker ...

Types

type Member

type Member struct {
	Resources []Resource `json:"resources"`
}

Member ...

func (*Member) AddResourceRole

func (member *Member) AddResourceRole(resourceName string, role string, allRoles map[string][]string)

AddResourceRole ...

func (*Member) GetResourceByName

func (member *Member) GetResourceByName(resourceName string) (bool, *Resource)

GetResourceByName ...

func (*Member) Merge

func (member *Member) Merge(fromMember Member)

Merge ...

type Resource

type Resource struct {
	Name  string `json:"name"`
	Roles []Role `json:"roles"`
}

Resource ...

type Role

type Role struct {
	Name            string `json:"name"`
	PermissionCount int    `json:"permission_count"`
}

Role ...

type StrSet

type StrSet struct {
	// contains filtered or unexported fields
}

StrSet ...

func (*StrSet) Add

func (s *StrSet) Add(items ...string)

Add ...

func (*StrSet) AsSlice

func (s *StrSet) AsSlice() []string

AsSlice ...

func (*StrSet) Contains

func (s *StrSet) Contains(item string) bool

Contains ...

func (StrSet) MarshalJSON

func (s StrSet) MarshalJSON() ([]byte, error)

MarshalJSON ...

Jump to

Keyboard shortcuts

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