types

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package types provides shared type definitions used across packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncRule

type SyncRule struct {
	Name                string `json:"name"`
	Enabled             *bool  `json:"enabled,omitempty"`
	OktaGroupPattern    string `json:"okta_group_pattern,omitempty"`
	OktaGroupName       string `json:"okta_group_name,omitempty"`
	GitHubTeamPrefix    string `json:"github_team_prefix,omitempty"`
	GitHubTeamName      string `json:"github_team_name,omitempty"`
	StripPrefix         string `json:"strip_prefix,omitempty"`
	SyncMembers         *bool  `json:"sync_members,omitempty"`
	CreateTeamIfMissing bool   `json:"create_team_if_missing"`
	TeamPrivacy         string `json:"team_privacy,omitempty"`
}

SyncRule defines how to sync Okta groups to GitHub teams.

func (SyncRule) GetName

func (r SyncRule) GetName() string

GetName returns the rule name, defaulting to GitHubTeamName if not set.

func (SyncRule) IsEnabled

func (r SyncRule) IsEnabled() bool

IsEnabled returns true if the rule is enabled (defaults to true).

func (SyncRule) ShouldSyncMembers

func (r SyncRule) ShouldSyncMembers() bool

ShouldSyncMembers returns true if members should be synced (defaults to true).

Jump to

Keyboard shortcuts

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