Documentation
¶
Index ¶
- type CustomFlow
- type CustomFlowMapping
- type Service
- type ServiceOp
- func (s *ServiceOp) CreateCustomFlow(ctx context.Context, input *CustomFlow) (*CustomFlow, error)
- func (s *ServiceOp) CreateCustomFlowMapping(ctx context.Context, input *CustomFlowMapping) (*CustomFlowMapping, error)
- func (s *ServiceOp) DeleteCustomFlow(ctx context.Context, customFlowId string) (*commons.EmptyResponse, error)
- func (s *ServiceOp) DeleteCustomFlowMapping(ctx context.Context, input *CustomFlowMapping) (*commons.EmptyResponse, error)
- func (s *ServiceOp) ListCustomFlowMappings(ctx context.Context) ([]*CustomFlowMapping, error)
- func (s *ServiceOp) ListCustomFlows(ctx context.Context, customFlowId *string, customFlowName *string, ...) ([]*CustomFlow, error)
- func (s *ServiceOp) ReadCustomFlow(ctx context.Context, customFlowId string) (*CustomFlow, error)
- func (s *ServiceOp) UpdateCustomFlow(ctx context.Context, customFlowId string, input *CustomFlow) (*CustomFlow, error)
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.
type ServiceOp ¶
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 (*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 (*ServiceOp) ReadCustomFlow ¶
func (*ServiceOp) UpdateCustomFlow ¶
func (s *ServiceOp) UpdateCustomFlow(ctx context.Context, customFlowId string, input *CustomFlow) (*CustomFlow, error)
Click to show internal directories.
Click to hide internal directories.