Documentation
¶
Index ¶
- type CustomRole
- func (o CustomRole) MarshalJSON() ([]byte, error)
- func (o *CustomRole) SetDescription(v *string) *CustomRole
- func (o *CustomRole) SetID(v *string) *CustomRole
- func (o *CustomRole) SetName(v *string) *CustomRole
- func (o *CustomRole) SetPermissions(v []*Permission) *CustomRole
- func (o *CustomRole) SetStackRestriction(v *string) *CustomRole
- type Permission
- type Service
- type ServiceOp
- func (s *ServiceOp) CreateCustomRole(ctx context.Context, input *CustomRole) (*CustomRole, error)
- func (s *ServiceOp) DeleteCustomRole(ctx context.Context, id string) (*commons.EmptyResponse, error)
- func (s *ServiceOp) ListCustomRoles(ctx context.Context, customRoleId *string, customRoleName *string) ([]*CustomRole, error)
- func (s *ServiceOp) ReadCustomRole(ctx context.Context, customRoleId string) (*CustomRole, error)
- func (s *ServiceOp) UpdateCustomRole(ctx context.Context, id string, input *CustomRole) (*CustomRole, error)
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.
type ServiceOp ¶
func (*ServiceOp) CreateCustomRole ¶
func (s *ServiceOp) CreateCustomRole(ctx context.Context, input *CustomRole) (*CustomRole, error)
func (*ServiceOp) DeleteCustomRole ¶
func (*ServiceOp) ListCustomRoles ¶
func (*ServiceOp) ReadCustomRole ¶
func (*ServiceOp) UpdateCustomRole ¶
func (s *ServiceOp) UpdateCustomRole(ctx context.Context, id string, input *CustomRole) (*CustomRole, error)
Click to show internal directories.
Click to hide internal directories.