rules

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequiredCompanyIDOrProjectID = fmt.Errorf("at least one of company id or project id is required, please set it via flag or context")
)

Functions

func ListCmd

func ListCmd(options *clioptions.CLIOptions) *cobra.Command

func UpdateRules

func UpdateRules(o *clioptions.CLIOptions) *cobra.Command

Types

type IRulesClient

type IRulesClient interface {
	ListTenantRules(ctx context.Context, companyID string) ([]*rulesentities.SaveChangesRules, error)
	ListProjectRules(ctx context.Context, projectID string) ([]*rulesentities.ProjectSaveChangesRules, error)
	UpdateTenantRules(ctx context.Context, companyID string, rules []*rulesentities.SaveChangesRules) error
	UpdateProjectRules(ctx context.Context, projectID string, rules []*rulesentities.SaveChangesRules) error
}

func New

type UpdateRequestBody

type UpdateRequestBody struct {
	ConfigurationManagement *resources.ConfigurationManagement `json:"configurationManagement"`
}

Jump to

Keyboard shortcuts

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