services

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAccessProviderAbacWhatScopeListOrder

func WithAccessProviderAbacWhatScopeListOrder(input ...types.AccessWhatOrderByInput) func(options *AccessProviderAbacWhatScopeListOptions)

WithAccessProviderAbacWhatScopeListOrder can be used to specify the order of the returned AccessProviderAbacWhatScopeList.

func WithAccessProviderAbacWhatScopeListSearch

func WithAccessProviderAbacWhatScopeListSearch(search string) func(options *AccessProviderAbacWhatScopeListOptions)

WithAccessProviderAbacWhatScopeListSearch can be used to specify the search of the returned Access

func WithAccessProviderListFilter

func WithAccessProviderListFilter(input *types.AccessProviderFilterInput) func(options *AccessProviderListOptions)

WithAccessProviderListFilter can be used to filter the returned AccessProviders.

func WithAccessProviderListOrder

func WithAccessProviderListOrder(input ...types.AccessProviderOrderByInput) func(options *AccessProviderListOptions)

WithAccessProviderListOrder can be used to specify the order of the returned AccessProviders.

func WithAccessProviderOverrideLocks

func WithAccessProviderOverrideLocks() func(options *UpdateAccessProviderOptions)

func WithAccessProviderWhatAccessProviderListFilter

func WithAccessProviderWhatAccessProviderListFilter(filter *types.AccessProviderWhatAccessProviderFilterInput) func(options *AccessProviderWhatAccessProviderListOptions)

WithAccessProviderWhatAccessProviderListFilter can be used to specify the filter of the returned AccessProviderWhatAccessProviderList.

func WithAccessProviderWhatAccessProviderListOrder

func WithAccessProviderWhatAccessProviderListOrder(input ...schema.AccessWhatOrderByInput) func(options *AccessProviderWhatAccessProviderListOptions)

WithAccessProviderWhatAccessProviderListOrder can be used to specify the order of the returned AccessProviderWhatAccessProviderList

func WithAccessProviderWhatListFilter

func WithAccessProviderWhatListFilter(input *types.AccessWhatFilterInput) func(options *AccessProviderWhatListOptions)

WithAccessProviderWhatListFilter can be used to filter the returned AccessProviderWhatList.

func WithAccessProviderWhatListOrder

func WithAccessProviderWhatListOrder(input ...types.AccessWhatOrderByInput) func(options *AccessProviderWhatListOptions)

WithAccessProviderWhatListOrder can be used to specify the order of the returned AccessProviderWhatList

func WithAccessProviderWhoListOrder

func WithAccessProviderWhoListOrder(input ...schema.AccessProviderWhoOrderByInput) func(options *AccessProviderWhoListOptions)

WithAccessProviderWhoListOrder can be used to specify the order of the returned AccessProviderWhoList

func WithDataObjectListFilter added in v0.0.8

func WithDataObjectListFilter(input *types.DataObjectFilterInput) func(options *DataObjectListOptions)

WithDataObjectListFilter sets the filter of the returned DataObjects in the ListDataObjects call

func WithDataObjectListOrder added in v0.0.8

func WithDataObjectListOrder(input ...types.DataObjectOrderByInput) func(options *DataObjectListOptions)

WithDataObjectListOrder sets the order of the returned DataObjects in the ListDataObjects call

func WithDataSourceListFilter

func WithDataSourceListFilter(input *types.DataSourceFilterInput) func(options *DataSourceListOptions)

WithDataSourceListFilter sets the filter of the returned DataSources in the ListDataSources call.

func WithDataSourceListOrder

func WithDataSourceListOrder(input ...types.DataSourceOrderByInput) func(options *DataSourceListOptions)

WithDataSourceListOrder sets the order of the returned DataSources in the ListDataSources call.

func WithDataSourceListSearch

func WithDataSourceListSearch(input *string) func(options *DataSourceListOptions)

WithDataSourceListSearch sets the search query of the returned DataSources in the ListDataSources call.

