luci: go.chromium.org/luci/common/api/swarming/swarming/v1 Index | Files

package swarming

import "go.chromium.org/luci/common/api/swarming/swarming/v1"

Package swarming provides access to the .

Usage example:

import "go.chromium.org/luci/common/api/swarming/swarming/v1"
...
swarmingService, err := swarming.New(oauthHttpClient)

Index

Package Files

swarming-gen.go

Constants

const (
    // https://www.googleapis.com/auth/userinfo.email
    UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email"
)

OAuth2 scopes used by this API.

type BotDeleteCall Uses

type BotDeleteCall struct {
    // contains filtered or unexported fields
}

func (*BotDeleteCall) Context Uses

func (c *BotDeleteCall) Context(ctx context.Context) *BotDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BotDeleteCall) Do Uses

func (c *BotDeleteCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsDeletedResponse, error)

Do executes the "swarming.bot.delete" call. Exactly one of *SwarmingRpcsDeletedResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsDeletedResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BotDeleteCall) Fields Uses

func (c *BotDeleteCall) Fields(s ...googleapi.Field) *BotDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BotDeleteCall) Header Uses

func (c *BotDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BotEventsCall Uses

type BotEventsCall struct {
    // contains filtered or unexported fields
}

func (*BotEventsCall) Context Uses

func (c *BotEventsCall) Context(ctx context.Context) *BotEventsCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BotEventsCall) Cursor Uses

func (c *BotEventsCall) Cursor(cursor string) *BotEventsCall

Cursor sets the optional parameter "cursor":

func (*BotEventsCall) Do Uses

func (c *BotEventsCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsBotEvents, error)

Do executes the "swarming.bot.events" call. Exactly one of *SwarmingRpcsBotEvents or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsBotEvents.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BotEventsCall) End Uses

func (c *BotEventsCall) End(end float64) *BotEventsCall

End sets the optional parameter "end":

func (*BotEventsCall) Fields Uses

func (c *BotEventsCall) Fields(s ...googleapi.Field) *BotEventsCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BotEventsCall) Header Uses

func (c *BotEventsCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BotEventsCall) IfNoneMatch Uses

func (c *BotEventsCall) IfNoneMatch(entityTag string) *BotEventsCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BotEventsCall) Limit Uses

func (c *BotEventsCall) Limit(limit int64) *BotEventsCall

Limit sets the optional parameter "limit":

func (*BotEventsCall) Start Uses

func (c *BotEventsCall) Start(start float64) *BotEventsCall

Start sets the optional parameter "start":

type BotGetCall Uses

type BotGetCall struct {
    // contains filtered or unexported fields
}

func (*BotGetCall) Context Uses

func (c *BotGetCall) Context(ctx context.Context) *BotGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BotGetCall) Do Uses

func (c *BotGetCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsBotInfo, error)

Do executes the "swarming.bot.get" call. Exactly one of *SwarmingRpcsBotInfo or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsBotInfo.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BotGetCall) Fields Uses

func (c *BotGetCall) Fields(s ...googleapi.Field) *BotGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BotGetCall) Header Uses

func (c *BotGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BotGetCall) IfNoneMatch Uses

func (c *BotGetCall) IfNoneMatch(entityTag string) *BotGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BotService Uses

type BotService struct {
    // contains filtered or unexported fields
}

func NewBotService Uses

func NewBotService(s *Service) *BotService

func (*BotService) Delete Uses

func (r *BotService) Delete(botId string) *BotDeleteCall

Delete: Deletes the bot corresponding to a provided bot_id. At that point, the bot will not appears in the list of bots but it is still possible to get information about the bot with its bot id is known, as historical data is not deleted. It is meant to remove from the DB the presence of a bot that was retired, e.g. the VM was shut down already. Use 'terminate' instead of the bot is still alive.

func (*BotService) Events Uses

func (r *BotService) Events(botId string) *BotEventsCall

Events: Returns events that happened on a bot.

func (*BotService) Get Uses

func (r *BotService) Get(botId string) *BotGetCall

Get: Returns information about a known bot. This includes its state and dimensions, and if it is currently running a task.

func (*BotService) Tasks Uses

func (r *BotService) Tasks(botId string) *BotTasksCall

Tasks: Lists a given bot's tasks within the specified date range. In this case, the tasks are effectively TaskRunResult since it's individual task tries sent to this specific bot. It is impossible to search by both tags and bot id. If there's a need, TaskRunResult.tags will be added (via a copy from TaskRequest.tags).

func (*BotService) Terminate Uses

func (r *BotService) Terminate(botId string) *BotTerminateCall

Terminate: Asks a bot to terminate itself gracefully. The bot will stay in the DB, use 'delete' to remove it from the DB afterward. This request returns a pseudo-taskid that can be waited for to wait for the bot to turn down. This command is particularly useful when a privileged user needs to safely debug a machine specific issue. The user can trigger a terminate for one of the bot exhibiting the issue, wait for the pseudo-task to run then access the machine with the guarantee that the bot is not running anymore.

type BotTasksCall Uses

type BotTasksCall struct {
    // contains filtered or unexported fields
}

func (*BotTasksCall) Context Uses

func (c *BotTasksCall) Context(ctx context.Context) *BotTasksCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BotTasksCall) Cursor Uses

func (c *BotTasksCall) Cursor(cursor string) *BotTasksCall

Cursor sets the optional parameter "cursor":

func (*BotTasksCall) Do Uses

func (c *BotTasksCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsBotTasks, error)

Do executes the "swarming.bot.tasks" call. Exactly one of *SwarmingRpcsBotTasks or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsBotTasks.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BotTasksCall) End Uses

func (c *BotTasksCall) End(end float64) *BotTasksCall

End sets the optional parameter "end":

func (*BotTasksCall) Fields Uses

func (c *BotTasksCall) Fields(s ...googleapi.Field) *BotTasksCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BotTasksCall) Header Uses

func (c *BotTasksCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BotTasksCall) IfNoneMatch Uses

func (c *BotTasksCall) IfNoneMatch(entityTag string) *BotTasksCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BotTasksCall) IncludePerformanceStats Uses

func (c *BotTasksCall) IncludePerformanceStats(includePerformanceStats bool) *BotTasksCall

IncludePerformanceStats sets the optional parameter "include_performance_stats":

func (*BotTasksCall) Limit Uses

func (c *BotTasksCall) Limit(limit int64) *BotTasksCall

Limit sets the optional parameter "limit":

func (*BotTasksCall) Sort Uses

func (c *BotTasksCall) Sort(sort string) *BotTasksCall

Sort sets the optional parameter "sort":

Possible values:

"ABANDONED_TS"
"COMPLETED_TS"
"CREATED_TS" (default)
"MODIFIED_TS"

func (*BotTasksCall) Start Uses

func (c *BotTasksCall) Start(start float64) *BotTasksCall

Start sets the optional parameter "start":

func (*BotTasksCall) State Uses

func (c *BotTasksCall) State(state string) *BotTasksCall

State sets the optional parameter "state":

Possible values:

"ALL" (default)
"BOT_DIED"
"CANCELED"
"COMPLETED"
"COMPLETED_FAILURE"
"COMPLETED_SUCCESS"
"DEDUPED"
"EXPIRED"
"KILLED"
"NO_RESOURCE"
"PENDING"
"PENDING_RUNNING"
"RUNNING"
"TIMED_OUT"

type BotTerminateCall Uses

type BotTerminateCall struct {
    // contains filtered or unexported fields
}

func (*BotTerminateCall) Context Uses

func (c *BotTerminateCall) Context(ctx context.Context) *BotTerminateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BotTerminateCall) Do Uses

func (c *BotTerminateCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsTerminateResponse, error)

Do executes the "swarming.bot.terminate" call. Exactly one of *SwarmingRpcsTerminateResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsTerminateResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BotTerminateCall) Fields Uses

func (c *BotTerminateCall) Fields(s ...googleapi.Field) *BotTerminateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BotTerminateCall) Header Uses

func (c *BotTerminateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BotsCountCall Uses

type BotsCountCall struct {
    // contains filtered or unexported fields
}

func (*BotsCountCall) Context Uses

func (c *BotsCountCall) Context(ctx context.Context) *BotsCountCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BotsCountCall) Dimensions Uses

func (c *BotsCountCall) Dimensions(dimensions ...string) *BotsCountCall

