roleapi

package
v1.2.30 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBlessing

func AddBlessing(params AddBlessingParams) error

AddBlessing adds a role blessing to a runner ID.

func Create

func Create(params CreateParams) error

Create creates a new role.

func Delete

func Delete(params DeleteParams) error

Delete delets a role by ID.

func List

func List(params ListParams) (*models.RoleAggregates, error)

List returns the platform's roles

func SetBlessings

func SetBlessings(params SetBlessingsParams) error

SetBlessings sets a role blessing definitions, the update uses PUT meaning it does not require a Role with the current + updated data, only requiring the changes which want to be updated.

func Show

func Show(params ShowParams) (*models.RoleAggregate, error)

Show returns a platform's role by ID

func Update

func Update(params UpdateParams) error

Update updates a role definition, the update uses PUT meaning it does not require a Role with the current + updated data, only requiring the changes which want to be updated

Types

type AddBlessingParams

type AddBlessingParams struct {
	*api.API

	Blessing *models.Blessing
	RunnerID string
	ID       string
	Region   string
}

AddBlessingParams is consumed by AddBlessing.

func (AddBlessingParams) Validate

func (params AddBlessingParams) Validate() error

Validate ensures the parameters are usable.

type CreateParams

type CreateParams struct {
	*api.API

	Role   *models.RoleAggregateCreateData
	Region string
}

CreateParams is consumed by Create.

func (CreateParams) Validate

func (params CreateParams) Validate() error

Validate ensures the parameters are usable

type DeleteParams

type DeleteParams struct {
	*api.API

	ID     string
	Region string
}

DeleteParams is consumed by Delete.

func (DeleteParams) Validate

func (params DeleteParams) Validate() error

Validate ensures the parameters are usable.

type ListParams

type ListParams struct {
	*api.API
	Region string
}

ListParams is consumed by List.

func (ListParams) Validate

func (params ListParams) Validate() error

Validate ensures the parameters are valid

type SetBlessingsParams

type SetBlessingsParams struct {
	*api.API

	Blessings *models.Blessings
	ID        string
	Region    string
}

SetBlessingsParams is consumed by SetBlessings.

func (SetBlessingsParams) Validate

func (params SetBlessingsParams) Validate() error

Validate ensures the parameters are usable.

type ShowParams

type ShowParams struct {
	*api.API

	ID     string
	Region string
}

ShowParams is consumed by Show.

func (ShowParams) Validate

func (params ShowParams) Validate() error

Validate ensures the parameters are valid

type UpdateParams

type UpdateParams struct {
	*api.API

	Role   *models.Role
	ID     string
	Region string
}

UpdateParams is consumed by Update.

func (UpdateParams) Validate

func (params UpdateParams) Validate() error

Validate ensures the parameters are usable.

Jump to

Keyboard shortcuts

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