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

package isolateservice

import "go.chromium.org/luci/common/api/isolate/isolateservice/v1"

Package isolateservice provides access to the .

Usage example:

import "go.chromium.org/luci/common/api/isolate/isolateservice/v1"
...
isolateserviceService, err := isolateservice.New(oauthHttpClient)

Index

Package Files

isolateservice-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 FinalizeGsUploadCall Uses

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

func (*FinalizeGsUploadCall) Context Uses

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

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 (*FinalizeGsUploadCall) Do Uses

func (c *FinalizeGsUploadCall) Do(opts ...googleapi.CallOption) (*HandlersEndpointsV1PushPing, error)

Do executes the "isolateservice.finalize_gs_upload" call. Exactly one of *HandlersEndpointsV1PushPing or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HandlersEndpointsV1PushPing.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 (*FinalizeGsUploadCall) Fields Uses

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

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

func (*FinalizeGsUploadCall) Header Uses

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

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

type HandlersEndpointsV1Digest Uses

type HandlersEndpointsV1Digest struct {
    Digest string `json:"digest,omitempty"`

    IsIsolated bool `json:"is_isolated,omitempty"`

    Size int64 `json:"size,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "Digest") 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. "Digest") 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:"-"`
}

HandlersEndpointsV1Digest: ProtoRPC message containing digest information.

func (*HandlersEndpointsV1Digest) MarshalJSON Uses

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

type HandlersEndpointsV1DigestCollection Uses

type HandlersEndpointsV1DigestCollection struct {
    // Items: ProtoRPC message containing digest information.
    Items []*HandlersEndpointsV1Digest `json:"items,omitempty"`

    // Namespace: Encapsulates namespace, compression, and hash algorithm.
    Namespace *HandlersEndpointsV1Namespace `json:"namespace,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"`
}

HandlersEndpointsV1DigestCollection: Endpoints request type analogous to the existing JSON post body.

func (*HandlersEndpointsV1DigestCollection) MarshalJSON Uses

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

type HandlersEndpointsV1FinalizeRequest Uses

type HandlersEndpointsV1FinalizeRequest struct {
    UploadTicket string `json:"upload_ticket,omitempty"`

    // ForceSendFields is a list of field names (e.g. "UploadTicket") 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. "UploadTicket") 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:"-"`
}

HandlersEndpointsV1FinalizeRequest: Request to validate upload of large Google storage entities.

func (*HandlersEndpointsV1FinalizeRequest) MarshalJSON Uses

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

type HandlersEndpointsV1Namespace Uses

type HandlersEndpointsV1Namespace struct {
    Compression string `json:"compression,omitempty"`

    DigestHash string `json:"digest_hash,omitempty"`

    Namespace string `json:"namespace,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Compression") 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. "Compression") 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:"-"`
}

HandlersEndpointsV1Namespace: Encapsulates namespace, compression, and hash algorithm.

func (*HandlersEndpointsV1Namespace) MarshalJSON Uses

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

type HandlersEndpointsV1PreuploadStatus Uses

type HandlersEndpointsV1PreuploadStatus struct {
    GsUploadUrl string `json:"gs_upload_url,omitempty"`

    Index int64 `json:"index,omitempty,string"`

    UploadTicket string `json:"upload_ticket,omitempty"`

    // ForceSendFields is a list of field names (e.g. "GsUploadUrl") 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. "GsUploadUrl") 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:"-"`
}

HandlersEndpointsV1PreuploadStatus: Endpoints response type for a single URL or pair of URLs.

func (*HandlersEndpointsV1PreuploadStatus) MarshalJSON Uses

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

type HandlersEndpointsV1PushPing Uses

type HandlersEndpointsV1PushPing struct {
    Ok  bool `json:"ok,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:"-"`
}

HandlersEndpointsV1PushPing: Indicates whether data storage executed successfully.

func (*HandlersEndpointsV1PushPing) MarshalJSON Uses

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

type HandlersEndpointsV1RetrieveRequest Uses

type HandlersEndpointsV1RetrieveRequest struct {
    Digest string `json:"digest,omitempty"`

    // Namespace: Encapsulates namespace, compression, and hash algorithm.
    Namespace *HandlersEndpointsV1Namespace `json:"namespace,omitempty"`

    Offset int64 `json:"offset,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "Digest") 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. "Digest") 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:"-"`
}

HandlersEndpointsV1RetrieveRequest: Request to retrieve content from memcache, datastore, or GS.

func (*HandlersEndpointsV1RetrieveRequest) MarshalJSON Uses

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

type HandlersEndpointsV1RetrievedContent Uses

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

    Url string `json:"url,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:"-"`
}

HandlersEndpointsV1RetrievedContent: Content retrieved from DB, or GS URL.

func (*HandlersEndpointsV1RetrievedContent) MarshalJSON Uses

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