func WithInviteAsRaitoUserNoPassword

func WithInviteAsRaitoUserNoPassword() func(options *InviteAsRaitoUserOptions)

WithInviteAsRaitoUserNoPassword adds the option to not send a password to the invited user.

func WithListIdentityStoresFilter

func WithListIdentityStoresFilter(input *schema.IdentityStoreFilterInput) func(options *ListIdentityStoresOptions)

WithListIdentityStoresFilter sets the filter of the returned IdentityStores in the ListIdentityStores call.

func WithListIdentityStoresOrder

func WithListIdentityStoresOrder(input ...schema.IdentityStoreOrderByInput) func(options *ListIdentityStoresOptions)

WithListIdentityStoresOrder sets the order of the returned IdentityStores in the ListIdentityStores call.

func WithRoleAssignmentListFilter

func WithRoleAssignmentListFilter(input *types.RoleAssignmentFilterInput) func(options *RoleAssignmentListOptions)

WithRoleAssignmentListFilter sets the filter of the returned role assignments

func WithRoleAssignmentListOrder

func WithRoleAssignmentListOrder(input ...types.RoleAssignmentOrderInput) func(options *RoleAssignmentListOptions)

WithRoleAssignmentListOrder sets the order of the returned role assignments

func WithRoleListFilter

func WithRoleListFilter(input *types.RoleFilterInput) func(options *RoleListOptions)

WithRoleListFilter sets the filter of the returned roles

func WithRoleListOrder

func WithRoleListOrder(input ...types.RoleOrderByInput) func(options *RoleListOptions)

WithRoleListOrder sets the order of the returned roles

Types

type AccessProviderAbacWhatScopeListOptions

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

type AccessProviderClient

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

func NewAccessProviderClient

func NewAccessProviderClient(client graphql.Client) AccessProviderClient

func (*AccessProviderClient) ActivateAccessProvider

func (a *AccessProviderClient) ActivateAccessProvider(ctx context.Context, id string) (*types.AccessProvider, error)

func (*AccessProviderClient) CreateAccessProvider

CreateAccessProvider creates a new AccessProvider in Raito Cloud. The valid AccessProvider is returned if the creation is successful. Otherwise, an error is returned

func (*AccessProviderClient) DeactivateAccessProvider

func (a *AccessProviderClient) DeactivateAccessProvider(ctx context.Context, id string) (*types.AccessProvider, error)

func (*AccessProviderClient) DeleteAccessProvider

func (a *AccessProviderClient) DeleteAccessProvider(ctx context.Context, id string, ops ...func(options *UpdateAccessProviderOptions)) error

DeleteAccessProvider deletes an existing AccessProvider in Raito Cloud. If the deletion is successful, nil is returned. Otherwise, an error is returned.

func (*AccessProviderClient) GetAccessProvider

func (a *AccessProviderClient) GetAccessProvider(ctx context.Context, id string) (*types.AccessProvider, error)

GetAccessProvider returns a specific AccessProvider

func (*AccessProviderClient) GetAccessProviderAbacWhatScope

func (a *AccessProviderClient) GetAccessProviderAbacWhatScope(ctx context.Context, id string, ops ...func(*AccessProviderAbacWhatScopeListOptions)) <-chan types.ListItem[types.DataObject]

GetAccessProviderAbacWhatScope returns all abac what scopes of an AccessProvider id is the id of the AccessProvider WithAccessProviderAbacWhatScopeListSearch can be used to specify the search of the returned types.DataObject WithAccessProviderAbacWhatScopeListOrder can be used to specify the order of the returned types.DataObject

func (*AccessProviderClient) GetAccessProviderWhatAccessProviderList

func (a *AccessProviderClient) GetAccessProviderWhatAccessProviderList(ctx context.Context, id string, ops ...func(*AccessProviderWhatAccessProviderListOptions)) <-chan types.ListItem[types.AccessWhatAccessProviderItem]

