usecases

package
v0.0.0-...-73116f3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleGitlabEvent

func HandleGitlabEvent(body []byte)

func PerformGlK8sSync

func PerformGlK8sSync()

func StartRecurringSyncTimer

func StartRecurringSyncTimer()

Types

type CustomRolesAndBindings

type CustomRolesAndBindings struct {
	Roles               map[string]bool
	RoleBindings        map[string]bool
	ClusterRoles        map[string]bool
	ClusterRoleBindings map[string]bool
	ServiceAccounts     map[string]bool
}

func ReadAndApplyCustomRolesAndBindings

func ReadAndApplyCustomRolesAndBindings() CustomRolesAndBindings

type GitlabEvent

type GitlabEvent struct {
	CreatedAt                time.Time `json:"created_at"`
	UpdatedAt                time.Time `json:"updated_at"`
	EventName                string    `json:"event_name"`
	Name                     string    `json:"name"`
	OwnerEmail               string    `json:"owner_email"`
	OwnerName                string    `json:"owner_name"`
	Path                     string    `json:"path"`
	PathWithNameSpace        string    `json:"path_with_namespace"`
	ProjectPathWithNameSpace string    `json:"project_path_with_namespace"`
	ProjectId                int       `json:"project_id"`
	ProjectVisibility        string    `json:"project_visibility"`
	OldPathWithNamespace     string    `json:"old_path_with_namespace"`
	ProjectAccess            string    `json:"access_level"`
	GroupAccess              string    `json:"group_access"`
	UserEmail                string    `json:"user_email"`
	UserName                 string    `json:"user_name"`
	UserUsername             string    `json:"user_username"`
	UserCreatedUserName      string    `json:"username"`
	UserId                   int       `json:"user_id"`
	GroupId                  int       `json:"group_id"`
	GroupName                string    `json:"group_name"`
	GroupPath                string    `json:"group_path"`
}

Jump to

Keyboard shortcuts

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