Dimensions sets the optional parameter "dimensions":

func (*BotsCountCall) Do Uses

func (c *BotsCountCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsBotsCount, error)

Do executes the "swarming.bots.count" call. Exactly one of *SwarmingRpcsBotsCount or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsBotsCount.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BotsCountCall) Fields Uses

func (c *BotsCountCall) Fields(s ...googleapi.Field) *BotsCountCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BotsCountCall) Header Uses

func (c *BotsCountCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BotsCountCall) IfNoneMatch Uses

func (c *BotsCountCall) IfNoneMatch(entityTag string) *BotsCountCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BotsDimensionsCall Uses

type BotsDimensionsCall struct {
    // contains filtered or unexported fields
}

func (*BotsDimensionsCall) Context Uses

func (c *BotsDimensionsCall) Context(ctx context.Context) *BotsDimensionsCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BotsDimensionsCall) Do Uses

func (c *BotsDimensionsCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsBotsDimensions, error)

Do executes the "swarming.bots.dimensions" call. Exactly one of *SwarmingRpcsBotsDimensions or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsBotsDimensions.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BotsDimensionsCall) Fields Uses

func (c *BotsDimensionsCall) Fields(s ...googleapi.Field) *BotsDimensionsCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BotsDimensionsCall) Header Uses

func (c *BotsDimensionsCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BotsDimensionsCall) IfNoneMatch Uses

func (c *BotsDimensionsCall) IfNoneMatch(entityTag string) *BotsDimensionsCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BotsListCall Uses

type BotsListCall struct {
    // contains filtered or unexported fields
}

func (*BotsListCall) Context Uses

func (c *BotsListCall) Context(ctx context.Context) *BotsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BotsListCall) Cursor Uses

func (c *BotsListCall) Cursor(cursor string) *BotsListCall

Cursor sets the optional parameter "cursor":

func (*BotsListCall) Dimensions Uses

func (c *BotsListCall) Dimensions(dimensions ...string) *BotsListCall

Dimensions sets the optional parameter "dimensions":

func (*BotsListCall) Do Uses

func (c *BotsListCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsBotList, error)

Do executes the "swarming.bots.list" call. Exactly one of *SwarmingRpcsBotList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsBotList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BotsListCall) Fields Uses

func (c *BotsListCall) Fields(s ...googleapi.Field) *BotsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BotsListCall) Header Uses

func (c *BotsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BotsListCall) IfNoneMatch Uses

func (c *BotsListCall) IfNoneMatch(entityTag string) *BotsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BotsListCall) InMaintenance Uses

func (c *BotsListCall) InMaintenance(inMaintenance string) *BotsListCall

InMaintenance sets the optional parameter "in_maintenance":

Possible values:

"FALSE"
"NONE" (default)
"TRUE"

func (*BotsListCall) IsBusy Uses

func (c *BotsListCall) IsBusy(isBusy string) *BotsListCall

IsBusy sets the optional parameter "is_busy":

Possible values:

"FALSE"
"NONE" (default)
"TRUE"

func (*BotsListCall) IsDead Uses

func (c *BotsListCall) IsDead(isDead string) *BotsListCall

IsDead sets the optional parameter "is_dead":

Possible values:

"FALSE"
"NONE" (default)
"TRUE"

func (*BotsListCall) IsMp Uses

func (c *BotsListCall) IsMp(isMp string) *BotsListCall

IsMp sets the optional parameter "is_mp":

Possible values:

"FALSE"
"NONE" (default)
"TRUE"

func (*BotsListCall) Limit Uses

func (c *BotsListCall) Limit(limit int64) *BotsListCall

Limit sets the optional parameter "limit":

func (*BotsListCall) Quarantined Uses

func (c *BotsListCall) Quarantined(quarantined string) *BotsListCall

Quarantined sets the optional parameter "quarantined":

Possible values:

"FALSE"
"NONE" (default)
"TRUE"

type BotsService Uses

type BotsService struct {
    // contains filtered or unexported fields
}

func NewBotsService Uses

func NewBotsService(s *Service) *BotsService

func (*BotsService) Count Uses

func (r *BotsService) Count() *BotsCountCall

Count: Counts number of bots with given dimensions.

func (*BotsService) Dimensions Uses

func (r *BotsService) Dimensions() *BotsDimensionsCall

Dimensions: Returns the cached set of dimensions currently in use in the fleet.

func (*BotsService) List Uses

func (r *BotsService) List() *BotsListCall

List: Provides list of known bots. Deleted bots will not be listed.

type QueuesListCall Uses

type QueuesListCall struct {
    // contains filtered or unexported fields
}

func (*QueuesListCall) Context Uses

func (c *QueuesListCall) Context(ctx context.Context) *QueuesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*QueuesListCall) Cursor Uses

func (c *QueuesListCall) Cursor(cursor string) *QueuesListCall

Cursor sets the optional parameter "cursor":

func (*QueuesListCall) Do Uses

func (c *QueuesListCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsTaskQueueList, error)

Do executes the "swarming.queues.list" call. Exactly one of *SwarmingRpcsTaskQueueList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsTaskQueueList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*QueuesListCall) Fields Uses

func (c *QueuesListCall) Fields(s ...googleapi.Field) *QueuesListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*QueuesListCall) Header Uses

func (c *QueuesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*QueuesListCall) IfNoneMatch Uses

func (c *QueuesListCall) IfNoneMatch(entityTag string) *QueuesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*QueuesListCall) Limit Uses

func (c *QueuesListCall) Limit(limit int64) *QueuesListCall

Limit sets the optional parameter "limit":

type QueuesService Uses

type QueuesService struct {
    // contains filtered or unexported fields
}

func NewQueuesService Uses

func NewQueuesService(s *Service) *QueuesService

func (*QueuesService) List Uses

func (r *QueuesService) List() *QueuesListCall

List:

type ServerDetailsCall Uses

type ServerDetailsCall struct {
    // contains filtered or unexported fields
}

func (*ServerDetailsCall) Context Uses

func (c *ServerDetailsCall) Context(ctx context.Context) *ServerDetailsCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ServerDetailsCall) Do Uses

func (c *ServerDetailsCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsServerDetails, error)

Do executes the "swarming.server.details" call. Exactly one of *SwarmingRpcsServerDetails or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsServerDetails.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ServerDetailsCall) Fields Uses

func (c *ServerDetailsCall) Fields(s ...googleapi.Field) *ServerDetailsCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ServerDetailsCall) Header Uses

func (c *ServerDetailsCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ServerDetailsCall) IfNoneMatch Uses

func (c *ServerDetailsCall) IfNoneMatch(entityTag string) *ServerDetailsCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ServerGetBootstrapCall Uses

type ServerGetBootstrapCall struct {
    // contains filtered or unexported fields
}

func (*ServerGetBootstrapCall) Context Uses

func (c *ServerGetBootstrapCall) Context(ctx context.Context) *ServerGetBootstrapCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ServerGetBootstrapCall) Do Uses

func (c *ServerGetBootstrapCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsFileContent, error)

Do executes the "swarming.server.get_bootstrap" call. Exactly one of *SwarmingRpcsFileContent or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsFileContent.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ServerGetBootstrapCall) Fields Uses

func (c *ServerGetBootstrapCall) Fields(s ...googleapi.Field) *ServerGetBootstrapCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ServerGetBootstrapCall) Header Uses

func (c *ServerGetBootstrapCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ServerGetBootstrapCall) IfNoneMatch Uses

func (c *ServerGetBootstrapCall) IfNoneMatch(entityTag string) *ServerGetBootstrapCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ServerGetBotConfigCall Uses

type ServerGetBotConfigCall struct {
    // contains filtered or unexported fields
}

func (*ServerGetBotConfigCall) Context Uses

func (c *ServerGetBotConfigCall) Context(ctx context.Context) *ServerGetBotConfigCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ServerGetBotConfigCall) Do Uses

func (c *ServerGetBotConfigCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsFileContent, error)

Do executes the "swarming.server.get_bot_config" call. Exactly one of *SwarmingRpcsFileContent or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsFileContent.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ServerGetBotConfigCall) Fields Uses

func (c *ServerGetBotConfigCall) Fields(s ...googleapi.Field) *ServerGetBotConfigCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ServerGetBotConfigCall) Header Uses

func (c *ServerGetBotConfigCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ServerGetBotConfigCall) IfNoneMatch Uses

