rolecollection

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NoRoleCollection           = ApiScenario("NO_ROLE_COLLECTION")
	InternalServerError        = ApiScenario("INTERNAL_SERVER_ERROR")
	InvalidCreds               = ApiScenario("INVALID_CREDS")
	RoleCollectionWithoutRoles = ApiScenario("ROLE_COLLECTION_WITHOUT_ROLES")
	RoleCollectionWithRoles    = ApiScenario("ROLE_COLLECTION_WITH_ROLES")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiScenario

type ApiScenario string

type XsuaaRoleCollectionMaintainer

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

func NewXsuaaRoleCollectionMaintainer

func NewXsuaaRoleCollectionMaintainer(ctx context.Context, clientId, clientSecret, tokenUrl, apiUrl string) *XsuaaRoleCollectionMaintainer

NewXsuaaRoleCollectionMaintainer initializes new XsuaaRoleCollectionMaintainer with auth configuration

func (*XsuaaRoleCollectionMaintainer) AddRolesToRoleCollection

func (x *XsuaaRoleCollectionMaintainer) AddRolesToRoleCollection(ctx context.Context, roleCollectionName string, roles []xsuaa.RoleReference) error

AddRolesToRoleCollection adds roles to a role collection using the xsuaa api

func (*XsuaaRoleCollectionMaintainer) Create

func (*XsuaaRoleCollectionMaintainer) Delete

func (x *XsuaaRoleCollectionMaintainer) Delete(ctx context.Context, roleCollectionName string) error

func (*XsuaaRoleCollectionMaintainer) DeleteRolesFromRoleCollection

func (x *XsuaaRoleCollectionMaintainer) DeleteRolesFromRoleCollection(ctx context.Context, roleCollectionName string, roles []xsuaa.RoleReference) error

DeleteRolesFromRoleCollection deletes roles from a role collection using the xsuaa api

func (*XsuaaRoleCollectionMaintainer) GenerateObservation

func (x *XsuaaRoleCollectionMaintainer) GenerateObservation(ctx context.Context, roleCollectionName string) (v1alpha1.RoleCollectionObservation, error)

func (*XsuaaRoleCollectionMaintainer) NeedsCreation

func (*XsuaaRoleCollectionMaintainer) NeedsUpdate

func (*XsuaaRoleCollectionMaintainer) Update

func (*XsuaaRoleCollectionMaintainer) UpdateDescription

func (x *XsuaaRoleCollectionMaintainer) UpdateDescription(ctx context.Context, roleCollectionName string, description *string) error

UpdateDescription updates the description of a role collection using the xsuaa api

Jump to

Keyboard shortcuts

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