run_task

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 RunTask

type RunTask struct {
	ID                  *string `json:"id,omitempty"`
	Name                *string `json:"name,omitempty"`
	Url                 *string `json:"url,omitempty"`
	IsEnabled           *bool   `json:"isEnabled,omitempty"`
	HmacKey             *string `json:"hmacKey,omitempty"`
	IsHmacKeyConfigured *bool   `json:"isHmacKeyConfigured,omitempty"`
	// contains filtered or unexported fields
}

func (RunTask) MarshalJSON

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

func (*RunTask) SetHmacKey

func (o *RunTask) SetHmacKey(v *string) *RunTask

func (*RunTask) SetIsEnabled

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

func (*RunTask) SetName

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

func (*RunTask) SetUrl

func (o *RunTask) SetUrl(v *string) *RunTask

type RunTaskMapping added in v1.19.0

type RunTaskMapping struct {
	RunTaskId        *string `json:"runTaskId,omitempty"`
	TargetId         *string `json:"targetId,omitempty"`
	TargetType       *string `json:"targetType,omitempty"`       //commons.PolicyMappingTargetTypes
	EnforcementLevel *string `json:"enforcementLevel,omitempty"` //commons.EnforcementLevelTypes
	Stage            *string `json:"stage,omitempty"`            //commons.RunTaskStageTypes
	// contains filtered or unexported fields
}

func (RunTaskMapping) MarshalJSON added in v1.19.0

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

func (*RunTaskMapping) SetEnforcementLevel added in v1.19.0

func (o *RunTaskMapping) SetEnforcementLevel(v *string) *RunTaskMapping

func (*RunTaskMapping) SetRunTaskId added in v1.19.0

func (o *RunTaskMapping) SetRunTaskId(v *string) *RunTaskMapping

func (*RunTaskMapping) SetStage added in v1.19.0

func (o *RunTaskMapping) SetStage(v *string) *RunTaskMapping

func (*RunTaskMapping) SetTargetId added in v1.19.0

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

func (*RunTaskMapping) SetTargetType added in v1.19.0

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

type Service

type Service interface {
	CreateRunTask(context.Context, *RunTask) (*RunTask, error)
	ListRunTasks(context.Context, *string, *string) ([]*RunTask, error)
	ReadRunTask(context.Context, string) (*RunTask, error)
	UpdateRunTask(context.Context, string, *RunTask) (*RunTask, error)
	DeleteRunTask(context.Context, string) (*commons.EmptyResponse, error)

	CreateRunTaskMapping(context.Context, *RunTaskMapping) (*RunTaskMapping, error)
	ListRunTaskMappings(context.Context, string) ([]*RunTaskMapping, error)
	UpdateRunTaskMapping(context.Context, *RunTaskMapping) (*RunTaskMapping, error)
	DeleteRunTaskMapping(context.Context, *RunTaskMapping) (*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) CreateRunTask

func (s *ServiceOp) CreateRunTask(ctx context.Context, input *RunTask) (*RunTask, error)

func (*ServiceOp) CreateRunTaskMapping added in v1.19.0

func (s *ServiceOp) CreateRunTaskMapping(ctx context.Context, input *RunTaskMapping) (*RunTaskMapping, error)

func (*ServiceOp) DeleteRunTask

func (s *ServiceOp) DeleteRunTask(ctx context.Context, runTaskId string) (*commons.EmptyResponse, error)

func (*ServiceOp) DeleteRunTaskMapping added in v1.19.0

func (s *ServiceOp) DeleteRunTaskMapping(ctx context.Context, input *RunTaskMapping) (*commons.EmptyResponse, error)

func (*ServiceOp) ListRunTaskMappings added in v1.19.0

func (s *ServiceOp) ListRunTaskMappings(ctx context.Context, runTaskId string) ([]*RunTaskMapping, error)

func (*ServiceOp) ListRunTasks

func (s *ServiceOp) ListRunTasks(ctx context.Context, runTaskId *string, runTaskName *string) ([]*RunTask, error)

func (*ServiceOp) ReadRunTask

func (s *ServiceOp) ReadRunTask(ctx context.Context, runTaskId string) (*RunTask, error)

func (*ServiceOp) UpdateRunTask

func (s *ServiceOp) UpdateRunTask(ctx context.Context, runTaskId string, input *RunTask) (*RunTask, error)

func (*ServiceOp) UpdateRunTaskMapping added in v1.19.0

func (s *ServiceOp) UpdateRunTaskMapping(ctx context.Context, input *RunTaskMapping) (*RunTaskMapping, error)

Jump to

Keyboard shortcuts

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