func (c *ServerGetBotConfigCall) IfNoneMatch(entityTag string) *ServerGetBotConfigCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ServerPermissionsCall Uses

type ServerPermissionsCall struct {
    // contains filtered or unexported fields
}

func (*ServerPermissionsCall) Context Uses

func (c *ServerPermissionsCall) Context(ctx context.Context) *ServerPermissionsCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ServerPermissionsCall) Do Uses

func (c *ServerPermissionsCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsClientPermissions, error)

Do executes the "swarming.server.permissions" call. Exactly one of *SwarmingRpcsClientPermissions or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsClientPermissions.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ServerPermissionsCall) Fields Uses

func (c *ServerPermissionsCall) Fields(s ...googleapi.Field) *ServerPermissionsCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ServerPermissionsCall) Header Uses

func (c *ServerPermissionsCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ServerPermissionsCall) IfNoneMatch Uses

func (c *ServerPermissionsCall) IfNoneMatch(entityTag string) *ServerPermissionsCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ServerService Uses

type ServerService struct {
    // contains filtered or unexported fields
}

func NewServerService Uses

func NewServerService(s *Service) *ServerService

func (*ServerService) Details Uses

func (r *ServerService) Details() *ServerDetailsCall

Details: Returns information about the server.

func (*ServerService) GetBootstrap Uses

func (r *ServerService) GetBootstrap() *ServerGetBootstrapCall

GetBootstrap: Retrieves the current version of bootstrap.py.

func (*ServerService) GetBotConfig Uses

func (r *ServerService) GetBotConfig() *ServerGetBotConfigCall

GetBotConfig: Retrieves the current version of bot_config.py.

func (*ServerService) Permissions Uses

func (r *ServerService) Permissions() *ServerPermissionsCall

Permissions: Returns the caller's permissions.

func (*ServerService) Token Uses

func (r *ServerService) Token() *ServerTokenCall

Token: Returns a token to bootstrap a new bot. This may seem strange to be a POST and not a GET, but it's very important to make sure GET requests are idempotent and safe to be pre-fetched; generating a token is neither of those things.

type ServerTokenCall Uses

type ServerTokenCall struct {
    // contains filtered or unexported fields
}

func (*ServerTokenCall) Context Uses

func (c *ServerTokenCall) Context(ctx context.Context) *ServerTokenCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ServerTokenCall) Do Uses

func (c *ServerTokenCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsBootstrapToken, error)

Do executes the "swarming.server.token" call. Exactly one of *SwarmingRpcsBootstrapToken or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsBootstrapToken.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ServerTokenCall) Fields Uses

func (c *ServerTokenCall) Fields(s ...googleapi.Field) *ServerTokenCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ServerTokenCall) Header Uses

