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

package config

import "go.chromium.org/luci/common/api/luci_config/config/v1"

Package config provides access to the Configuration Service.

Usage example:

import "go.chromium.org/luci/common/api/luci_config/config/v1"
...
configService, err := config.New(oauthHttpClient)

Index

Package Files

config-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 ComponentsConfigEndpointValidationMessage Uses

type ComponentsConfigEndpointValidationMessage struct {
    // Possible values:
    //   "CRITICAL"
    //   "DEBUG"
    //   "ERROR"
    //   "INFO"
    //   "WARNING"
    Severity string `json:"severity,omitempty"`

    Text string `json:"text,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Severity") 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. "Severity") 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 (*ComponentsConfigEndpointValidationMessage) MarshalJSON Uses

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

type GetConfigByHashCall Uses

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

func (*GetConfigByHashCall) Context Uses

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

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

func (c *GetConfigByHashCall) Do(opts ...googleapi.CallOption) (*LuciConfigGetConfigByHashResponseMessage, error)

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

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

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

func (*GetConfigByHashCall) Header Uses

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

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

func (*GetConfigByHashCall) IfNoneMatch Uses

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

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 GetConfigCall Uses

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

func (*GetConfigCall) Context Uses

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

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

func (c *GetConfigCall) Do(opts ...googleapi.CallOption) (*LuciConfigGetConfigResponseMessage, error)

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

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

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

func (*GetConfigCall) HashOnly Uses

func (c *GetConfigCall) HashOnly(hashOnly bool) *GetConfigCall

HashOnly sets the optional parameter "hash_only":

func (*GetConfigCall) Header Uses

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

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

func (*GetConfigCall) IfNoneMatch Uses

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

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 (*GetConfigCall) Revision Uses

func (c *GetConfigCall) Revision(revision string) *GetConfigCall

Revision sets the optional parameter "revision":

type GetConfigSetsCall Uses

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

func (*GetConfigSetsCall) ConfigSet Uses

func (c *GetConfigSetsCall) ConfigSet(configSet string) *GetConfigSetsCall

ConfigSet sets the optional parameter "config_set":

func (*GetConfigSetsCall) Context Uses

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

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

func (c *GetConfigSetsCall) Do(opts ...googleapi.CallOption) (*LuciConfigGetConfigSetsResponseMessage, error)

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

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

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

func (*GetConfigSetsCall) Header Uses

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

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

func (*GetConfigSetsCall) IfNoneMatch Uses

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

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 (*GetConfigSetsCall) IncludeFiles Uses

func (c *GetConfigSetsCall) IncludeFiles(includeFiles bool) *GetConfigSetsCall

IncludeFiles sets the optional parameter "include_files":

func (*GetConfigSetsCall) IncludeLastImportAttempt Uses

func (c *GetConfigSetsCall) IncludeLastImportAttempt(includeLastImportAttempt bool) *GetConfigSetsCall

IncludeLastImportAttempt sets the optional parameter "include_last_import_attempt":

type GetMappingCall Uses

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

func (*GetMappingCall) ConfigSet Uses

func (c *GetMappingCall) ConfigSet(configSet string) *GetMappingCall

ConfigSet sets the optional parameter "config_set":

func (*GetMappingCall) Context Uses

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

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

func (c *GetMappingCall) Do(opts ...googleapi.CallOption) (*LuciConfigGetMappingResponseMessage, error)

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

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

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

func (*GetMappingCall) Header Uses

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

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

func (*GetMappingCall) IfNoneMatch Uses

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

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 GetProjectConfigsCall Uses

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

func (*GetProjectConfigsCall) Context Uses

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

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

func (c *GetProjectConfigsCall) Do(opts ...googleapi.CallOption) (*LuciConfigGetConfigMultiResponseMessage, error)

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

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

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

func (*GetProjectConfigsCall) HashesOnly Uses

func (c *GetProjectConfigsCall) HashesOnly(hashesOnly bool) *GetProjectConfigsCall

HashesOnly sets the optional parameter "hashes_only":

func (*GetProjectConfigsCall) Header Uses

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

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

func (*GetProjectConfigsCall) IfNoneMatch Uses

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

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 GetProjectsCall Uses

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

func (*GetProjectsCall) Context Uses

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

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

func (c *GetProjectsCall) Do(opts ...googleapi.CallOption) (*LuciConfigGetProjectsResponseMessage, error)

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

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

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

func (*GetProjectsCall) Header Uses

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

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

func (*GetProjectsCall) IfNoneMatch Uses

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

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 GetRefConfigsCall Uses

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

func (*GetRefConfigsCall) Context Uses

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

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

func (c *GetRefConfigsCall) Do(opts ...googleapi.CallOption) (*LuciConfigGetConfigMultiResponseMessage, error)

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

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

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

func (*GetRefConfigsCall) HashesOnly Uses

func (c *GetRefConfigsCall) HashesOnly(hashesOnly bool) *GetRefConfigsCall

HashesOnly sets the optional parameter "hashes_only":

func (*GetRefConfigsCall) Header Uses

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

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

func (*GetRefConfigsCall) IfNoneMatch Uses

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

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 GetRefsCall Uses

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

func (*GetRefsCall) Context Uses

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

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

func (c *GetRefsCall) Do(opts ...googleapi.CallOption) (*LuciConfigGetRefsResponseMessage, error)

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

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

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

func (*GetRefsCall) Header Uses

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

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

func (*GetRefsCall) IfNoneMatch Uses

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

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 LuciConfigConfigSet Uses

type LuciConfigConfigSet struct {
    ConfigSet string `json:"config_set,omitempty"`

    // Files: Describes a file.
    Files []*LuciConfigFile `json:"files,omitempty"`

    LastImportAttempt *LuciConfigConfigSetImportAttempt `json:"last_import_attempt,omitempty"`

    Location string `json:"location,omitempty"`

    Revision *LuciConfigRevision `json:"revision,omitempty"`

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

LuciConfigConfigSet: Describes a config set.

func (*LuciConfigConfigSet) MarshalJSON Uses

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

type LuciConfigConfigSetImportAttempt Uses

type LuciConfigConfigSetImportAttempt struct {
    Message string `json:"message,omitempty"`

    Revision *LuciConfigRevision `json:"revision,omitempty"`

    Success bool `json:"success,omitempty"`

    Timestamp int64 `json:"timestamp,omitempty,string"`

    ValidationMessages []*ComponentsConfigEndpointValidationMessage `json:"validation_messages,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Message") 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. "Message") 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 (*LuciConfigConfigSetImportAttempt) MarshalJSON Uses

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

