custom_role

package
v1.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomRole

type CustomRole struct {
	ID               *string       `json:"id,omitempty"` // read-only
	Name             *string       `json:"name,omitempty"`
	Description      *string       `json:"description,omitempty"`
	Permissions      []*Permission `json:"permissions,omitempty"`
	StackRestriction *string       `json:"stackRestriction,omitempty"`
	// contains filtered or unexported fields
}

func (CustomRole) MarshalJSON

func (o CustomRole) MarshalJSON() ([]byte, error)

func (*CustomRole) SetDescription

func (o *CustomRole) SetDescription(v *string) *CustomRole

func (*CustomRole) SetID

func (o *CustomRole) SetID(v *string) *CustomRole

func (*CustomRole) SetName

func (o *CustomRole) SetName(v *string) *CustomRole

func (*CustomRole) SetPermissions

func (o *CustomRole) SetPermissions(v []*Permission) *CustomRole

func (*CustomRole) SetStackRestriction

func (o *CustomRole) SetStackRestriction(v *string) *CustomRole

type Permission

type Permission struct {
	Name *string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (Permission) MarshalJSON

func (o Permission) MarshalJSON() ([]byte, error)

func (*Permission) SetName

func (o *Permission) SetName(v *string) *Permission

type Service

type Service interface {
	CreateCustomRole(context.Context, *CustomRole) (*CustomRole, error)
	ListCustomRoles(context.Context, *string, *string) ([]*CustomRole, error)
	ReadCustomRole(context.Context, string) (*CustomRole, error)
	UpdateCustomRole(context.Context, string, *CustomRole) (*CustomRole, error)
	DeleteCustomRole(context.Context, string) (*commons.EmptyResponse, error)
}

Service provides the API operation methods for making requests to endpoints of the ControlMonkey API. See this package's package overview docs for details on the service.

func New

func New(sess *session.Session, cfgs ...*controlmonkey.Config) Service

type ServiceOp

type ServiceOp struct {
	Client *client.Client
}

func (*ServiceOp) CreateCustomRole

func (s *ServiceOp) CreateCustomRole(ctx context.Context, input *CustomRole) (*CustomRole, error)

func (*ServiceOp) DeleteCustomRole

func (s *ServiceOp) DeleteCustomRole(ctx context.Context, id string) (*commons.EmptyResponse, error)

func (*ServiceOp) ListCustomRoles

func (s *ServiceOp) ListCustomRoles(ctx context.Context, customRoleId *string, customRoleName *string) ([]*CustomRole, error)

func (*ServiceOp) ReadCustomRole

func (s *ServiceOp) ReadCustomRole(ctx context.Context, customRoleId string) (*CustomRole, error)

func (*ServiceOp) UpdateCustomRole

func (s *ServiceOp) UpdateCustomRole(ctx context.Context, id string, input *CustomRole) (*CustomRole, error)

Jump to

Keyboard shortcuts

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