func (c *ServerTokenCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type Service Uses

type Service struct {
    BasePath  string // API endpoint base URL
    UserAgent string // optional additional User-Agent fragment

    Bot *BotService

    Bots *BotsService

    Queues *QueuesService

    Server *ServerService

    Task *TaskService

    Tasks *TasksService
    // contains filtered or unexported fields
}

func New Uses

func New(client *http.Client) (*Service, error)

type SwarmingRpcsBootstrapToken Uses

type SwarmingRpcsBootstrapToken struct {
    BootstrapToken string `json:"bootstrap_token,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "BootstrapToken") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BootstrapToken") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsBootstrapToken: Returns a token to bootstrap a new bot.

func (*SwarmingRpcsBootstrapToken) MarshalJSON Uses

func (s *SwarmingRpcsBootstrapToken) MarshalJSON() ([]byte, error)

type SwarmingRpcsBotEvent Uses

type SwarmingRpcsBotEvent struct {
    AuthenticatedAs string `json:"authenticated_as,omitempty"`

    // Dimensions: Represents a mapping of string to list of strings.
    Dimensions []*SwarmingRpcsStringListPair `json:"dimensions,omitempty"`

    EventType string `json:"event_type,omitempty"`

    ExternalIp string `json:"external_ip,omitempty"`

    MaintenanceMsg string `json:"maintenance_msg,omitempty"`

    Message string `json:"message,omitempty"`

    Quarantined bool `json:"quarantined,omitempty"`

    State string `json:"state,omitempty"`

    TaskId string `json:"task_id,omitempty"`

    Ts  string `json:"ts,omitempty"`

    Version string `json:"version,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AuthenticatedAs") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AuthenticatedAs") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*SwarmingRpcsBotEvent) MarshalJSON Uses

func (s *SwarmingRpcsBotEvent) MarshalJSON() ([]byte, error)

type SwarmingRpcsBotEvents Uses

type SwarmingRpcsBotEvents struct {
    Cursor string `json:"cursor,omitempty"`

    Items []*SwarmingRpcsBotEvent `json:"items,omitempty"`

    Now string `json:"now,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Cursor") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Cursor") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*SwarmingRpcsBotEvents) MarshalJSON Uses

func (s *SwarmingRpcsBotEvents) MarshalJSON() ([]byte, error)

type SwarmingRpcsBotInfo Uses

type SwarmingRpcsBotInfo struct {
    AuthenticatedAs string `json:"authenticated_as,omitempty"`

    BotId string `json:"bot_id,omitempty"`

    Deleted bool `json:"deleted,omitempty"`

    // Dimensions: Represents a mapping of string to list of strings.
    Dimensions []*SwarmingRpcsStringListPair `json:"dimensions,omitempty"`

    ExternalIp string `json:"external_ip,omitempty"`

    FirstSeenTs string `json:"first_seen_ts,omitempty"`

    IsDead bool `json:"is_dead,omitempty"`

    LastSeenTs string `json:"last_seen_ts,omitempty"`

    LeaseExpirationTs string `json:"lease_expiration_ts,omitempty"`

    LeaseId string `json:"lease_id,omitempty"`

    LeasedIndefinitely bool `json:"leased_indefinitely,omitempty"`

    MachineLease string `json:"machine_lease,omitempty"`

    MachineType string `json:"machine_type,omitempty"`

    MaintenanceMsg string `json:"maintenance_msg,omitempty"`

    Quarantined bool `json:"quarantined,omitempty"`

    State string `json:"state,omitempty"`

    TaskId string `json:"task_id,omitempty"`

    TaskName string `json:"task_name,omitempty"`

    Version string `json:"version,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AuthenticatedAs") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AuthenticatedAs") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsBotInfo: Representation of the BotInfo ndb model.

func (*SwarmingRpcsBotInfo) MarshalJSON Uses

func (s *SwarmingRpcsBotInfo) MarshalJSON() ([]byte, error)

type SwarmingRpcsBotList Uses

type SwarmingRpcsBotList struct {
    Cursor string `json:"cursor,omitempty"`

    DeathTimeout int64 `json:"death_timeout,omitempty,string"`

    // Items: Representation of the BotInfo ndb model.
    Items []*SwarmingRpcsBotInfo `json:"items,omitempty"`

    Now string `json:"now,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Cursor") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Cursor") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsBotList: Wraps a list of BotInfo.

func (*SwarmingRpcsBotList) MarshalJSON Uses

func (s *SwarmingRpcsBotList) MarshalJSON() ([]byte, error)

type SwarmingRpcsBotTasks Uses

type SwarmingRpcsBotTasks struct {
    Cursor string `json:"cursor,omitempty"`

    // Items: Representation of the TaskResultSummary or TaskRunResult ndb
    // model.
    Items []*SwarmingRpcsTaskResult `json:"items,omitempty"`

    Now string `json:"now,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Cursor") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Cursor") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*SwarmingRpcsBotTasks) MarshalJSON Uses

func (s *SwarmingRpcsBotTasks) MarshalJSON() ([]byte, error)

type SwarmingRpcsBotsCount Uses

type SwarmingRpcsBotsCount struct {
    Busy int64 `json:"busy,omitempty,string"`

    Count int64 `json:"count,omitempty,string"`

    Dead int64 `json:"dead,omitempty,string"`

    Maintenance int64 `json:"maintenance,omitempty,string"`

    Now string `json:"now,omitempty"`

    Quarantined int64 `json:"quarantined,omitempty,string"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Busy") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Busy") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsBotsCount: Returns the count, as requested.

func (*SwarmingRpcsBotsCount) MarshalJSON Uses

func (s *SwarmingRpcsBotsCount) MarshalJSON() ([]byte, error)

type SwarmingRpcsBotsDimensions Uses

type SwarmingRpcsBotsDimensions struct {
    // BotsDimensions: Represents a mapping of string to list of strings.
    BotsDimensions []*SwarmingRpcsStringListPair `json:"bots_dimensions,omitempty"`

    Ts  string `json:"ts,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "BotsDimensions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BotsDimensions") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsBotsDimensions: Returns all the dimensions and dimension possibilities in the fleet.

func (*SwarmingRpcsBotsDimensions) MarshalJSON Uses

func (s *SwarmingRpcsBotsDimensions) MarshalJSON() ([]byte, error)

type SwarmingRpcsCacheEntry Uses

type SwarmingRpcsCacheEntry struct {
    Name string `json:"name,omitempty"`

    Path string `json:"path,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Name") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Name") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsCacheEntry: Describes a named cache that should be present on the bot. A CacheEntry in a task specified that the task prefers the cache to be present on the bot. A symlink to the cache directory is created at <run_dir>/|path|. If cache is not present on the machine, the directory is empty. If the tasks makes any changes to the contents of the cache directory, they are persisted on the machine. If another task runs on the same machine and requests the same named cache, even if mapped to a different path, it will see the changes.

func (*SwarmingRpcsCacheEntry) MarshalJSON Uses

func (s *SwarmingRpcsCacheEntry) MarshalJSON() ([]byte, error)

type SwarmingRpcsCancelResponse Uses

type SwarmingRpcsCancelResponse struct {
    Ok  bool `json:"ok,omitempty"`

    WasRunning bool `json:"was_running,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Ok") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Ok") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsCancelResponse: Result of a request to cancel a task.

func (*SwarmingRpcsCancelResponse) MarshalJSON Uses

func (s *SwarmingRpcsCancelResponse) MarshalJSON() ([]byte, error)

type SwarmingRpcsCipdInput Uses

type SwarmingRpcsCipdInput struct {
    // ClientPackage: A CIPD package to install in the run dir before task
    // execution.
    ClientPackage *SwarmingRpcsCipdPackage `json:"client_package,omitempty"`

    // Packages: A CIPD package to install in the run dir before task
    // execution.
    Packages []*SwarmingRpcsCipdPackage `json:"packages,omitempty"`

    Server string `json:"server,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ClientPackage") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ClientPackage") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsCipdInput: Defines CIPD packages to install in task run directory.

func (*SwarmingRpcsCipdInput) MarshalJSON Uses

func (s *SwarmingRpcsCipdInput) MarshalJSON() ([]byte, error)

type SwarmingRpcsCipdPackage Uses

type SwarmingRpcsCipdPackage struct {
    PackageName string `json:"package_name,omitempty"`

    Path string `json:"path,omitempty"`

    Version string `json:"version,omitempty"`

    // ForceSendFields is a list of field names (e.g. "PackageName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "PackageName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsCipdPackage: A CIPD package to install in the run dir before task execution.

func (*SwarmingRpcsCipdPackage) MarshalJSON Uses

func (s *SwarmingRpcsCipdPackage) MarshalJSON() ([]byte, error)

type SwarmingRpcsCipdPins Uses

type SwarmingRpcsCipdPins struct {
    // ClientPackage: A CIPD package to install in the run dir before task
    // execution.
    ClientPackage *SwarmingRpcsCipdPackage `json:"client_package,omitempty"`

    // Packages: A CIPD package to install in the run dir before task
    // execution.
    Packages []*SwarmingRpcsCipdPackage `json:"packages,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ClientPackage") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ClientPackage") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsCipdPins: Defines pinned CIPD packages that were installed during the task.

func (*SwarmingRpcsCipdPins) MarshalJSON Uses

func (s *SwarmingRpcsCipdPins) MarshalJSON() ([]byte, error)

type SwarmingRpcsClientPermissions Uses

type SwarmingRpcsClientPermissions struct {
    CancelTask bool `json:"cancel_task,omitempty"`

    CancelTasks bool `json:"cancel_tasks,omitempty"`

    DeleteBot bool `json:"delete_bot,omitempty"`

    GetBootstrapToken bool `json:"get_bootstrap_token,omitempty"`

    GetConfigs bool `json:"get_configs,omitempty"`

    PutConfigs bool `json:"put_configs,omitempty"`

    TerminateBot bool `json:"terminate_bot,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "CancelTask") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CancelTask") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsClientPermissions: Reports the client's permissions.

func (*SwarmingRpcsClientPermissions) MarshalJSON Uses

func (s *SwarmingRpcsClientPermissions) MarshalJSON() ([]byte, error)

type SwarmingRpcsDeletedResponse Uses

type SwarmingRpcsDeletedResponse struct {
    Deleted bool `json:"deleted,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Deleted") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Deleted") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsDeletedResponse: Indicates whether a bot was deleted.

func (*SwarmingRpcsDeletedResponse) MarshalJSON Uses

func (s *SwarmingRpcsDeletedResponse) MarshalJSON() ([]byte, error)

type SwarmingRpcsFileContent Uses

type SwarmingRpcsFileContent struct {
    Content string `json:"content,omitempty"`

    Version string `json:"version,omitempty"`

    When string `json:"when,omitempty"`

    Who string `json:"who,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Content") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Content") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsFileContent: Content of a file.

func (*SwarmingRpcsFileContent) MarshalJSON Uses

func (s *SwarmingRpcsFileContent) MarshalJSON() ([]byte, error)

type SwarmingRpcsFilesRef Uses

type SwarmingRpcsFilesRef struct {
    Isolated string `json:"isolated,omitempty"`

    Isolatedserver string `json:"isolatedserver,omitempty"`

    Namespace string `json:"namespace,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Isolated") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Isolated") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsFilesRef: Defines a data tree reference, normally a reference to a .isolated file.

func (*SwarmingRpcsFilesRef) MarshalJSON Uses

func (s *SwarmingRpcsFilesRef) MarshalJSON() ([]byte, error)

type SwarmingRpcsNewTaskRequest Uses

type SwarmingRpcsNewTaskRequest struct {
    EvaluateOnly bool `json:"evaluate_only,omitempty"`

    ExpirationSecs int64 `json:"expiration_secs,omitempty,string"`

    Name string `json:"name,omitempty"`

    ParentTaskId string `json:"parent_task_id,omitempty"`

    // Possible values:
    //   "AUTO" (default)
    //   "CANARY_NEVER"
    //   "CANARY_PREFER"
    //   "SKIP"
    PoolTaskTemplate string `json:"pool_task_template,omitempty"`

    Priority int64 `json:"priority,omitempty,string"`

    // Properties: Important metadata about a particular task.
    Properties *SwarmingRpcsTaskProperties `json:"properties,omitempty"`

    PubsubAuthToken string `json:"pubsub_auth_token,omitempty"`

    PubsubTopic string `json:"pubsub_topic,omitempty"`

    PubsubUserdata string `json:"pubsub_userdata,omitempty"`

    ServiceAccount string `json:"service_account,omitempty"`

    Tags []string `json:"tags,omitempty"`

    // TaskSlices: Defines a possible task execution for a task request to
    // be run on the Swarming infrastructure. This is one of the possible
    // fallback on a task request.
    TaskSlices []*SwarmingRpcsTaskSlice `json:"task_slices,omitempty"`

    User string `json:"user,omitempty"`

    // ForceSendFields is a list of field names (e.g. "EvaluateOnly") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "EvaluateOnly") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsNewTaskRequest: Description of a new task request as described by the client. This message is used to create a new task.

func (*SwarmingRpcsNewTaskRequest) MarshalJSON Uses

func (s *SwarmingRpcsNewTaskRequest) MarshalJSON() ([]byte, error)

type SwarmingRpcsOperationStats Uses

type SwarmingRpcsOperationStats struct {
    Duration float64 `json:"duration,omitempty"`

    InitialNumberItems int64 `json:"initial_number_items,omitempty,string"`

    InitialSize int64 `json:"initial_size,omitempty,string"`

    ItemsCold string `json:"items_cold,omitempty"`

    ItemsHot string `json:"items_hot,omitempty"`

    NumItemsCold int64 `json:"num_items_cold,omitempty,string"`

    NumItemsHot int64 `json:"num_items_hot,omitempty,string"`

    TotalBytesItemsCold int64 `json:"total_bytes_items_cold,omitempty,string"`

    TotalBytesItemsHot int64 `json:"total_bytes_items_hot,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "Duration") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Duration") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*SwarmingRpcsOperationStats) MarshalJSON Uses

func (s *SwarmingRpcsOperationStats) MarshalJSON() ([]byte, error)

func (*SwarmingRpcsOperationStats) UnmarshalJSON Uses

func (s *SwarmingRpcsOperationStats) UnmarshalJSON(data []byte) error

type SwarmingRpcsPerformanceStats Uses

type SwarmingRpcsPerformanceStats struct {
    BotOverhead float64 `json:"bot_overhead,omitempty"`

    IsolatedDownload *SwarmingRpcsOperationStats `json:"isolated_download,omitempty"`

    IsolatedUpload *SwarmingRpcsOperationStats `json:"isolated_upload,omitempty"`

    // ForceSendFields is a list of field names (e.g. "BotOverhead") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BotOverhead") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*SwarmingRpcsPerformanceStats) MarshalJSON Uses

func (s *SwarmingRpcsPerformanceStats) MarshalJSON() ([]byte, error)

func (*SwarmingRpcsPerformanceStats) UnmarshalJSON Uses

func (s *SwarmingRpcsPerformanceStats) UnmarshalJSON(data []byte) error

type SwarmingRpcsServerDetails Uses

type SwarmingRpcsServerDetails struct {
    BotVersion string `json:"bot_version,omitempty"`

    DefaultIsolateNamespace string `json:"default_isolate_namespace,omitempty"`

    DefaultIsolateServer string `json:"default_isolate_server,omitempty"`

    DisplayServerUrlTemplate string `json:"display_server_url_template,omitempty"`

    LuciConfig string `json:"luci_config,omitempty"`

    MachineProviderTemplate string `json:"machine_provider_template,omitempty"`

    ServerVersion string `json:"server_version,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "BotVersion") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BotVersion") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsServerDetails: Reports details about the server.

func (*SwarmingRpcsServerDetails) MarshalJSON Uses

func (s *SwarmingRpcsServerDetails) MarshalJSON() ([]byte, error)

type SwarmingRpcsStringListPair Uses

type SwarmingRpcsStringListPair struct {
    Key string `json:"key,omitempty"`

    Value []string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Key") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsStringListPair: Represents a mapping of string to list of strings.

func (*SwarmingRpcsStringListPair) MarshalJSON Uses

func (s *SwarmingRpcsStringListPair) MarshalJSON() ([]byte, error)

type SwarmingRpcsStringPair Uses

type SwarmingRpcsStringPair struct {
    Key string `json:"key,omitempty"`

    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Key") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsStringPair: Represents a mapping of string to string.

func (*SwarmingRpcsStringPair) MarshalJSON Uses

func (s *SwarmingRpcsStringPair) MarshalJSON() ([]byte, error)

type SwarmingRpcsTaskCancelRequest Uses

type SwarmingRpcsTaskCancelRequest struct {
    KillRunning bool `json:"kill_running,omitempty"`

    // ForceSendFields is a list of field names (e.g. "KillRunning") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "KillRunning") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTaskCancelRequest: Request to cancel one task.

func (*SwarmingRpcsTaskCancelRequest) MarshalJSON Uses

func (s *SwarmingRpcsTaskCancelRequest) MarshalJSON() ([]byte, error)

type SwarmingRpcsTaskList Uses

type SwarmingRpcsTaskList struct {
    Cursor string `json:"cursor,omitempty"`

    // Items: Representation of the TaskResultSummary or TaskRunResult ndb
    // model.
    Items []*SwarmingRpcsTaskResult `json:"items,omitempty"`

    Now string `json:"now,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Cursor") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Cursor") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTaskList: Wraps a list of TaskResult.

func (*SwarmingRpcsTaskList) MarshalJSON Uses

func (s *SwarmingRpcsTaskList) MarshalJSON() ([]byte, error)

type SwarmingRpcsTaskOutput Uses

type SwarmingRpcsTaskOutput struct {
    Output string `json:"output,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Output") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Output") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTaskOutput: A task's output as a string.

func (*SwarmingRpcsTaskOutput) MarshalJSON Uses

func (s *SwarmingRpcsTaskOutput) MarshalJSON() ([]byte, error)

type SwarmingRpcsTaskProperties Uses

type SwarmingRpcsTaskProperties struct {
    // Caches: Describes a named cache that should be present on the bot. A
    // CacheEntry in a task specified that the task prefers the cache to be
    // present on the bot. A symlink to the cache directory is created at
    // <run_dir>/|path|. If cache is not present on the machine, the
    // directory is empty. If the tasks makes any changes to the contents of
    // the cache directory, they are persisted on the machine. If another
    // task runs on the same machine and requests the same named cache, even
    // if mapped to a different path, it will see the changes.
    Caches []*SwarmingRpcsCacheEntry `json:"caches,omitempty"`

    // CipdInput: Defines CIPD packages to install in task run directory.
    CipdInput *SwarmingRpcsCipdInput `json:"cipd_input,omitempty"`

    Command []string `json:"command,omitempty"`

    // Dimensions: Represents a mapping of string to string.
    Dimensions []*SwarmingRpcsStringPair `json:"dimensions,omitempty"`

    // Env: Represents a mapping of string to string.
    Env []*SwarmingRpcsStringPair `json:"env,omitempty"`

    // EnvPrefixes: Represents a mapping of string to list of strings.
    EnvPrefixes []*SwarmingRpcsStringListPair `json:"env_prefixes,omitempty"`

    ExecutionTimeoutSecs int64 `json:"execution_timeout_secs,omitempty,string"`

    ExtraArgs []string `json:"extra_args,omitempty"`

    GracePeriodSecs int64 `json:"grace_period_secs,omitempty,string"`

    Idempotent bool `json:"idempotent,omitempty"`

    // InputsRef: Defines a data tree reference, normally a reference to a
    // .isolated file.
    InputsRef *SwarmingRpcsFilesRef `json:"inputs_ref,omitempty"`

    IoTimeoutSecs int64 `json:"io_timeout_secs,omitempty,string"`

    Outputs []string `json:"outputs,omitempty"`

    RelativeCwd string `json:"relative_cwd,omitempty"`

    SecretBytes string `json:"secret_bytes,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Caches") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Caches") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTaskProperties: Important metadata about a particular task.

func (*SwarmingRpcsTaskProperties) MarshalJSON Uses

func (s *SwarmingRpcsTaskProperties) MarshalJSON() ([]byte, error)

type SwarmingRpcsTaskQueue Uses

type SwarmingRpcsTaskQueue struct {
    Dimensions []string `json:"dimensions,omitempty"`

    ValidUntilTs string `json:"valid_until_ts,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Dimensions") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Dimensions") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*SwarmingRpcsTaskQueue) MarshalJSON Uses

func (s *SwarmingRpcsTaskQueue) MarshalJSON() ([]byte, error)

type SwarmingRpcsTaskQueueList Uses

type SwarmingRpcsTaskQueueList struct {
    Cursor string `json:"cursor,omitempty"`

    Items []*SwarmingRpcsTaskQueue `json:"items,omitempty"`

    Now string `json:"now,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Cursor") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Cursor") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*SwarmingRpcsTaskQueueList) MarshalJSON Uses

func (s *SwarmingRpcsTaskQueueList) MarshalJSON() ([]byte, error)

type SwarmingRpcsTaskRequest Uses

type SwarmingRpcsTaskRequest struct {
    Authenticated string `json:"authenticated,omitempty"`

    CreatedTs string `json:"created_ts,omitempty"`

    ExpirationSecs int64 `json:"expiration_secs,omitempty,string"`

    Name string `json:"name,omitempty"`

    ParentTaskId string `json:"parent_task_id,omitempty"`

    Priority int64 `json:"priority,omitempty,string"`

    // Properties: Important metadata about a particular task.
    Properties *SwarmingRpcsTaskProperties `json:"properties,omitempty"`

    PubsubTopic string `json:"pubsub_topic,omitempty"`

    PubsubUserdata string `json:"pubsub_userdata,omitempty"`

    ServiceAccount string `json:"service_account,omitempty"`

    Tags []string `json:"tags,omitempty"`

    // TaskSlices: Defines a possible task execution for a task request to
    // be run on the Swarming infrastructure. This is one of the possible
    // fallback on a task request.
    TaskSlices []*SwarmingRpcsTaskSlice `json:"task_slices,omitempty"`

    User string `json:"user,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Authenticated") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Authenticated") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTaskRequest: Description of a task request as registered by the server. This message is used when retrieving information about an existing task. See NewtaskRequest for more details.

func (*SwarmingRpcsTaskRequest) MarshalJSON Uses

func (s *SwarmingRpcsTaskRequest) MarshalJSON() ([]byte, error)

type SwarmingRpcsTaskRequestMetadata Uses

type SwarmingRpcsTaskRequestMetadata struct {
    // Request: Description of a task request as registered by the server.
    // This message is used when retrieving information about an existing
    // task. See NewtaskRequest for more details.
    Request *SwarmingRpcsTaskRequest `json:"request,omitempty"`

    TaskId string `json:"task_id,omitempty"`

    // TaskResult: Representation of the TaskResultSummary or TaskRunResult
    // ndb model.
    TaskResult *SwarmingRpcsTaskResult `json:"task_result,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Request") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Request") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTaskRequestMetadata: Provides the ID of the requested TaskRequest.

func (*SwarmingRpcsTaskRequestMetadata) MarshalJSON Uses

func (s *SwarmingRpcsTaskRequestMetadata) MarshalJSON() ([]byte, error)

type SwarmingRpcsTaskRequests Uses

type SwarmingRpcsTaskRequests struct {
    Cursor string `json:"cursor,omitempty"`

    // Items: Description of a task request as registered by the server.
    // This message is used when retrieving information about an existing
    // task. See NewtaskRequest for more details.
    Items []*SwarmingRpcsTaskRequest `json:"items,omitempty"`

    Now string `json:"now,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Cursor") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Cursor") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTaskRequests: Wraps a list of TaskRequest.

func (*SwarmingRpcsTaskRequests) MarshalJSON Uses

func (s *SwarmingRpcsTaskRequests) MarshalJSON() ([]byte, error)

type SwarmingRpcsTaskResult Uses

type SwarmingRpcsTaskResult struct {
    AbandonedTs string `json:"abandoned_ts,omitempty"`

    // BotDimensions: Represents a mapping of string to list of strings.
    BotDimensions []*SwarmingRpcsStringListPair `json:"bot_dimensions,omitempty"`

    BotId string `json:"bot_id,omitempty"`

    BotVersion string `json:"bot_version,omitempty"`

    ChildrenTaskIds []string `json:"children_task_ids,omitempty"`

    // CipdPins: Defines pinned CIPD packages that were installed during the
    // task.
    CipdPins *SwarmingRpcsCipdPins `json:"cipd_pins,omitempty"`

    CompletedTs string `json:"completed_ts,omitempty"`

    CostSavedUsd float64 `json:"cost_saved_usd,omitempty"`

    CostsUsd []float64 `json:"costs_usd,omitempty"`

    CreatedTs string `json:"created_ts,omitempty"`

    CurrentTaskSlice int64 `json:"current_task_slice,omitempty,string"`

    DedupedFrom string `json:"deduped_from,omitempty"`

    Duration float64 `json:"duration,omitempty"`

    ExitCode int64 `json:"exit_code,omitempty,string"`

    Failure bool `json:"failure,omitempty"`

    InternalFailure bool `json:"internal_failure,omitempty"`

    ModifiedTs string `json:"modified_ts,omitempty"`

    Name string `json:"name,omitempty"`

    // OutputsRef: Defines a data tree reference, normally a reference to a
    // .isolated file.
    OutputsRef *SwarmingRpcsFilesRef `json:"outputs_ref,omitempty"`

    PerformanceStats *SwarmingRpcsPerformanceStats `json:"performance_stats,omitempty"`

    RunId string `json:"run_id,omitempty"`

    ServerVersions []string `json:"server_versions,omitempty"`

    StartedTs string `json:"started_ts,omitempty"`

    // Possible values:
    //   "BOT_DIED"
    //   "CANCELED"
    //   "COMPLETED"
    //   "EXPIRED"
    //   "INVALID"
    //   "KILLED"
    //   "NO_RESOURCE"
    //   "PENDING"
    //   "RUNNING"
    //   "TIMED_OUT"
    State string `json:"state,omitempty"`

    Tags []string `json:"tags,omitempty"`

    TaskId string `json:"task_id,omitempty"`

    TryNumber int64 `json:"try_number,omitempty,string"`

    User string `json:"user,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AbandonedTs") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AbandonedTs") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTaskResult: Representation of the TaskResultSummary or TaskRunResult ndb model.

func (*SwarmingRpcsTaskResult) MarshalJSON Uses

func (s *SwarmingRpcsTaskResult) MarshalJSON() ([]byte, error)

func (*SwarmingRpcsTaskResult) UnmarshalJSON Uses

func (s *SwarmingRpcsTaskResult) UnmarshalJSON(data []byte) error

type SwarmingRpcsTaskSlice Uses

type SwarmingRpcsTaskSlice struct {
    ExpirationSecs int64 `json:"expiration_secs,omitempty,string"`

    // Properties: Important metadata about a particular task.
    Properties *SwarmingRpcsTaskProperties `json:"properties,omitempty"`

    WaitForCapacity bool `json:"wait_for_capacity,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ExpirationSecs") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExpirationSecs") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTaskSlice: Defines a possible task execution for a task request to be run on the Swarming infrastructure. This is one of the possible fallback on a task request.

func (*SwarmingRpcsTaskSlice) MarshalJSON Uses

func (s *SwarmingRpcsTaskSlice) MarshalJSON() ([]byte, error)

type SwarmingRpcsTaskStates Uses

type SwarmingRpcsTaskStates struct {
    // Possible values:
    //   "BOT_DIED"
    //   "CANCELED"
    //   "COMPLETED"
    //   "EXPIRED"
    //   "INVALID"
    //   "KILLED"
    //   "NO_RESOURCE"
    //   "PENDING"
    //   "RUNNING"
    //   "TIMED_OUT"
    States []string `json:"states,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "States") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "States") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTaskStates: Only holds states. Used in the 'get_states' RPC.

func (*SwarmingRpcsTaskStates) MarshalJSON Uses

func (s *SwarmingRpcsTaskStates) MarshalJSON() ([]byte, error)

type SwarmingRpcsTasksCancelRequest Uses

type SwarmingRpcsTasksCancelRequest struct {
    Cursor string `json:"cursor,omitempty"`

    KillRunning bool `json:"kill_running,omitempty"`

    // Default: 100
    Limit *int64 `json:"limit,omitempty,string"`

    Tags []string `json:"tags,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Cursor") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Cursor") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTasksCancelRequest: Request to cancel some subset of pending/running tasks.

func (*SwarmingRpcsTasksCancelRequest) MarshalJSON Uses

func (s *SwarmingRpcsTasksCancelRequest) MarshalJSON() ([]byte, error)

type SwarmingRpcsTasksCancelResponse Uses

type SwarmingRpcsTasksCancelResponse struct {
    Cursor string `json:"cursor,omitempty"`

    Matched int64 `json:"matched,omitempty,string"`

    Now string `json:"now,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Cursor") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Cursor") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTasksCancelResponse: Result of canceling some subset of pending tasks.

func (*SwarmingRpcsTasksCancelResponse) MarshalJSON Uses

func (s *SwarmingRpcsTasksCancelResponse) MarshalJSON() ([]byte, error)

type SwarmingRpcsTasksCount Uses

type SwarmingRpcsTasksCount struct {
    Count int64 `json:"count,omitempty,string"`

    Now string `json:"now,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Count") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Count") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTasksCount: Returns the count, as requested.

func (*SwarmingRpcsTasksCount) MarshalJSON Uses

func (s *SwarmingRpcsTasksCount) MarshalJSON() ([]byte, error)

type SwarmingRpcsTasksTags Uses

type SwarmingRpcsTasksTags struct {
    // TasksTags: Represents a mapping of string to list of strings.
    TasksTags []*SwarmingRpcsStringListPair `json:"tasks_tags,omitempty"`

    Ts  string `json:"ts,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "TasksTags") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "TasksTags") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTasksTags: Returns all the tags and tag possibilities in the fleet.

func (*SwarmingRpcsTasksTags) MarshalJSON Uses

func (s *SwarmingRpcsTasksTags) MarshalJSON() ([]byte, error)

type SwarmingRpcsTerminateResponse Uses

type SwarmingRpcsTerminateResponse struct {
    TaskId string `json:"task_id,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "TaskId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "TaskId") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SwarmingRpcsTerminateResponse: Returns the pseudo taskid to wait for the bot to shut down.

func (*SwarmingRpcsTerminateResponse) MarshalJSON Uses

func (s *SwarmingRpcsTerminateResponse) MarshalJSON() ([]byte, error)

type TaskCancelCall Uses

type TaskCancelCall struct {
    // contains filtered or unexported fields
}

func (*TaskCancelCall) Context Uses

func (c *TaskCancelCall) Context(ctx context.Context) *TaskCancelCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TaskCancelCall) Do Uses

func (c *TaskCancelCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsCancelResponse, error)

Do executes the "swarming.task.cancel" call. Exactly one of *SwarmingRpcsCancelResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsCancelResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TaskCancelCall) Fields Uses

func (c *TaskCancelCall) Fields(s ...googleapi.Field) *TaskCancelCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TaskCancelCall) Header Uses

func (c *TaskCancelCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type TaskRequestCall Uses

type TaskRequestCall struct {
    // contains filtered or unexported fields
}

func (*TaskRequestCall) Context Uses

func (c *TaskRequestCall) Context(ctx context.Context) *TaskRequestCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TaskRequestCall) Do Uses

func (c *TaskRequestCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsTaskRequest, error)

Do executes the "swarming.task.request" call. Exactly one of *SwarmingRpcsTaskRequest or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsTaskRequest.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TaskRequestCall) Fields Uses

func (c *TaskRequestCall) Fields(s ...googleapi.Field) *TaskRequestCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TaskRequestCall) Header Uses

func (c *TaskRequestCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TaskRequestCall) IfNoneMatch Uses

func (c *TaskRequestCall) IfNoneMatch(entityTag string) *TaskRequestCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type TaskResultCall Uses

type TaskResultCall struct {
    // contains filtered or unexported fields
}

func (*TaskResultCall) Context Uses

func (c *TaskResultCall) Context(ctx context.Context) *TaskResultCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TaskResultCall) Do Uses