GetAccessProviderWhatAccessProviderList returns all what access providers of an AccessProvider in Raito Cloud.

func (*AccessProviderClient) GetAccessProviderWhatDataObjectList

func (a *AccessProviderClient) GetAccessProviderWhatDataObjectList(ctx context.Context, id string, ops ...func(*AccessProviderWhatListOptions)) <-chan types.ListItem[types.AccessProviderWhatListItem]

GetAccessProviderWhatDataObjectList returns all what items of an AccessProvider in Raito Cloud. The order of the list can be specified with WithAccessProviderWhatListOrder. A channel is returned that can be used to receive the list of AccessProviderWhatDataObjectListItem. To close the channel ensure to cancel the context.

func (*AccessProviderClient) GetAccessProviderWhoList

func (a *AccessProviderClient) GetAccessProviderWhoList(ctx context.Context, id string, ops ...func(*AccessProviderWhoListOptions)) <-chan types.ListItem[types.AccessProviderWhoListItem]

GetAccessProviderWhoList returns all who items of an AccessProvider in Raito Cloud. The order of the list can be specified with WithAccessProviderWhoListOrder. A channel is returned that can be used to receive the list of AccessProviderWhoListItem. To close the channel ensure to cancel the context.

func (*AccessProviderClient) ListAccessProviders

func (a *AccessProviderClient) ListAccessProviders(ctx context.Context, ops ...func(*AccessProviderListOptions)) <-chan types.ListItem[types.AccessProvider]

ListAccessProviders returns a list of AccessProviders in Raito Cloud. The order of the list can be specified with WithAccessProviderListOrder. A filter can be specified with WithAccessProviderListFilter. A channel is returned that can be used to receive the list of AccessProviders. To close the channel ensure to cancel the context.

func (*AccessProviderClient) UpdateAccessProvider

func (a *AccessProviderClient) UpdateAccessProvider(ctx context.Context, id string, ap schema.AccessProviderInput, ops ...func(options *UpdateAccessProviderOptions)) (*types.AccessProvider, error)

UpdateAccessProvider updates an existing AccessProvider in Raito Cloud. The updated AccessProvider is returned if the update is successful. Otherwise, an error is returned.

type AccessProviderListOptions

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

type AccessProviderWhatAccessProviderListOptions

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

AccessProviderWhatAccessProviderListOptions options for listing what access providers of an AccessProvider in Raito Cloud.

type AccessProviderWhatListOptions

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

type AccessProviderWhoListOptions

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

type DataObjectClient

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

func NewDataObjectClient

func NewDataObjectClient(client graphql.Client) DataObjectClient

func (*DataObjectClient) GetDataObject added in v0.0.8

func (c *DataObjectClient) GetDataObject(ctx context.Context, id string) (*types.DataObject, error)

GetDataObject returns a DataObject by id.

func (*DataObjectClient) GetDataObjectIdByName

func (c *DataObjectClient) GetDataObjectIdByName(ctx context.Context, fullname string, dataSource string) (string, error)

GetDataObjectIdByName returns the ID of the DataObject with the given name and dataSource.

func (*DataObjectClient) ListDataObjects added in v0.0.8

func (c *DataObjectClient) ListDataObjects(ctx context.Context, ops ...func(options *DataObjectListOptions)) <-chan types.ListItem[types.DataObject]

ListDataObjects returns a list of DataObjects The order of the list can be specified with WithDataObjectListOrder A filter can be specified with WithDataObjectListFilter A channel is returned that can be used to receive the list of DataObjectListItem To close the channel ensure to cancel the context

type DataObjectListOptions added in v0.0.8

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

type DataSourceClient

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

func NewDataSourceClient

func NewDataSourceClient(client graphql.Client) DataSourceClient

func (*DataSourceClient) AddIdentityStoreToDataSource

func (c *DataSourceClient) AddIdentityStoreToDataSource(ctx context.Context, dsId string, isId string) error

