Documentation ¶
Index ¶
- func CreateAssignmentFailErrMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
- func CreateAssignmentFailJSONMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
- func CreateAssignmentFailStatusMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
- func CreateAssignmentMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
- func CreateDefinitionFailErrMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
- func CreateDefinitionFailJSONMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
- func CreateDefinitionFailStatusMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
- func CreateDefinitionMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
- func DeleteAssignmentFailErrMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment)
- func DeleteAssignmentFailJSONMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
- func DeleteAssignmentFailStatusMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment)
- func DeleteAssignmentMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment)
- func DeleteDefinitionFailErrMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition)
- func DeleteDefinitionFailStatusMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition)
- func DeleteDefinitionMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition)
- func GetAssignmentFailErrMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
- func GetAssignmentFailJSONMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
- func GetAssignmentFailStatusMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
- func GetAssignmentMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
- func GetCloudAccountFailErrMocked(t *testing.T, cloudAccountIn *types.CloudAccount) *types.CloudAccount
- func GetCloudAccountFailJSONMocked(t *testing.T, cloudAccountIn *types.CloudAccount) *types.CloudAccount
- func GetCloudAccountFailStatusMocked(t *testing.T, cloudAccountIn *types.CloudAccount) *types.CloudAccount
- func GetCloudAccountMocked(t *testing.T, cloudAccountIn *types.CloudAccount) *types.CloudAccount
- func GetDefinitionFailErrMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
- func GetDefinitionFailJSONMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
- func GetDefinitionFailStatusMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
- func GetDefinitionMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
- func ListAssignmentsFailErrMocked(t *testing.T, cloudAccountID string, ...) []*types.PolicyAssignment
- func ListAssignmentsFailJSONMocked(t *testing.T, cloudAccountID string, ...) []*types.PolicyAssignment
- func ListAssignmentsFailStatusMocked(t *testing.T, cloudAccountID string, ...) []*types.PolicyAssignment
- func ListAssignmentsMocked(t *testing.T, cloudAccountID string, ...) []*types.PolicyAssignment
- func ListCloudAccountsFailErrMocked(t *testing.T, cloudAccountsIn []*types.CloudAccount) []*types.CloudAccount
- func ListCloudAccountsFailJSONMocked(t *testing.T, cloudAccountsIn []*types.CloudAccount) []*types.CloudAccount
- func ListCloudAccountsFailStatusMocked(t *testing.T, cloudAccountsIn []*types.CloudAccount) []*types.CloudAccount
- func ListCloudAccountsMocked(t *testing.T, cloudAccountsIn []*types.CloudAccount) []*types.CloudAccount
- func ListDefinitionAssignmentsFailErrMocked(t *testing.T, definitionID string, ...) []*types.PolicyAssignment
- func ListDefinitionAssignmentsFailJSONMocked(t *testing.T, definitionID string, ...) []*types.PolicyAssignment
- func ListDefinitionAssignmentsFailStatusMocked(t *testing.T, definitionID string, ...) []*types.PolicyAssignment
- func ListDefinitionAssignmentsMocked(t *testing.T, definitionID string, ...) []*types.PolicyAssignment
- func ListDefinitionsFailErrMocked(t *testing.T, policyDefinitionsIn []*types.PolicyDefinition) []*types.PolicyDefinition
- func ListDefinitionsFailJSONMocked(t *testing.T, policyDefinitionsIn []*types.PolicyDefinition) []*types.PolicyDefinition
- func ListDefinitionsFailStatusMocked(t *testing.T, policyDefinitionsIn []*types.PolicyDefinition) []*types.PolicyDefinition
- func ListDefinitionsMocked(t *testing.T, policyDefinitionsIn []*types.PolicyDefinition) []*types.PolicyDefinition
- func UpdateAssignmentFailErrMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
- func UpdateAssignmentFailJSONMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
- func UpdateAssignmentFailStatusMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
- func UpdateAssignmentMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
- func UpdateDefinitionFailErrMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
- func UpdateDefinitionFailJSONMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
- func UpdateDefinitionFailStatusMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
- func UpdateDefinitionMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
- type CloudAccountService
- type PolicyAssignmentService
- func (pas *PolicyAssignmentService) CreateAssignment(definitionID string, assignmentParams *map[string]interface{}) (assignment *types.PolicyAssignment, err error)
- func (pas *PolicyAssignmentService) DeleteAssignment(assignmentID string) (assignment *types.PolicyAssignment, err error)
- func (pas *PolicyAssignmentService) GetAssignment(assignmentID string) (assignment *types.PolicyAssignment, err error)
- func (pas *PolicyAssignmentService) ListAssignments(cloudAccountID string) (assignments []*types.PolicyAssignment, err error)
- func (pas *PolicyAssignmentService) UpdateAssignment(assignmentID string, assignmentParams *map[string]interface{}) (assignment *types.PolicyAssignment, err error)
- type PolicyDefinitionService
- func (pds *PolicyDefinitionService) CreateDefinition(definitionParams *map[string]interface{}) (definition *types.PolicyDefinition, err error)
- func (pds *PolicyDefinitionService) DeleteDefinition(definitionID string) (err error)
- func (pds *PolicyDefinitionService) GetDefinition(definitionID string) (definition *types.PolicyDefinition, err error)
- func (pds *PolicyDefinitionService) ListAssignments(definitionID string) (assignments []*types.PolicyAssignment, err error)
- func (pds *PolicyDefinitionService) ListDefinitions() (definitions []*types.PolicyDefinition, err error)
- func (pds *PolicyDefinitionService) UpdateDefinition(definitionID string, definitionParams *map[string]interface{}) (definition *types.PolicyDefinition, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAssignmentFailErrMocked ¶ added in v0.12.0
func CreateAssignmentFailErrMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
CreateAssignmentFailErrMocked test mocked function
func CreateAssignmentFailJSONMocked ¶ added in v0.12.0
func CreateAssignmentFailJSONMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
CreateAssignmentFailJSONMocked test mocked function
func CreateAssignmentFailStatusMocked ¶ added in v0.12.0
func CreateAssignmentFailStatusMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
CreateAssignmentFailStatusMocked test mocked function
func CreateAssignmentMocked ¶ added in v0.12.0
func CreateAssignmentMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
CreateAssignmentMocked test mocked function
func CreateDefinitionFailErrMocked ¶ added in v0.12.0
func CreateDefinitionFailErrMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
CreateDefinitionFailErrMocked test mocked function
func CreateDefinitionFailJSONMocked ¶ added in v0.12.0
func CreateDefinitionFailJSONMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
CreateDefinitionFailJSONMocked test mocked function
func CreateDefinitionFailStatusMocked ¶ added in v0.12.0
func CreateDefinitionFailStatusMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
CreateDefinitionFailStatusMocked test mocked function
func CreateDefinitionMocked ¶ added in v0.12.0
func CreateDefinitionMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
CreateDefinitionMocked test mocked function
func DeleteAssignmentFailErrMocked ¶ added in v0.12.0
func DeleteAssignmentFailErrMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment)
DeleteAssignmentFailErrMocked test mocked function
func DeleteAssignmentFailJSONMocked ¶ added in v0.12.0
func DeleteAssignmentFailJSONMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
DeleteAssignmentFailJSONMocked test mocked function
func DeleteAssignmentFailStatusMocked ¶ added in v0.12.0
func DeleteAssignmentFailStatusMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment)
DeleteAssignmentFailStatusMocked test mocked function
func DeleteAssignmentMocked ¶ added in v0.12.0
func DeleteAssignmentMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment)
DeleteAssignmentMocked test mocked function
func DeleteDefinitionFailErrMocked ¶ added in v0.12.0
func DeleteDefinitionFailErrMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition)
DeleteDefinitionFailErrMocked test mocked function
func DeleteDefinitionFailStatusMocked ¶ added in v0.12.0
func DeleteDefinitionFailStatusMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition)
DeleteDefinitionFailStatusMocked test mocked function
func DeleteDefinitionMocked ¶ added in v0.12.0
func DeleteDefinitionMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition)
DeleteDefinitionMocked test mocked function
func GetAssignmentFailErrMocked ¶ added in v0.12.0
func GetAssignmentFailErrMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
GetAssignmentFailErrMocked test mocked function
func GetAssignmentFailJSONMocked ¶ added in v0.12.0
func GetAssignmentFailJSONMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
GetAssignmentFailJSONMocked test mocked function
func GetAssignmentFailStatusMocked ¶ added in v0.12.0
func GetAssignmentFailStatusMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
GetAssignmentFailStatusMocked test mocked function
func GetAssignmentMocked ¶ added in v0.12.0
func GetAssignmentMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
GetAssignmentMocked test mocked function
func GetCloudAccountFailErrMocked ¶ added in v0.9.0
func GetCloudAccountFailErrMocked(t *testing.T, cloudAccountIn *types.CloudAccount) *types.CloudAccount
GetCloudAccountFailErrMocked test mocked function
func GetCloudAccountFailJSONMocked ¶ added in v0.9.0
func GetCloudAccountFailJSONMocked(t *testing.T, cloudAccountIn *types.CloudAccount) *types.CloudAccount
GetCloudAccountFailJSONMocked test mocked function
func GetCloudAccountFailStatusMocked ¶ added in v0.9.0
func GetCloudAccountFailStatusMocked(t *testing.T, cloudAccountIn *types.CloudAccount) *types.CloudAccount
GetCloudAccountFailStatusMocked test mocked function
func GetCloudAccountMocked ¶ added in v0.9.0
func GetCloudAccountMocked(t *testing.T, cloudAccountIn *types.CloudAccount) *types.CloudAccount
GetCloudAccountMocked test mocked function
func GetDefinitionFailErrMocked ¶ added in v0.12.0
func GetDefinitionFailErrMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
GetDefinitionFailErrMocked test mocked function
func GetDefinitionFailJSONMocked ¶ added in v0.12.0
func GetDefinitionFailJSONMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
GetDefinitionFailJSONMocked test mocked function
func GetDefinitionFailStatusMocked ¶ added in v0.12.0
func GetDefinitionFailStatusMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
GetDefinitionFailStatusMocked test mocked function
func GetDefinitionMocked ¶ added in v0.12.0
func GetDefinitionMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
GetDefinitionMocked test mocked function
func ListAssignmentsFailErrMocked ¶ added in v0.12.0
func ListAssignmentsFailErrMocked(t *testing.T, cloudAccountID string, policyAssignmentsIn []*types.PolicyAssignment) []*types.PolicyAssignment
ListAssignmentsFailErrMocked test mocked function
func ListAssignmentsFailJSONMocked ¶ added in v0.12.0
func ListAssignmentsFailJSONMocked(t *testing.T, cloudAccountID string, policyAssignmentsIn []*types.PolicyAssignment) []*types.PolicyAssignment
ListAssignmentsFailJSONMocked test mocked function
func ListAssignmentsFailStatusMocked ¶ added in v0.12.0
func ListAssignmentsFailStatusMocked(t *testing.T, cloudAccountID string, policyAssignmentsIn []*types.PolicyAssignment) []*types.PolicyAssignment
ListAssignmentsFailStatusMocked test mocked function
func ListAssignmentsMocked ¶ added in v0.12.0
func ListAssignmentsMocked(t *testing.T, cloudAccountID string, policyAssignmentsIn []*types.PolicyAssignment) []*types.PolicyAssignment
ListAssignmentsMocked test mocked function
func ListCloudAccountsFailErrMocked ¶ added in v0.12.0
func ListCloudAccountsFailErrMocked(t *testing.T, cloudAccountsIn []*types.CloudAccount) []*types.CloudAccount
ListCloudAccountsFailErrMocked test mocked function
func ListCloudAccountsFailJSONMocked ¶ added in v0.12.0
func ListCloudAccountsFailJSONMocked(t *testing.T, cloudAccountsIn []*types.CloudAccount) []*types.CloudAccount
ListCloudAccountsFailJSONMocked test mocked function
func ListCloudAccountsFailStatusMocked ¶ added in v0.12.0
func ListCloudAccountsFailStatusMocked(t *testing.T, cloudAccountsIn []*types.CloudAccount) []*types.CloudAccount
ListCloudAccountsFailStatusMocked test mocked function
func ListCloudAccountsMocked ¶ added in v0.12.0
func ListCloudAccountsMocked(t *testing.T, cloudAccountsIn []*types.CloudAccount) []*types.CloudAccount
ListCloudAccountsMocked test mocked function
func ListDefinitionAssignmentsFailErrMocked ¶ added in v0.12.0
func ListDefinitionAssignmentsFailErrMocked(t *testing.T, definitionID string, policyAssignmentsIn []*types.PolicyAssignment) []*types.PolicyAssignment
ListDefinitionAssignmentsFailErrMocked test mocked function
func ListDefinitionAssignmentsFailJSONMocked ¶ added in v0.12.0
func ListDefinitionAssignmentsFailJSONMocked(t *testing.T, definitionID string, policyAssignmentsIn []*types.PolicyAssignment) []*types.PolicyAssignment
ListDefinitionAssignmentsFailJSONMocked test mocked function
func ListDefinitionAssignmentsFailStatusMocked ¶ added in v0.12.0
func ListDefinitionAssignmentsFailStatusMocked(t *testing.T, definitionID string, policyAssignmentsIn []*types.PolicyAssignment) []*types.PolicyAssignment
ListDefinitionAssignmentsFailStatusMocked test mocked function
func ListDefinitionAssignmentsMocked ¶ added in v0.12.0
func ListDefinitionAssignmentsMocked(t *testing.T, definitionID string, policyAssignmentsIn []*types.PolicyAssignment) []*types.PolicyAssignment
ListDefinitionAssignmentsMocked test mocked function
func ListDefinitionsFailErrMocked ¶ added in v0.12.0
func ListDefinitionsFailErrMocked(t *testing.T, policyDefinitionsIn []*types.PolicyDefinition) []*types.PolicyDefinition
ListDefinitionsFailErrMocked test mocked function
func ListDefinitionsFailJSONMocked ¶ added in v0.12.0
func ListDefinitionsFailJSONMocked(t *testing.T, policyDefinitionsIn []*types.PolicyDefinition) []*types.PolicyDefinition
ListDefinitionsFailJSONMocked test mocked function
func ListDefinitionsFailStatusMocked ¶ added in v0.12.0
func ListDefinitionsFailStatusMocked(t *testing.T, policyDefinitionsIn []*types.PolicyDefinition) []*types.PolicyDefinition
ListDefinitionsFailStatusMocked test mocked function
func ListDefinitionsMocked ¶ added in v0.12.0
func ListDefinitionsMocked(t *testing.T, policyDefinitionsIn []*types.PolicyDefinition) []*types.PolicyDefinition
ListDefinitionsMocked test mocked function
func UpdateAssignmentFailErrMocked ¶ added in v0.12.0
func UpdateAssignmentFailErrMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
UpdateAssignmentFailErrMocked test mocked function
func UpdateAssignmentFailJSONMocked ¶ added in v0.12.0
func UpdateAssignmentFailJSONMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
UpdateAssignmentFailJSONMocked test mocked function
func UpdateAssignmentFailStatusMocked ¶ added in v0.12.0
func UpdateAssignmentFailStatusMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
UpdateAssignmentFailStatusMocked test mocked function
func UpdateAssignmentMocked ¶ added in v0.12.0
func UpdateAssignmentMocked(t *testing.T, policyAssignmentIn *types.PolicyAssignment) *types.PolicyAssignment
UpdateAssignmentMocked test mocked function
func UpdateDefinitionFailErrMocked ¶ added in v0.12.0
func UpdateDefinitionFailErrMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
UpdateDefinitionFailErrMocked test mocked function
func UpdateDefinitionFailJSONMocked ¶ added in v0.12.0
func UpdateDefinitionFailJSONMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
UpdateDefinitionFailJSONMocked test mocked function
func UpdateDefinitionFailStatusMocked ¶ added in v0.12.0
func UpdateDefinitionFailStatusMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
UpdateDefinitionFailStatusMocked test mocked function
func UpdateDefinitionMocked ¶ added in v0.12.0
func UpdateDefinitionMocked(t *testing.T, policyDefinitionIn *types.PolicyDefinition) *types.PolicyDefinition
UpdateDefinitionMocked test mocked function
Types ¶
type CloudAccountService ¶
type CloudAccountService struct {
// contains filtered or unexported fields
}
CloudAccountService manages cloud account operations
func NewCloudAccountService ¶
func NewCloudAccountService(concertoService utils.ConcertoService) (*CloudAccountService, error)
NewCloudAccountService returns a Concerto cloudAccount service
func (*CloudAccountService) GetCloudAccount ¶ added in v0.9.0
func (cas *CloudAccountService) GetCloudAccount(cloudAccountID string) (cloudAccount *types.CloudAccount, err error)
GetCloudAccount returns a cloudAccount by its ID
func (*CloudAccountService) ListCloudAccounts ¶ added in v0.12.0
func (cas *CloudAccountService) ListCloudAccounts() (cloudAccounts []*types.CloudAccount, err error)
ListCloudAccounts returns the list of cloudAccounts as an array of CloudAccount
type PolicyAssignmentService ¶ added in v0.12.0
type PolicyAssignmentService struct {
// contains filtered or unexported fields
}
PolicyAssignmentService manages policy assignment operations
func NewPolicyAssignmentService ¶ added in v0.12.0
func NewPolicyAssignmentService(concertoService utils.ConcertoService) (*PolicyAssignmentService, error)
NewPolicyAssignmentService returns a Concerto policy assignment service
func (*PolicyAssignmentService) CreateAssignment ¶ added in v0.12.0
func (pas *PolicyAssignmentService) CreateAssignment(definitionID string, assignmentParams *map[string]interface{}) (assignment *types.PolicyAssignment, err error)
CreateAssignment creates an assignment
func (*PolicyAssignmentService) DeleteAssignment ¶ added in v0.12.0
func (pas *PolicyAssignmentService) DeleteAssignment(assignmentID string) (assignment *types.PolicyAssignment, err error)
DeleteAssignment deletes an assignment by its ID
func (*PolicyAssignmentService) GetAssignment ¶ added in v0.12.0
func (pas *PolicyAssignmentService) GetAssignment(assignmentID string) (assignment *types.PolicyAssignment, err error)
GetAssignment returns an assignment by its ID
func (*PolicyAssignmentService) ListAssignments ¶ added in v0.12.0
func (pas *PolicyAssignmentService) ListAssignments(cloudAccountID string) (assignments []*types.PolicyAssignment, err error)
ListAssignments returns the list of policy assignments as an array of PolicyAssignment
func (*PolicyAssignmentService) UpdateAssignment ¶ added in v0.12.0
func (pas *PolicyAssignmentService) UpdateAssignment(assignmentID string, assignmentParams *map[string]interface{}) (assignment *types.PolicyAssignment, err error)
UpdateAssignment updates an assignment by its ID
type PolicyDefinitionService ¶ added in v0.12.0
type PolicyDefinitionService struct {
// contains filtered or unexported fields
}
PolicyDefinitionService manages policy definition operations
func NewPolicyDefinitionService ¶ added in v0.12.0
func NewPolicyDefinitionService(concertoService utils.ConcertoService) (*PolicyDefinitionService, error)
NewPolicyDefinitionService returns a Concerto policy definition service
func (*PolicyDefinitionService) CreateDefinition ¶ added in v0.12.0
func (pds *PolicyDefinitionService) CreateDefinition(definitionParams *map[string]interface{}) (definition *types.PolicyDefinition, err error)
CreateDefinition creates a policy definition
func (*PolicyDefinitionService) DeleteDefinition ¶ added in v0.12.0
func (pds *PolicyDefinitionService) DeleteDefinition(definitionID string) (err error)
DeleteDefinition deletes a policy definition by its ID
func (*PolicyDefinitionService) GetDefinition ¶ added in v0.12.0
func (pds *PolicyDefinitionService) GetDefinition(definitionID string) (definition *types.PolicyDefinition, err error)
GetDefinition returns a policy definition by its ID
func (*PolicyDefinitionService) ListAssignments ¶ added in v0.12.0
func (pds *PolicyDefinitionService) ListAssignments(definitionID string) (assignments []*types.PolicyAssignment, err error)
ListAssignments returns the list of policy assignments for a policy definition as an array of PolicyAssignment
func (*PolicyDefinitionService) ListDefinitions ¶ added in v0.12.0
func (pds *PolicyDefinitionService) ListDefinitions() (definitions []*types.PolicyDefinition, err error)
ListDefinitions returns the list of policy definitions as an array of PolicyDefinition
func (*PolicyDefinitionService) UpdateDefinition ¶ added in v0.12.0
func (pds *PolicyDefinitionService) UpdateDefinition(definitionID string, definitionParams *map[string]interface{}) (definition *types.PolicyDefinition, err error)
UpdateDefinition updates a policy definition by its ID