client

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OIClient

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

func NewOIClient

func NewOIClient(apiToken, oktaOrgURL string) (*OIClient, error)

func (*OIClient) GetUsersInGroup

func (oi *OIClient) GetUsersInGroup(wantGroupName string) ([]string, error)

func (*OIClient) ListGroupRules

func (oi *OIClient) ListGroupRules(searchString string) ([]OktaGroupRule, error)

func (*OIClient) ListGroups

func (oi *OIClient) ListGroups() ([]OktaGroup, error)

func (*OIClient) PrintGroupDiff

func (oi *OIClient) PrintGroupDiff(groupsA, groupsB []string, hideDeprovisioned bool) error

PrintGroupDiff prints the difference of two sets of groups

func (*OIClient) PrintGroupRules

func (oi *OIClient) PrintGroupRules(searchString string, ruletype RuleType) error

PrintGroupRules prints all the group rules that have the searchGroup as either source or destination

func (*OIClient) PrintGroupsForUser

func (oi *OIClient) PrintGroupsForUser(wantUserName string) error

func (*OIClient) PrintUsersInGroups

func (oi *OIClient) PrintUsersInGroups(wantGroupsName []string) error

type OktaGroup

type OktaGroup struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

type OktaGroupRule

type OktaGroupRule struct {
	Name               string   `json:"name"`
	ID                 string   `json:"id"`
	DestinationGroupID string   `json:"destination_group_id"`
	SourceGroupIDs     []string `json:"source_group_ids"`
}

type RuleType added in v0.4.0

type RuleType string
const (
	RuleTypeGroup RuleType = "group"
	RuleTypeName  RuleType = "name"
)

Jump to

Keyboard shortcuts

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