AddIdentityStoreToDataSource adds an existing IdentityStore to an existing DataSource. Returns nil if successful. Otherwise, returns an error.

func (*DataSourceClient) CreateDataSource

func (c *DataSourceClient) CreateDataSource(ctx context.Context, ds types.DataSourceInput) (*types.DataSource, error)

CreateDataSource creates a new DataSource. Returns the newly created DataSource if successful. Otherwise, returns an error.

func (*DataSourceClient) DeleteDataSource

func (c *DataSourceClient) DeleteDataSource(ctx context.Context, id string) error

DeleteDataSource deletes an existing DataSource. Returns nil if successful. Otherwise, returns an error.

func (*DataSourceClient) GetDataSource

func (c *DataSourceClient) GetDataSource(ctx context.Context, id string) (*types.DataSource, error)

GetDataSource returns an existing DataSource.

func (*DataSourceClient) GetMaskingMetadata

func (c *DataSourceClient) GetMaskingMetadata(ctx context.Context, id string) (*types.MaskingMetadata, error)

GetMaskingMetadata Get masking information for a DataSource

func (*DataSourceClient) ListDataSources

func (c *DataSourceClient) ListDataSources(ctx context.Context, ops ...func(*DataSourceListOptions)) <-chan types.ListItem[types.DataSource]

ListDataSources return a list of DataSources The order of the list can be specified with WithDataSourceListOrder. A filter can be specified with WithDataSourceListFilter. A channel is returned that can be used to receive the list of DataSourceListItem. To close the channel ensure to cancel the context.

func (*DataSourceClient) ListIdentityStores

func (c *DataSourceClient) ListIdentityStores(ctx context.Context, dsId string) ([]types.IdentityStore, error)

ListIdentityStores returns a list of IdentityStores for a given DataSource.

func (*DataSourceClient) RemoveIdentityStoreFromDataSource

func (c *DataSourceClient) RemoveIdentityStoreFromDataSource(ctx context.Context, dsId string, isId string) error

func (*DataSourceClient) UpdateDataSource

func (c *DataSourceClient) UpdateDataSource(ctx context.Context, id string, ds types.DataSourceInput) (*types.DataSource, error)

UpdateDataSource updates an existing DataSource. Returns the updated DataSource if successful. Otherwise, returns an error.

type DataSourceListOptions

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

DataSourceListOptions list options for listing DataSources.

type GrantCategoryClient added in v0.0.13

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

func NewGrantCategoryClient added in v0.0.13

func NewGrantCategoryClient(client graphql.Client) GrantCategoryClient

func (*GrantCategoryClient) CreateGrantCategory added in v0.0.13

func (a *GrantCategoryClient) CreateGrantCategory(ctx context.Context, category types.GrantCategoryInput) (*types.GrantCategoryDetails, error)

CreateGrantCategory creates a new GrantCategory. The newly created GrantCategory is returned if successful. Otherwise, an error is returned.

func (*GrantCategoryClient) DeleteGrantCategory added in v0.0.13

func (a *GrantCategoryClient) DeleteGrantCategory(ctx context.Context, id string) error

DeleteGrantCategory deletes an existing GrantCategory. Returns nil if successful. Otherwise, returns an error.

func (*GrantCategoryClient) GetGrantCategory added in v0.0.13

func (a *GrantCategoryClient) GetGrantCategory(ctx context.Context, id string) (*types.GrantCategoryDetails, error)

GetGrantCategory retrieves an existing GrantCategory. Returns the GrantCategory if successful. Otherwise, returns an error.

func (*GrantCategoryClient) ListGrantCategories added in v0.0.13

func (a *GrantCategoryClient) ListGrantCategories(ctx context.Context) ([]types.GrantCategoryDetails, error)

ListGrantCategories retrieves all GrantCategories Returns a list of GrantCategories if successful. Otherwise, returns an error.

