run_task

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 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 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)
}

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) DeleteRunTask

func (s *ServiceOp) DeleteRunTask(ctx context.Context, runTaskId string) (*commons.EmptyResponse, 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)

Jump to

Keyboard shortcuts

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