type LuciConfigFile Uses

type LuciConfigFile struct {
    Path string `json:"path,omitempty"`

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

LuciConfigFile: Describes a file.

func (*LuciConfigFile) MarshalJSON Uses

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

type LuciConfigGetConfigByHashResponseMessage Uses

type LuciConfigGetConfigByHashResponseMessage struct {
    Content string `json:"content,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:"-"`
}

func (*LuciConfigGetConfigByHashResponseMessage) MarshalJSON Uses

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

type LuciConfigGetConfigMultiResponseMessage Uses

type LuciConfigGetConfigMultiResponseMessage struct {
    Configs []*LuciConfigGetConfigMultiResponseMessageConfigEntry `json:"configs,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Configs") 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. "Configs") 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 (*LuciConfigGetConfigMultiResponseMessage) MarshalJSON Uses

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

type LuciConfigGetConfigMultiResponseMessageConfigEntry Uses

type LuciConfigGetConfigMultiResponseMessageConfigEntry struct {
    ConfigSet string `json:"config_set,omitempty"`

    Content string `json:"content,omitempty"`

    ContentHash string `json:"content_hash,omitempty"`

    Revision string `json:"revision,omitempty"`

    Url string `json:"url,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ConfigSet") 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. "ConfigSet") 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 (*LuciConfigGetConfigMultiResponseMessageConfigEntry) MarshalJSON Uses

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

type LuciConfigGetConfigResponseMessage Uses

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

    ContentHash string `json:"content_hash,omitempty"`

    Revision string `json:"revision,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:"-"`
}

func (*LuciConfigGetConfigResponseMessage) MarshalJSON Uses

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

type LuciConfigGetConfigSetsResponseMessage Uses

type LuciConfigGetConfigSetsResponseMessage struct {
    // ConfigSets: Describes a config set.
    ConfigSets []*LuciConfigConfigSet `json:"config_sets,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "ConfigSets") 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. "ConfigSets") 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 (*LuciConfigGetConfigSetsResponseMessage) MarshalJSON Uses

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

type LuciConfigGetMappingResponseMessage Uses

type LuciConfigGetMappingResponseMessage struct {
    Mappings []*LuciConfigGetMappingResponseMessageMapping `json:"mappings,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Mappings") 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. "Mappings") 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 (*LuciConfigGetMappingResponseMessage) MarshalJSON Uses

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

type LuciConfigGetMappingResponseMessageMapping Uses

type LuciConfigGetMappingResponseMessageMapping struct {
    ConfigSet string `json:"config_set,omitempty"`

    Location string `json:"location,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ConfigSet") 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. "ConfigSet") 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 (*LuciConfigGetMappingResponseMessageMapping) MarshalJSON Uses

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

type LuciConfigGetProjectsResponseMessage Uses

type LuciConfigGetProjectsResponseMessage struct {
    Projects []*LuciConfigProject `json:"projects,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Projects") 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. "Projects") 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 (*LuciConfigGetProjectsResponseMessage) MarshalJSON Uses

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