func (*GrantCategoryClient) UpdateGrantCategory added in v0.0.13

func (a *GrantCategoryClient) UpdateGrantCategory(ctx context.Context, id string, category types.GrantCategoryInput) (*types.GrantCategoryDetails, error)

UpdateGrantCategory updates an existing GrantCategory. The updated GrantCategory is returned if successful. Otherwise, an error is returned.

type IdentityStoreClient

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

func NewIdentityStoreClient

func NewIdentityStoreClient(client graphql.Client) IdentityStoreClient

func (*IdentityStoreClient) CreateIdentityStore

CreateIdentityStore creates a new IdentityStore for a given DataSource. Returns the newly created IdentityStore if successful. Otherwise, returns an error.

func (*IdentityStoreClient) DeleteIdentityStore

func (c *IdentityStoreClient) DeleteIdentityStore(ctx context.Context, id string) error

DeleteIdentityStore deletes an existing IdentityStore for a given DataSource. If successful, returns nil. Otherwise, returns an error.

func (*IdentityStoreClient) GetIdentityStore

func (c *IdentityStoreClient) GetIdentityStore(ctx context.Context, id string) (*types.IdentityStore, error)

GetIdentityStore returns an existing IdentityStore for a given DataSource. If successful, returns the IdentityStore. Otherwise, returns an error.

func (*IdentityStoreClient) ListIdentityStores

func (c *IdentityStoreClient) ListIdentityStores(ctx context.Context, ops ...func(options *ListIdentityStoresOptions)) <-chan types.ListItem[types.IdentityStore]

ListIdentityStores returns a list of IdentityStores for a given DataSource. The order of the list can be specified with WithListIdentityStoresOrder. A filter can be specified with WithListIdentityStoresFilter. A channel is returned that can be used to receive the list of IdentityStores. To close the channel ensure to cancel the context.

func (*IdentityStoreClient) UpdateIdentityStore

func (c *IdentityStoreClient) UpdateIdentityStore(ctx context.Context, id string, is types.IdentityStoreInput) (*types.IdentityStore, error)

UpdateIdentityStore updates an existing IdentityStore for a given DataSource. Returns the updated IdentityStore if successful. Otherwise, returns an error.

func (*IdentityStoreClient) UpdateIdentityStoreMasterFlag

func (c *IdentityStoreClient) UpdateIdentityStoreMasterFlag(ctx context.Context, id string, master bool) (*types.IdentityStore, error)

UpdateIdentityStoreMasterFlag updates the master flag of an existing IdentityStore for a given DataSource. Returns the updated IdentityStore if successful. Otherwise, returns an error.

type InviteAsRaitoUserOptions

type InviteAsRaitoUserOptions struct {
	NoPassword bool
}

type ListIdentityStoresOptions

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

type RoleAssignmentListOptions

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

type RoleClient

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

func NewRoleClient

func NewRoleClient(client graphql.Client) RoleClient

func (*RoleClient) AssignGlobalRole

func (c *RoleClient) AssignGlobalRole(ctx context.Context, roelId string, to ...string) (*types.Role, error)

AssignGlobalRole create a role assignment between a global role and a set of users. roleId is the id of the role to assign. to is a list of user ids to assign the role to.

func (*RoleClient) AssignRoleOnAccessProvider

func (c *RoleClient) AssignRoleOnAccessProvider(ctx context.Context, roleId string, accessProviderId string, to ...string) (*types.Role, error)

AssignRoleOnAccessProvider create a role assignment between an access provider and a set of users. roleId is the id of the role to assign. accessProviderId is the id of the access provider to assign the role to. to is a list of user ids to assign the role to.

func (*RoleClient) AssignRoleOnDataObject

func (c *RoleClient) AssignRoleOnDataObject(ctx context.Context, roleId string, doId string, to ...string) (*types.Role, error)

AssignRoleOnDataObject create a role assignment between a data object and a set of users. roleId is the id of the role to assign. isId is the id of the identity store to assign the role to. to is a list of user ids to assign the role to.

