Documentation
¶
Index ¶
- Constants
- type ApiScenario
- type XsuaaRoleCollectionMaintainer
- func (x *XsuaaRoleCollectionMaintainer) AddRolesToRoleCollection(ctx context.Context, roleCollectionName string, roles []xsuaa.RoleReference) error
- func (x *XsuaaRoleCollectionMaintainer) Create(ctx context.Context, params v1alpha1.RoleCollectionParameters) (string, error)
- func (x *XsuaaRoleCollectionMaintainer) Delete(ctx context.Context, roleCollectionName string) error
- func (x *XsuaaRoleCollectionMaintainer) DeleteRolesFromRoleCollection(ctx context.Context, roleCollectionName string, roles []xsuaa.RoleReference) error
- func (x *XsuaaRoleCollectionMaintainer) GenerateObservation(ctx context.Context, roleCollectionName string) (v1alpha1.RoleCollectionObservation, error)
- func (x *XsuaaRoleCollectionMaintainer) NeedsCreation(observation v1alpha1.RoleCollectionObservation) bool
- func (x *XsuaaRoleCollectionMaintainer) NeedsUpdate(params v1alpha1.RoleCollectionParameters, ...) bool
- func (x *XsuaaRoleCollectionMaintainer) Update(ctx context.Context, roleCollectionName string, ...) error
- func (x *XsuaaRoleCollectionMaintainer) UpdateDescription(ctx context.Context, roleCollectionName string, description *string) error
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 (x *XsuaaRoleCollectionMaintainer) Create(ctx context.Context, params v1alpha1.RoleCollectionParameters) (string, error)
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 (x *XsuaaRoleCollectionMaintainer) NeedsCreation(observation v1alpha1.RoleCollectionObservation) bool
func (*XsuaaRoleCollectionMaintainer) NeedsUpdate ¶
func (x *XsuaaRoleCollectionMaintainer) NeedsUpdate(params v1alpha1.RoleCollectionParameters, obs v1alpha1.RoleCollectionObservation) bool
func (*XsuaaRoleCollectionMaintainer) Update ¶
func (x *XsuaaRoleCollectionMaintainer) Update(ctx context.Context, roleCollectionName string, params v1alpha1.RoleCollectionParameters, obs v1alpha1.RoleCollectionObservation) error
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
Click to show internal directories.
Click to hide internal directories.