type LuciConfigGetRefsResponseMessage Uses

type LuciConfigGetRefsResponseMessage struct {
    Refs []*LuciConfigGetRefsResponseMessageRef `json:"refs,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Refs") 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. "Refs") 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 (*LuciConfigGetRefsResponseMessage) MarshalJSON Uses

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

type LuciConfigGetRefsResponseMessageRef Uses

type LuciConfigGetRefsResponseMessageRef struct {
    Name string `json:"name,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:"-"`
}

func (*LuciConfigGetRefsResponseMessageRef) MarshalJSON Uses

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

type LuciConfigProject Uses

type LuciConfigProject struct {
    Id  string `json:"id,omitempty"`

    Name string `json:"name,omitempty"`

    // Possible values:
    //   "GITILES"
    RepoType string `json:"repo_type,omitempty"`

    RepoUrl string `json:"repo_url,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") 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 (*LuciConfigProject) MarshalJSON Uses

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

type LuciConfigRevision Uses

type LuciConfigRevision struct {
    CommitterEmail string `json:"committer_email,omitempty"`

    Id  string `json:"id,omitempty"`

    Timestamp int64 `json:"timestamp,omitempty,string"`

    Url string `json:"url,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CommitterEmail") 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. "CommitterEmail") 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 (*LuciConfigRevision) MarshalJSON Uses

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

type LuciConfigValidateConfigRequestMessage Uses

type LuciConfigValidateConfigRequestMessage struct {
    ConfigSet string `json:"config_set,omitempty"`

    Files []*LuciConfigValidateConfigRequestMessageFile `json:"files,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ConfigSet") 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. "ConfigSet") 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 (*LuciConfigValidateConfigRequestMessage) MarshalJSON Uses

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

type LuciConfigValidateConfigRequestMessageFile Uses

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

    Path string `json:"path,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:"-"`
}

func (*LuciConfigValidateConfigRequestMessageFile) MarshalJSON Uses

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

type LuciConfigValidateConfigResponseMessage Uses

type LuciConfigValidateConfigResponseMessage struct {
    Messages []*ComponentsConfigEndpointValidationMessage `json:"messages,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Messages") 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. "Messages") 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 (*LuciConfigValidateConfigResponseMessage) MarshalJSON Uses

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

type ReimportCall Uses

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

func (*ReimportCall) Context Uses

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

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

func (c *ReimportCall) Do(opts ...googleapi.CallOption) error

Do executes the "config.reimport" call.

func (*ReimportCall) Fields Uses

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

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

func (*ReimportCall) Header Uses

func (c *ReimportCall) 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
    // contains filtered or unexported fields
}

func New Uses

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

func (*Service) GetConfig Uses

func (s *Service) GetConfig(configSet string, path string) *GetConfigCall

GetConfig: Gets a config file.

func (*Service) GetConfigByHash Uses

func (s *Service) GetConfigByHash(contentHash string) *GetConfigByHashCall

GetConfigByHash: Gets a config file by its hash.

func (*Service) GetConfigSets Uses

func (s *Service) GetConfigSets() *GetConfigSetsCall

GetConfigSets: Returns config sets.

func (*Service) GetMapping Uses

func (s *Service) GetMapping() *GetMappingCall

GetMapping: DEPRECATED. Use get_config_sets.

func (*Service) GetProjectConfigs Uses

func (s *Service) GetProjectConfigs(path string) *GetProjectConfigsCall

GetProjectConfigs: Gets configs in all project config sets.

func (*Service) GetProjects Uses

func (s *Service) GetProjects() *GetProjectsCall

GetProjects: Gets list of registered projects. The project list is stored in services/luci-config:projects.cfg.

func (*Service) GetRefConfigs Uses

func (s *Service) GetRefConfigs(path string) *GetRefConfigsCall

GetRefConfigs: Gets configs in all ref config sets.

func (*Service) GetRefs Uses

func (s *Service) GetRefs(projectId string) *GetRefsCall

GetRefs: Gets list of refs of a project.

func (*Service) Reimport Uses

func (s *Service) Reimport(configSet string) *ReimportCall

Reimport: Reimports a config set.

func (*Service) ValidateConfig Uses

func (s *Service) ValidateConfig(luciconfigvalidateconfigrequestmessage *LuciConfigValidateConfigRequestMessage) *ValidateConfigCall

ValidateConfig:

type ValidateConfigCall Uses

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

func (*ValidateConfigCall) Context Uses

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

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

func (c *ValidateConfigCall) Do(opts ...googleapi.CallOption) (*LuciConfigValidateConfigResponseMessage, error)

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

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

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

func (*ValidateConfigCall) Header Uses

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

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

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