func (*RoleClient) AssignRoleOnDataSource

func (c *RoleClient) AssignRoleOnDataSource(ctx context.Context, roleId string, dataSourceId string, to ...string) (*types.Role, error)

AssignRoleOnDataSource create a role assignment between a data source and a set of users. roleId is the id of the role to assign. dataSourceId is the id of the data source to assign the role to. to is a list of user ids to assign the role to.

func (*RoleClient) AssignRoleOnIdentityStore

func (c *RoleClient) AssignRoleOnIdentityStore(ctx context.Context, roleId string, isId string, to ...string) (*types.Role, error)

AssignRoleOnIdentityStore create a role assignment between an IdentityStore and a set of users. roleId is the id of the role to assign. isId is the id of the identity store to assign the role to. to is a list of user ids to assign the role to.

func (*RoleClient) GetRole

func (c *RoleClient) GetRole(ctx context.Context, id string) (*types.Role, error)

GetRole returns a role by ID Returns a Role if role is retrieved successfully, otherwise returns an error.

func (*RoleClient) ListRoleAssignments

func (c *RoleClient) ListRoleAssignments(ctx context.Context, ops ...func(*RoleAssignmentListOptions)) <-chan types.ListItem[types.RoleAssignment]

ListRoleAssignments returns a list of role assignments for a given role The order of the list can be specified with WithRoleAssignmentListOrder. A filter can be specified with WithRoleAssignmentListFilter A channel is returned that can be used to receive the list of types.RoleAssignment To close the channel ensure to cancel the context.

func (*RoleClient) ListRoleAssignmentsOnAccessProvider

func (c *RoleClient) ListRoleAssignmentsOnAccessProvider(ctx context.Context, accessProviderId string, ops ...func(*RoleAssignmentListOptions)) <-chan types.ListItem[types.RoleAssignment]

ListRoleAssignmentsOnAccessProvider returns a list of role assignments for a given role on an access provider. The order of the list can be specified with WithRoleAssignmentListOrder. A filter can be specified with WithRoleAssignmentListFilter. A channel is returned that can be used to receive the list of types.RoleAssignment. To close the channel ensure to cancel the context.

func (*RoleClient) ListRoleAssignmentsOnDataObject

func (c *RoleClient) ListRoleAssignmentsOnDataObject(ctx context.Context, objectId string, ops ...func(*RoleAssignmentListOptions)) <-chan types.ListItem[types.RoleAssignment]

ListRoleAssignmentsOnDataObject returns a list of role assignments for a given role on a given data object The order of the list can be specified with WithRoleAssignmentListOrder. A filter can be specified with WithRoleAssignmentListFilter. A channel is returned that can be used to receive the list of types.RoleAssignment. To close the channel ensure to cancel the context.

func (*RoleClient) ListRoleAssignmentsOnDataSource

func (c *RoleClient) ListRoleAssignmentsOnDataSource(ctx context.Context, dataSourceId string, ops ...func(*RoleAssignmentListOptions)) <-chan types.ListItem[types.RoleAssignment]

ListRoleAssignmentsOnDataSource returns a list of role assignments for a given role on a given data source The order of the list can be specified with WithRoleAssignmentListOrder. A filter can be specified with WithRoleAssignmentListFilter. A channel is returned that can be used to receive the list of types.RoleAssignment. To close the channel ensure to cancel the context.

func (*RoleClient) ListRoleAssignmentsOnIdentityStore

func (c *RoleClient) ListRoleAssignmentsOnIdentityStore(ctx context.Context, identityId string, ops ...func(*RoleAssignmentListOptions)) <-chan types.ListItem[types.RoleAssignment]

ListRoleAssignmentsOnIdentityStore returns a list of role assignments for a given role on a given identity The order of the list can be specified with WithRoleAssignmentListOrder. A filter can be specified with WithRoleAssignmentListFilter. A channel is returned that can be used to receive the list of types.RoleAssignment. To close the channel ensure to cancel the context.

