Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateOktaAssignment(ctx context.Context, assignment types.OktaAssignment) (types.OktaAssignment, error)
- func (c *Client) CreateOktaImportRule(ctx context.Context, importRule types.OktaImportRule) (types.OktaImportRule, error)
- func (c *Client) DeleteAllOktaAssignments(ctx context.Context) error
- func (c *Client) DeleteAllOktaImportRules(ctx context.Context) error
- func (c *Client) DeleteOktaAssignment(ctx context.Context, name string) error
- func (c *Client) DeleteOktaImportRule(ctx context.Context, name string) error
- func (c *Client) GetOktaAssignment(ctx context.Context, name string) (types.OktaAssignment, error)
- func (c *Client) GetOktaImportRule(ctx context.Context, name string) (types.OktaImportRule, error)
- func (c *Client) ListOktaAssignments(ctx context.Context, pageSize int, pageToken string) ([]types.OktaAssignment, string, error)
- func (c *Client) ListOktaImportRules(ctx context.Context, pageSize int, pageToken string) ([]types.OktaImportRule, string, error)
- func (c *Client) UpdateOktaAssignment(ctx context.Context, assignment types.OktaAssignment) (types.OktaAssignment, error)
- func (c *Client) UpdateOktaAssignmentStatus(ctx context.Context, name, status string, timeHasPassed time.Duration) error
- func (c *Client) UpdateOktaImportRule(ctx context.Context, importRule types.OktaImportRule) (types.OktaImportRule, error)
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 ¶
DeleteAllOktaAssignments removes all Okta assignments.
func (*Client) DeleteAllOktaImportRules ¶
DeleteAllOktaImportRules removes all Okta import rules.
func (*Client) DeleteOktaAssignment ¶
DeleteOktaAssignmentremoves the specified Okta assignment resource.
func (*Client) DeleteOktaImportRule ¶
DeleteOktaImportRule removes the specified Okta import rule resource.
func (*Client) GetOktaAssignment ¶
GetOktaAssignmentreturns the specified Okta assignment resources.
func (*Client) GetOktaImportRule ¶
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.