func (c *TaskResultCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsTaskResult, error)

Do executes the "swarming.task.result" call. Exactly one of *SwarmingRpcsTaskResult or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsTaskResult.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TaskResultCall) Fields Uses

func (c *TaskResultCall) Fields(s ...googleapi.Field) *TaskResultCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TaskResultCall) Header Uses

func (c *TaskResultCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TaskResultCall) IfNoneMatch Uses

func (c *TaskResultCall) IfNoneMatch(entityTag string) *TaskResultCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TaskResultCall) IncludePerformanceStats Uses

func (c *TaskResultCall) IncludePerformanceStats(includePerformanceStats bool) *TaskResultCall

IncludePerformanceStats sets the optional parameter "include_performance_stats":

type TaskService Uses

type TaskService struct {
    // contains filtered or unexported fields
}

func NewTaskService Uses

func NewTaskService(s *Service) *TaskService

func (*TaskService) Cancel Uses

func (r *TaskService) Cancel(taskId string, swarmingrpcstaskcancelrequest *SwarmingRpcsTaskCancelRequest) *TaskCancelCall

Cancel: Cancels a task. If a bot was running the task, the bot will forcibly cancel the task.

func (*TaskService) Request Uses

func (r *TaskService) Request(taskId string) *TaskRequestCall