func (*RoleClient) ListRoleAssignmentsOnUser

func (c *RoleClient) ListRoleAssignmentsOnUser(ctx context.Context, userId string, ops ...func(*RoleAssignmentListOptions)) <-chan types.ListItem[types.RoleAssignment]

ListRoleAssignmentsOnUser returns a list of role assignments for a given role on a given user. The order of the list can be specified with WithRoleAssignmentListOrder. A filter can be specified with WithRoleAssignmentListFilter. A channel is returned that can be used to receive the list of types.RoleAssignment. To close the channel ensure to cancel the context.

func (*RoleClient) ListRoles

func (c *RoleClient) ListRoles(ctx context.Context, ops ...func(*RoleListOptions)) <-chan types.ListItem[types.Role]

ListRoles returns a list of roles The order of the list can be specified with WithRoleListOrder. A filter can be specified with WithRoleListFilter. A channel is returned that can be used to receive the list of types.Role. To close the channel ensure to cancel the context.

func (*RoleClient) SetGlobalRoleForUsers

func (c *RoleClient) SetGlobalRoleForUsers(ctx context.Context, roleId string, assignees ...string) error

SetGlobalRoleForUsers sets a global role for a set of users. Existing global role assignments will be overwritten. roleId is the id of the global role to assign. assignees is a list of user ids to assign the global role to.

func (*RoleClient) UnassignGlobalRole

func (c *RoleClient) UnassignGlobalRole(ctx context.Context, roleId string, from ...string) (*types.Role, error)

UnassignGlobalRole removes a role assignment between a global role and a set of users. roleId is the id of the role to unassign. from is a list of user ids to unassign the role from.

func (*RoleClient) UnassignRoleFromAccessProvider

func (c *RoleClient) UnassignRoleFromAccessProvider(ctx context.Context, roleId string, accessProviderId string, from ...string) (*types.Role, error)

UnassignRoleFromAccessProvider removes a role assignment between an access provider and a set of users roleId is the id of the role to unassign. accessProviderId is the id of the access provider to unassign the role from. from is a list of user ids to unassign the role from.

func (*RoleClient) UnassignRoleFromDataObject

func (c *RoleClient) UnassignRoleFromDataObject(ctx context.Context, roleId string, doId string, from ...string) (*types.Role, error)

UnassignRoleFromDataObject removes a role assignment between a data object and a set of users. roleId is the id of the role to unassign. doId is the id of the data object to unassign the role from. from is a list of user ids to unassign the role from.

func (*RoleClient) UnassignRoleFromDataSource

func (c *RoleClient) UnassignRoleFromDataSource(ctx context.Context, roleId string, dataSourceId string, from ...string) (*types.Role, error)

UnassignRoleFromDataSource removes a role assignment between a data source and a set of users. roleId is the id of the role to unassign. dataSourceId is the id of the data source to unassign the role from. from is a list of user ids to unassign the role from.

func (*RoleClient) UnassignRoleFromIdentityStore

func (c *RoleClient) UnassignRoleFromIdentityStore(ctx context.Context, roleId string, isId string, from ...string) (*types.Role, error)

UnassignRoleFromIdentityStore removes a role assignment between an IdentityStore and a set of users roleId is the id of the role to unassign. isId is the id of the identity store to unassign the role from. from is a list of user ids to unassign the role from.

func (*RoleClient) UpdateRoleAssigneesOnAccessProvider

func (c *RoleClient) UpdateRoleAssigneesOnAccessProvider(ctx context.Context, accessProviderId string, roleId string, assignees ...string) (*types.Role, error)

UpdateRoleAssigneesOnAccessProvider updates a role assignment between an access provider and a set of users. Existing role assignments will be overwritten. accessProviderId is the id of the access provider to assign the role to. roleId is the id of the role to assign. assignees is a list of user ids to assign the role to.