type HandlersEndpointsV1ServerDetails Uses

type HandlersEndpointsV1ServerDetails struct {
    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. "ServerVersion") 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. "ServerVersion") 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:"-"`
}

HandlersEndpointsV1ServerDetails: Reports the current API version.

func (*HandlersEndpointsV1ServerDetails) MarshalJSON Uses

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

type HandlersEndpointsV1StorageRequest Uses

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

    UploadTicket string `json:"upload_ticket,omitempty"`

    // 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:"-"`
}

HandlersEndpointsV1StorageRequest: ProtoRPC message representing an entity to be added to the data store.

func (*HandlersEndpointsV1StorageRequest) MarshalJSON Uses

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

type HandlersEndpointsV1UrlCollection Uses

type HandlersEndpointsV1UrlCollection struct {
    // Items: Endpoints response type for a single URL or pair of URLs.
    Items []*HandlersEndpointsV1PreuploadStatus `json:"items,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"`
}

HandlersEndpointsV1UrlCollection: Endpoints response type analogous to existing JSON response.

func (*HandlersEndpointsV1UrlCollection) MarshalJSON Uses

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

type PreuploadCall Uses

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

func (*PreuploadCall) Context Uses

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

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 (*PreuploadCall) Do Uses

func (c *PreuploadCall) Do(opts ...googleapi.CallOption) (*HandlersEndpointsV1UrlCollection, error)

Do executes the "isolateservice.preupload" call. Exactly one of *HandlersEndpointsV1UrlCollection or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HandlersEndpointsV1UrlCollection.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 (*PreuploadCall) Fields Uses

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

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

func (*PreuploadCall) Header Uses

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

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

type RetrieveCall Uses

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

func (*RetrieveCall) Context Uses

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

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 (*RetrieveCall) Do Uses

func (c *RetrieveCall) Do(opts ...googleapi.CallOption) (*HandlersEndpointsV1RetrievedContent, error)

Do executes the "isolateservice.retrieve" call. Exactly one of *HandlersEndpointsV1RetrievedContent or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HandlersEndpointsV1RetrievedContent.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 (*RetrieveCall) Fields Uses

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

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

func (*RetrieveCall) Header Uses

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

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

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) (*HandlersEndpointsV1ServerDetails, error)

Do executes the "isolateservice.server_details" call. Exactly one of *HandlersEndpointsV1ServerDetails or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HandlersEndpointsV1ServerDetails.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 Service Uses

type Service struct {
    BasePath  string // API endpoint base URL
    UserAgent string // optional additional User-Agent fragment
    // contains filtered or unexported fields
}

func New Uses

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

func (*Service) FinalizeGsUpload Uses

func (s *Service) FinalizeGsUpload(handlersendpointsv1finalizerequest *HandlersEndpointsV1FinalizeRequest) *FinalizeGsUploadCall

FinalizeGsUpload: Informs client that large entities have been uploaded to GCS.

func (*Service) Preupload Uses

func (s *Service) Preupload(handlersendpointsv1digestcollection *HandlersEndpointsV1DigestCollection) *PreuploadCall

Preupload: Checks for entry's existence and generates upload URLs. Arguments: request: the DigestCollection to be posted Returns: the UrlCollection corresponding to the uploaded digests The response list is commensurate to the request's; each UrlMessage has * if an entry is missing: two URLs: the URL to upload a file to and the URL to call when the upload is done (can be null). * if the entry is already present: null URLs (”). UrlCollection([ UrlMessage( upload_url = "<upload url>" finalize_url = "<finalize url>" ) UrlMessage( upload_url = ”) ... ])

func (*Service) Retrieve Uses

func (s *Service) Retrieve(handlersendpointsv1retrieverequest *HandlersEndpointsV1RetrieveRequest) *RetrieveCall

Retrieve: Retrieves content from a storage location.

func (*Service) ServerDetails Uses

func (s *Service) ServerDetails() *ServerDetailsCall

ServerDetails:

func (*Service) StoreInline Uses

func (s *Service) StoreInline(handlersendpointsv1storagerequest *HandlersEndpointsV1StorageRequest) *StoreInlineCall

StoreInline: Stores relatively small entities in the datastore.

type StoreInlineCall Uses

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

func (*StoreInlineCall) Context Uses

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

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 (*StoreInlineCall) Do Uses

func (c *StoreInlineCall) Do(opts ...googleapi.CallOption) (*HandlersEndpointsV1PushPing, error)

Do executes the "isolateservice.store_inline" call. Exactly one of *HandlersEndpointsV1PushPing or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HandlersEndpointsV1PushPing.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 (*StoreInlineCall) Fields Uses

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

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

func (*StoreInlineCall) Header Uses

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

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

Package isolateservice imports 13 packages (graph) and is imported by 11 packages. Updated 2018-08-19. Refresh now. Tools for package owners.