Request: Returns the task request corresponding to a task ID.

func (*TaskService) Result Uses

func (r *TaskService) Result(taskId string) *TaskResultCall

Result: Reports the result of the task corresponding to a task ID. It can be a 'run' ID specifying a specific retry or a 'summary' ID hidding the fact that a task may have been retried transparently, when a bot reports BOT_DIED. A summary ID ends with '0', a run ID ends with '1' or '2'.

func (*TaskService) Stdout Uses

func (r *TaskService) Stdout(taskId string) *TaskStdoutCall

Stdout: Returns the output of the task corresponding to a task ID.

type TaskStdoutCall Uses

type TaskStdoutCall struct {
    // contains filtered or unexported fields
}

func (*TaskStdoutCall) Context Uses

func (c *TaskStdoutCall) Context(ctx context.Context) *TaskStdoutCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TaskStdoutCall) Do Uses

func (c *TaskStdoutCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsTaskOutput, error)

Do executes the "swarming.task.stdout" call. Exactly one of *SwarmingRpcsTaskOutput or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsTaskOutput.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TaskStdoutCall) Fields Uses

func (c *TaskStdoutCall) Fields(s ...googleapi.Field) *TaskStdoutCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TaskStdoutCall) Header Uses

func (c *TaskStdoutCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TaskStdoutCall) IfNoneMatch Uses

