okta

package
v0.0.0-...-df39993 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is an Okta client that conforms to the following lib/services interfaces: * services.OktaImportRules * services.OktaAssignments

func NewClient

func NewClient(grpcClient oktapb.OktaServiceClient) *Client

NewClient creates a new Okta client.

func (*Client) CreateOktaAssignment

func (c *Client) CreateOktaAssignment(ctx context.Context, assignment types.OktaAssignment) (types.OktaAssignment, error)

CreateOktaAssignmentcreates a new Okta assignment resource.

func (*Client) CreateOktaImportRule

func (c *Client) CreateOktaImportRule(ctx context.Context, importRule types.OktaImportRule) (types.OktaImportRule, error)

CreateOktaImportRule creates a new Okta import rule resource.

func (*Client) DeleteAllOktaAssignments

func (c *Client) DeleteAllOktaAssignments(ctx context.Context) error

DeleteAllOktaAssignments removes all Okta assignments.

func (*Client) DeleteAllOktaImportRules

func (c *Client) DeleteAllOktaImportRules(ctx context.Context) error

DeleteAllOktaImportRules removes all Okta import rules.

func (*Client) DeleteOktaAssignment

func (c *Client) DeleteOktaAssignment(ctx context.Context, name string) error

DeleteOktaAssignmentremoves the specified Okta assignment resource.

func (*Client) DeleteOktaImportRule

func (c *Client) DeleteOktaImportRule(ctx context.Context, name string) error

DeleteOktaImportRule removes the specified Okta import rule resource.

func (*Client) GetOktaAssignment

func (c *Client) GetOktaAssignment(ctx context.Context, name string) (types.OktaAssignment, error)

GetOktaAssignmentreturns the specified Okta assignment resources.

func (*Client) GetOktaImportRule

func (c *Client) GetOktaImportRule(ctx context.Context, name string) (types.OktaImportRule, error)

GetOktaImportRule returns the specified Okta import rule resources.

func (*Client) ListOktaAssignments

func (c *Client) ListOktaAssignments(ctx context.Context, pageSize int, pageToken string) ([]types.OktaAssignment, string, error)

ListOktaAssignments returns a paginated list of all Okta assignment resources.

func (*Client) ListOktaImportRules

func (c *Client) ListOktaImportRules(ctx context.Context, pageSize int, pageToken string) ([]types.OktaImportRule, string, error)

ListOktaImportRules returns a paginated list of all Okta import rule resources.

func (*Client) UpdateOktaAssignment

func (c *Client) UpdateOktaAssignment(ctx context.Context, assignment types.OktaAssignment) (types.OktaAssignment, error)

UpdateOktaAssignmentupdates an existing Okta assignment resource.

func (*Client) UpdateOktaAssignmentStatus

func (c *Client) UpdateOktaAssignmentStatus(ctx context.Context, name, status string, timeHasPassed time.Duration) error

UpdateOktaAssignmentStatus will update the status for an Okta assignment if the given time has passed since the last transition.

func (*Client) UpdateOktaImportRule

func (c *Client) UpdateOktaImportRule(ctx context.Context, importRule types.OktaImportRule) (types.OktaImportRule, error)

UpdateOktaImportRule updates an existing Okta import rule resource.

Jump to

Keyboard shortcuts

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