func (*RoleClient) UpdateRoleAssigneesOnDataObject

func (c *RoleClient) UpdateRoleAssigneesOnDataObject(ctx context.Context, doId string, roleId string, assignees ...string) (*types.Role, error)

UpdateRoleAssigneesOnDataObject updates a role assignment between a data object and a set of users. Existing role assignments will be overwritten. doId is the id of the data object to assign the role to. roleId is the id of the role to assign. assignees is a list of user ids to assign the role to.

func (*RoleClient) UpdateRoleAssigneesOnDataSource

func (c *RoleClient) UpdateRoleAssigneesOnDataSource(ctx context.Context, dataSourceId string, roleId string, assignees ...string) (*types.Role, error)

UpdateRoleAssigneesOnDataSource updates a role assignment between a data source and a set of users Existing role assignments will be overwritten. dataSourceId is the id of the data source to assign the role to. roleId is the id of the role to assign. assignees is a list of user ids to assign the role to.

func (*RoleClient) UpdateRoleAssigneesOnIdentityStore

func (c *RoleClient) UpdateRoleAssigneesOnIdentityStore(ctx context.Context, isId string, roleId string, assignees ...string) (*types.Role, error)

UpdateRoleAssigneesOnIdentityStore updates a role assignment between an IdentityStore and a set of users. Existing role assignments will be overwritten. isId is the id of the identity store to assign the role to. roleId is the id of the role to assign. assignees is a list of user ids to assign the role to.

type RoleListOptions

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

type UpdateAccessProviderOptions

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

type UserClient

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

func NewUserClient

func NewUserClient(client graphql.Client) UserClient

func (*UserClient) CreateUser

func (c *UserClient) CreateUser(ctx context.Context, userInput types.UserInput) (*types.User, error)

CreateUser creates a new user in Raito Cloud Returns a User if user is created successfully, otherwise returns an error.

func (*UserClient) DeleteUser

func (c *UserClient) DeleteUser(ctx context.Context, id string) error

DeleteUser deletes an existing user from Raito Cloud Returns nil if user is deleted successfully, otherwise returns an error.

func (*UserClient) GetCurrentUser added in v0.0.11

func (c *UserClient) GetCurrentUser(ctx context.Context) (*types.User, error)

func (*UserClient) GetUser

func (c *UserClient) GetUser(ctx context.Context, id string) (*types.User, error)

GetUser returns the user with the given ID. Returns a User if the user is found, otherwise returns an error.

func (*UserClient) GetUserByEmail

func (c *UserClient) GetUserByEmail(ctx context.Context, email string) (*types.User, error)

GetUserByEmail Get a user by their email address. Returns a User if user is found, otherwise returns an error.

func (*UserClient) InviteAsRaitoUser

func (c *UserClient) InviteAsRaitoUser(ctx context.Context, id string, ops ...func(*InviteAsRaitoUserOptions)) (*types.User, error)

InviteAsRaitoUser invites an existing user as Raito User id is the id of the user to invite. WithInviteAsRaitoUserNoPassword can be used to add the option to not send a password to the invited user.

func (*UserClient) RemoveAsRaitoUser

func (c *UserClient) RemoveAsRaitoUser(ctx context.Context, id string) (*types.User, error)

RemoveAsRaitoUser removes an existing user from Raito Cloud id is the id of the user to remove.

func (*UserClient) SetUserPassword

func (c *UserClient) SetUserPassword(ctx context.Context, id string, password string) (*types.User, error)

SetUserPassword sets the password for an existing user in Raito Cloud id is the id of the user to set the password for. password is the password to set for the user.

func (*UserClient) UpdateUser

func (c *UserClient) UpdateUser(ctx context.Context, id string, userInput types.UserInput) (*types.User, error)

UpdateUser updates an existing user in Raito Cloud Returns a User if user is updated successfully, otherwise returns an error.

Jump to

Keyboard shortcuts

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