func (c *TaskStdoutCall) IfNoneMatch(entityTag string) *TaskStdoutCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type TasksCancelCall Uses

type TasksCancelCall struct {
    // contains filtered or unexported fields
}

func (*TasksCancelCall) Context Uses

func (c *TasksCancelCall) Context(ctx context.Context) *TasksCancelCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TasksCancelCall) Do Uses

func (c *TasksCancelCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsTasksCancelResponse, error)

Do executes the "swarming.tasks.cancel" call. Exactly one of *SwarmingRpcsTasksCancelResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsTasksCancelResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TasksCancelCall) Fields Uses

func (c *TasksCancelCall) Fields(s ...googleapi.Field) *TasksCancelCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TasksCancelCall) Header Uses

func (c *TasksCancelCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type TasksCountCall Uses

type TasksCountCall struct {
    // contains filtered or unexported fields
}

func (*TasksCountCall) Context Uses

func (c *TasksCountCall) Context(ctx context.Context) *TasksCountCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TasksCountCall) Do Uses

func (c *TasksCountCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsTasksCount, error)

Do executes the "swarming.tasks.count" call. Exactly one of *SwarmingRpcsTasksCount or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsTasksCount.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TasksCountCall) End Uses

func (c *TasksCountCall) End(end float64) *TasksCountCall

End sets the optional parameter "end":

func (*TasksCountCall) Fields Uses

func (c *TasksCountCall) Fields(s ...googleapi.Field) *TasksCountCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TasksCountCall) Header Uses

func (c *TasksCountCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TasksCountCall) IfNoneMatch Uses

func (c *TasksCountCall) IfNoneMatch(entityTag string) *TasksCountCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TasksCountCall) Start Uses

func (c *TasksCountCall) Start(start float64) *TasksCountCall

Start sets the optional parameter "start":

func (*TasksCountCall) State Uses

func (c *TasksCountCall) State(state string) *TasksCountCall

State sets the optional parameter "state":

Possible values:

"ALL" (default)
"BOT_DIED"
"CANCELED"
"COMPLETED"
"COMPLETED_FAILURE"
"COMPLETED_SUCCESS"
"DEDUPED"
"EXPIRED"
"KILLED"
"NO_RESOURCE"
"PENDING"
"PENDING_RUNNING"
"RUNNING"
"TIMED_OUT"

func (*TasksCountCall) Tags Uses

func (c *TasksCountCall) Tags(tags ...string) *TasksCountCall

Tags sets the optional parameter "tags":

type TasksGetStatesCall Uses

type TasksGetStatesCall struct {
    // contains filtered or unexported fields
}

func (*TasksGetStatesCall) Context Uses

func (c *TasksGetStatesCall) Context(ctx context.Context) *TasksGetStatesCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TasksGetStatesCall) Do Uses

func (c *TasksGetStatesCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsTaskStates, error)

Do executes the "swarming.tasks.get_states" call. Exactly one of *SwarmingRpcsTaskStates or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsTaskStates.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TasksGetStatesCall) Fields Uses

func (c *TasksGetStatesCall) Fields(s ...googleapi.Field) *TasksGetStatesCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TasksGetStatesCall) Header Uses

func (c *TasksGetStatesCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TasksGetStatesCall) IfNoneMatch Uses

func (c *TasksGetStatesCall) IfNoneMatch(entityTag string) *TasksGetStatesCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TasksGetStatesCall) TaskId Uses

func (c *TasksGetStatesCall) TaskId(taskId ...string) *TasksGetStatesCall

TaskId sets the optional parameter "task_id":

type TasksListCall Uses

type TasksListCall struct {
    // contains filtered or unexported fields
}

func (*TasksListCall) Context Uses

func (c *TasksListCall) Context(ctx context.Context) *TasksListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TasksListCall) Cursor Uses

