custom_flow

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 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 CustomFlow

type CustomFlow struct {
	ID        *string `json:"id,omitempty"` // read-only
	Name      *string `json:"name,omitempty"`
	FlowYaml  *string `json:"flowYaml,omitempty"`
	IsEnabled *bool   `json:"isEnabled,omitempty"`
	// contains filtered or unexported fields
}

func (CustomFlow) MarshalJSON

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

func (*CustomFlow) SetFlowYaml

func (o *CustomFlow) SetFlowYaml(v *string) *CustomFlow

func (*CustomFlow) SetIsEnabled

func (o *CustomFlow) SetIsEnabled(v *bool) *CustomFlow

func (*CustomFlow) SetName

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

type CustomFlowMapping

type CustomFlowMapping struct {
	CustomFlowId *string `json:"customFlowId,omitempty"`
	TargetId     *string `json:"targetId,omitempty"`
	TargetType   *string `json:"targetType,omitempty"` //commons.PolicyMappingTargetTypes
	// contains filtered or unexported fields
}

func (CustomFlowMapping) MarshalJSON

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

func (*CustomFlowMapping) SetCustomFlowId

func (o *CustomFlowMapping) SetCustomFlowId(v *string) *CustomFlowMapping

func (*CustomFlowMapping) SetTargetId

func (o *CustomFlowMapping) SetTargetId(v *string) *CustomFlowMapping

func (*CustomFlowMapping) SetTargetType

func (o *CustomFlowMapping) SetTargetType(v *string) *CustomFlowMapping

type Service

type Service interface {
	CreateCustomFlow(context.Context, *CustomFlow) (*CustomFlow, error)
	ListCustomFlows(context.Context, *string, *string, *string, *string) ([]*CustomFlow, error)
	ReadCustomFlow(context.Context, string) (*CustomFlow, error)
	UpdateCustomFlow(context.Context, string, *CustomFlow) (*CustomFlow, error)
	DeleteCustomFlow(context.Context, string) (*commons.EmptyResponse, error)

	CreateCustomFlowMapping(context.Context, *CustomFlowMapping) (*CustomFlowMapping, error)
	ListCustomFlowMappings(context.Context) ([]*CustomFlowMapping, error)
	DeleteCustomFlowMapping(context.Context, *CustomFlowMapping) (*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) CreateCustomFlow

func (s *ServiceOp) CreateCustomFlow(ctx context.Context, input *CustomFlow) (*CustomFlow, error)

func (*ServiceOp) CreateCustomFlowMapping

func (s *ServiceOp) CreateCustomFlowMapping(ctx context.Context, input *CustomFlowMapping) (*CustomFlowMapping, error)

func (*ServiceOp) DeleteCustomFlow

func (s *ServiceOp) DeleteCustomFlow(ctx context.Context, customFlowId string) (*commons.EmptyResponse, error)

func (*ServiceOp) DeleteCustomFlowMapping

func (s *ServiceOp) DeleteCustomFlowMapping(ctx context.Context, input *CustomFlowMapping) (*commons.EmptyResponse, error)

func (*ServiceOp) ListCustomFlowMappings

func (s *ServiceOp) ListCustomFlowMappings(ctx context.Context) ([]*CustomFlowMapping, error)

func (*ServiceOp) ListCustomFlows

func (s *ServiceOp) ListCustomFlows(ctx context.Context, customFlowId *string, customFlowName *string,
	namespaceId *string, stackId *string) ([]*CustomFlow, error)

func (*ServiceOp) ReadCustomFlow

func (s *ServiceOp) ReadCustomFlow(ctx context.Context, customFlowId string) (*CustomFlow, error)

func (*ServiceOp) UpdateCustomFlow

func (s *ServiceOp) UpdateCustomFlow(ctx context.Context, customFlowId string, input *CustomFlow) (*CustomFlow, error)

Jump to

Keyboard shortcuts

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