func (c *TasksListCall) Cursor(cursor string) *TasksListCall

Cursor sets the optional parameter "cursor":

func (*TasksListCall) Do Uses

func (c *TasksListCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsTaskList, error)

Do executes the "swarming.tasks.list" call. Exactly one of *SwarmingRpcsTaskList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsTaskList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TasksListCall) End Uses

func (c *TasksListCall) End(end float64) *TasksListCall

End sets the optional parameter "end":

func (*TasksListCall) Fields Uses

func (c *TasksListCall) Fields(s ...googleapi.Field) *TasksListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TasksListCall) Header Uses

func (c *TasksListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TasksListCall) IfNoneMatch Uses

func (c *TasksListCall) IfNoneMatch(entityTag string) *TasksListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TasksListCall) IncludePerformanceStats Uses

func (c *TasksListCall) IncludePerformanceStats(includePerformanceStats bool) *TasksListCall

IncludePerformanceStats sets the optional parameter "include_performance_stats":

func (*TasksListCall) Limit Uses

func (c *TasksListCall) Limit(limit int64) *TasksListCall

Limit sets the optional parameter "limit":

func (*TasksListCall) Sort Uses

func (c *TasksListCall) Sort(sort string) *TasksListCall

Sort sets the optional parameter "sort":

Possible values:

"ABANDONED_TS"
"COMPLETED_TS"
"CREATED_TS" (default)
"MODIFIED_TS"

func (*TasksListCall) Start Uses

func (c *TasksListCall) Start(start float64) *TasksListCall

Start sets the optional parameter "start":

func (*TasksListCall) State Uses

func (c *TasksListCall) State(state string) *TasksListCall

State sets the optional parameter "state":

Possible values:

"ALL" (default)
"BOT_DIED"
"CANCELED"
"COMPLETED"
"COMPLETED_FAILURE"
"COMPLETED_SUCCESS"
"DEDUPED"
"EXPIRED"
"KILLED"
"NO_RESOURCE"
"PENDING"
"PENDING_RUNNING"
"RUNNING"
"TIMED_OUT"

func (*TasksListCall) Tags Uses

func (c *TasksListCall) Tags(tags ...string) *TasksListCall

Tags sets the optional parameter "tags":

type TasksNewCall Uses

type TasksNewCall struct {
    // contains filtered or unexported fields
}

func (*TasksNewCall) Context Uses

func (c *TasksNewCall) Context(ctx context.Context) *TasksNewCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TasksNewCall) Do Uses

func (c *TasksNewCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsTaskRequestMetadata, error)

Do executes the "swarming.tasks.new" call. Exactly one of *SwarmingRpcsTaskRequestMetadata or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsTaskRequestMetadata.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TasksNewCall) Fields Uses

func (c *TasksNewCall) Fields(s ...googleapi.Field) *TasksNewCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TasksNewCall) Header Uses

func (c *TasksNewCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type TasksRequestsCall Uses

type TasksRequestsCall struct {
    // contains filtered or unexported fields
}

func (*TasksRequestsCall) Context Uses

func (c *TasksRequestsCall) Context(ctx context.Context) *TasksRequestsCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TasksRequestsCall) Cursor Uses

func (c *TasksRequestsCall) Cursor(cursor string) *TasksRequestsCall

Cursor sets the optional parameter "cursor":

func (*TasksRequestsCall) Do Uses

func (c *TasksRequestsCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsTaskRequests, error)

Do executes the "swarming.tasks.requests" call. Exactly one of *SwarmingRpcsTaskRequests or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsTaskRequests.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TasksRequestsCall) End Uses

func (c *TasksRequestsCall) End(end float64) *TasksRequestsCall

End sets the optional parameter "end":

func (*TasksRequestsCall) Fields Uses

func (c *TasksRequestsCall) Fields(s ...googleapi.Field) *TasksRequestsCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TasksRequestsCall) Header Uses

func (c *TasksRequestsCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TasksRequestsCall) IfNoneMatch Uses

func (c *TasksRequestsCall) IfNoneMatch(entityTag string) *TasksRequestsCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TasksRequestsCall) IncludePerformanceStats Uses

func (c *TasksRequestsCall) IncludePerformanceStats(includePerformanceStats bool) *TasksRequestsCall

IncludePerformanceStats sets the optional parameter "include_performance_stats":

func (*TasksRequestsCall) Limit Uses

func (c *TasksRequestsCall) Limit(limit int64) *TasksRequestsCall

Limit sets the optional parameter "limit":

func (*TasksRequestsCall) Sort Uses

func (c *TasksRequestsCall) Sort(sort string) *TasksRequestsCall

Sort sets the optional parameter "sort":

Possible values:

"ABANDONED_TS"
"COMPLETED_TS"
"CREATED_TS" (default)
"MODIFIED_TS"

func (*TasksRequestsCall) Start Uses

func (c *TasksRequestsCall) Start(start float64) *TasksRequestsCall

Start sets the optional parameter "start":

func (*TasksRequestsCall) State Uses

func (c *TasksRequestsCall) State(state string) *TasksRequestsCall

State sets the optional parameter "state":

Possible values:

"ALL" (default)
"BOT_DIED"
"CANCELED"
"COMPLETED"
"COMPLETED_FAILURE"
"COMPLETED_SUCCESS"
"DEDUPED"
"EXPIRED"
"KILLED"
"NO_RESOURCE"
"PENDING"
"PENDING_RUNNING"
"RUNNING"
"TIMED_OUT"

func (*TasksRequestsCall) Tags Uses

func (c *TasksRequestsCall) Tags(tags ...string) *TasksRequestsCall

Tags sets the optional parameter "tags":

type TasksService Uses

type TasksService struct {
    // contains filtered or unexported fields
}

func NewTasksService Uses

func NewTasksService(s *Service) *TasksService

func (*TasksService) Cancel Uses

func (r *TasksService) Cancel(swarmingrpcstaskscancelrequest *SwarmingRpcsTasksCancelRequest) *TasksCancelCall

Cancel: Cancel a subset of pending tasks based on the tags. Cancellation happens asynchronously, so when this call returns, cancellations will not have completed yet.

func (*TasksService) Count Uses

func (r *TasksService) Count() *TasksCountCall

Count: Counts number of tasks in a given state.

func (*TasksService) GetStates Uses

func (r *TasksService) GetStates() *TasksGetStatesCall

GetStates: Returns task state for a specific set of tasks.

func (*TasksService) List Uses

func (r *TasksService) List() *TasksListCall

List: Returns full task results based on the filters. This endpoint is significantly slower than 'count'. Use 'count' when possible. If you just want the state of tasks, use 'get_states'.

func (*TasksService) New Uses

func (r *TasksService) New(swarmingrpcsnewtaskrequest *SwarmingRpcsNewTaskRequest) *TasksNewCall

New: Creates a new task. The task will be enqueued in the tasks list and will be executed at the earliest opportunity by a bot that has at least the dimensions as described in the task request.

func (*TasksService) Requests Uses

func (r *TasksService) Requests() *TasksRequestsCall

Requests: Returns tasks requests based on the filters. This endpoint is slightly slower than 'list'. Use 'list' or 'count' when possible.

func (*TasksService) Tags Uses

func (r *TasksService) Tags() *TasksTagsCall

Tags: Returns the cached set of tags currently seen in the fleet.

type TasksTagsCall Uses

type TasksTagsCall struct {
    // contains filtered or unexported fields
}

func (*TasksTagsCall) Context Uses

func (c *TasksTagsCall) Context(ctx context.Context) *TasksTagsCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TasksTagsCall) Do Uses

func (c *TasksTagsCall) Do(opts ...googleapi.CallOption) (*SwarmingRpcsTasksTags, error)

Do executes the "swarming.tasks.tags" call. Exactly one of *SwarmingRpcsTasksTags or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SwarmingRpcsTasksTags.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TasksTagsCall) Fields Uses

func (c *TasksTagsCall) Fields(s ...googleapi.Field) *TasksTagsCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TasksTagsCall) Header Uses

func (c *TasksTagsCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TasksTagsCall) IfNoneMatch Uses

func (c *TasksTagsCall) IfNoneMatch(entityTag string) *TasksTagsCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

Package swarming imports 12 packages (graph) and is imported by 30 packages. Updated 2018-12-14. Refresh now. Tools for package owners.