Documentation ¶
Overview ¶
Package containeranalysis provides access to the Container Analysis API.
See https://cloud.google.com/container-analysis/api/reference/rest/
Usage example:
import "github.com/skelterjohn/gcloud_apis/clients/containeranalysis/v1alpha1" ... containeranalysisService, err := containeranalysis.New(oauthHttpClient)
Index ¶
- Constants
- type AliasContext
- type Artifact
- type AuditConfig
- type AuditLogConfig
- type Basis
- type Binding
- type BuildDetails
- type BuildProvenance
- type BuildSignature
- type BuildType
- type CloudAuditOptions
- type CloudRepoSourceContext
- type CloudWorkspaceId
- type CloudWorkspaceSourceContext
- type Command
- type Condition
- type CounterOptions
- type DataAccessOptions
- type Derived
- type Detail
- type Distribution
- type Empty
- type ExtendedSourceContext
- type FileHashes
- type Fingerprint
- type GerritSourceContext
- type GetIamPolicyRequest
- type GitSourceContext
- type Hash
- type Installation
- type Layer
- type ListNoteOccurrencesResponse
- type ListNotesResponse
- type ListOccurrencesResponse
- type Location
- type LogConfig
- type Note
- type Occurrence
- type Package
- type PackageIssue
- type Policy
- type ProjectRepoId
- type ProjectsNotesCreateCall
- func (c *ProjectsNotesCreateCall) Context(ctx context.Context) *ProjectsNotesCreateCall
- func (c *ProjectsNotesCreateCall) Do(opts ...googleapi.CallOption) (*Note, error)
- func (c *ProjectsNotesCreateCall) Fields(s ...googleapi.Field) *ProjectsNotesCreateCall
- func (c *ProjectsNotesCreateCall) Name(name string) *ProjectsNotesCreateCall
- func (c *ProjectsNotesCreateCall) NoteId(noteId string) *ProjectsNotesCreateCall
- type ProjectsNotesDeleteCall
- type ProjectsNotesGetCall
- func (c *ProjectsNotesGetCall) Context(ctx context.Context) *ProjectsNotesGetCall
- func (c *ProjectsNotesGetCall) Do(opts ...googleapi.CallOption) (*Note, error)
- func (c *ProjectsNotesGetCall) Fields(s ...googleapi.Field) *ProjectsNotesGetCall
- func (c *ProjectsNotesGetCall) IfNoneMatch(entityTag string) *ProjectsNotesGetCall
- type ProjectsNotesGetIamPolicyCall
- type ProjectsNotesListCall
- func (c *ProjectsNotesListCall) Context(ctx context.Context) *ProjectsNotesListCall
- func (c *ProjectsNotesListCall) Do(opts ...googleapi.CallOption) (*ListNotesResponse, error)
- func (c *ProjectsNotesListCall) Fields(s ...googleapi.Field) *ProjectsNotesListCall
- func (c *ProjectsNotesListCall) Filter(filter string) *ProjectsNotesListCall
- func (c *ProjectsNotesListCall) IfNoneMatch(entityTag string) *ProjectsNotesListCall
- func (c *ProjectsNotesListCall) Name(name string) *ProjectsNotesListCall
- func (c *ProjectsNotesListCall) PageSize(pageSize int64) *ProjectsNotesListCall
- func (c *ProjectsNotesListCall) PageToken(pageToken string) *ProjectsNotesListCall
- func (c *ProjectsNotesListCall) Pages(ctx context.Context, f func(*ListNotesResponse) error) error
- type ProjectsNotesOccurrencesListCall
- func (c *ProjectsNotesOccurrencesListCall) Context(ctx context.Context) *ProjectsNotesOccurrencesListCall
- func (c *ProjectsNotesOccurrencesListCall) Do(opts ...googleapi.CallOption) (*ListNoteOccurrencesResponse, error)
- func (c *ProjectsNotesOccurrencesListCall) Fields(s ...googleapi.Field) *ProjectsNotesOccurrencesListCall
- func (c *ProjectsNotesOccurrencesListCall) Filter(filter string) *ProjectsNotesOccurrencesListCall
- func (c *ProjectsNotesOccurrencesListCall) IfNoneMatch(entityTag string) *ProjectsNotesOccurrencesListCall
- func (c *ProjectsNotesOccurrencesListCall) PageSize(pageSize int64) *ProjectsNotesOccurrencesListCall
- func (c *ProjectsNotesOccurrencesListCall) PageToken(pageToken string) *ProjectsNotesOccurrencesListCall
- func (c *ProjectsNotesOccurrencesListCall) Pages(ctx context.Context, f func(*ListNoteOccurrencesResponse) error) error
- type ProjectsNotesOccurrencesService
- type ProjectsNotesService
- func (r *ProjectsNotesService) Create(parent string, note *Note) *ProjectsNotesCreateCall
- func (r *ProjectsNotesService) Delete(name string) *ProjectsNotesDeleteCall
- func (r *ProjectsNotesService) Get(name string) *ProjectsNotesGetCall
- func (r *ProjectsNotesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsNotesGetIamPolicyCall
- func (r *ProjectsNotesService) List(parent string) *ProjectsNotesListCall
- func (r *ProjectsNotesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsNotesSetIamPolicyCall
- func (r *ProjectsNotesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsNotesTestIamPermissionsCall
- func (r *ProjectsNotesService) Update(name string, note *Note) *ProjectsNotesUpdateCall
- type ProjectsNotesSetIamPolicyCall
- type ProjectsNotesTestIamPermissionsCall
- func (c *ProjectsNotesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsNotesTestIamPermissionsCall
- func (c *ProjectsNotesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsNotesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsNotesTestIamPermissionsCall
- type ProjectsNotesUpdateCall
- type ProjectsOccurrencesCreateCall
- func (c *ProjectsOccurrencesCreateCall) Context(ctx context.Context) *ProjectsOccurrencesCreateCall
- func (c *ProjectsOccurrencesCreateCall) Do(opts ...googleapi.CallOption) (*Occurrence, error)
- func (c *ProjectsOccurrencesCreateCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesCreateCall
- func (c *ProjectsOccurrencesCreateCall) Name(name string) *ProjectsOccurrencesCreateCall
- type ProjectsOccurrencesDeleteCall
- type ProjectsOccurrencesGetCall
- func (c *ProjectsOccurrencesGetCall) Context(ctx context.Context) *ProjectsOccurrencesGetCall
- func (c *ProjectsOccurrencesGetCall) Do(opts ...googleapi.CallOption) (*Occurrence, error)
- func (c *ProjectsOccurrencesGetCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesGetCall
- func (c *ProjectsOccurrencesGetCall) IfNoneMatch(entityTag string) *ProjectsOccurrencesGetCall
- type ProjectsOccurrencesGetIamPolicyCall
- func (c *ProjectsOccurrencesGetIamPolicyCall) Context(ctx context.Context) *ProjectsOccurrencesGetIamPolicyCall
- func (c *ProjectsOccurrencesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsOccurrencesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesGetIamPolicyCall
- type ProjectsOccurrencesGetNotesCall
- func (c *ProjectsOccurrencesGetNotesCall) Context(ctx context.Context) *ProjectsOccurrencesGetNotesCall
- func (c *ProjectsOccurrencesGetNotesCall) Do(opts ...googleapi.CallOption) (*Note, error)
- func (c *ProjectsOccurrencesGetNotesCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesGetNotesCall
- func (c *ProjectsOccurrencesGetNotesCall) IfNoneMatch(entityTag string) *ProjectsOccurrencesGetNotesCall
- type ProjectsOccurrencesListCall
- func (c *ProjectsOccurrencesListCall) Context(ctx context.Context) *ProjectsOccurrencesListCall
- func (c *ProjectsOccurrencesListCall) Do(opts ...googleapi.CallOption) (*ListOccurrencesResponse, error)
- func (c *ProjectsOccurrencesListCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesListCall
- func (c *ProjectsOccurrencesListCall) Filter(filter string) *ProjectsOccurrencesListCall
- func (c *ProjectsOccurrencesListCall) IfNoneMatch(entityTag string) *ProjectsOccurrencesListCall
- func (c *ProjectsOccurrencesListCall) Name(name string) *ProjectsOccurrencesListCall
- func (c *ProjectsOccurrencesListCall) PageSize(pageSize int64) *ProjectsOccurrencesListCall
- func (c *ProjectsOccurrencesListCall) PageToken(pageToken string) *ProjectsOccurrencesListCall
- func (c *ProjectsOccurrencesListCall) Pages(ctx context.Context, f func(*ListOccurrencesResponse) error) error
- type ProjectsOccurrencesService
- func (r *ProjectsOccurrencesService) Create(parent string, occurrence *Occurrence) *ProjectsOccurrencesCreateCall
- func (r *ProjectsOccurrencesService) Delete(name string) *ProjectsOccurrencesDeleteCall
- func (r *ProjectsOccurrencesService) Get(name string) *ProjectsOccurrencesGetCall
- func (r *ProjectsOccurrencesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsOccurrencesGetIamPolicyCall
- func (r *ProjectsOccurrencesService) GetNotes(name string) *ProjectsOccurrencesGetNotesCall
- func (r *ProjectsOccurrencesService) List(parent string) *ProjectsOccurrencesListCall
- func (r *ProjectsOccurrencesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsOccurrencesSetIamPolicyCall
- func (r *ProjectsOccurrencesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsOccurrencesTestIamPermissionsCall
- func (r *ProjectsOccurrencesService) Update(name string, occurrence *Occurrence) *ProjectsOccurrencesUpdateCall
- type ProjectsOccurrencesSetIamPolicyCall
- func (c *ProjectsOccurrencesSetIamPolicyCall) Context(ctx context.Context) *ProjectsOccurrencesSetIamPolicyCall
- func (c *ProjectsOccurrencesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsOccurrencesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesSetIamPolicyCall
- type ProjectsOccurrencesTestIamPermissionsCall
- func (c *ProjectsOccurrencesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsOccurrencesTestIamPermissionsCall
- func (c *ProjectsOccurrencesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsOccurrencesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesTestIamPermissionsCall
- type ProjectsOccurrencesUpdateCall
- type ProjectsService
- type ProvidersNotesCreateCall
- func (c *ProvidersNotesCreateCall) Context(ctx context.Context) *ProvidersNotesCreateCall
- func (c *ProvidersNotesCreateCall) Do(opts ...googleapi.CallOption) (*Note, error)
- func (c *ProvidersNotesCreateCall) Fields(s ...googleapi.Field) *ProvidersNotesCreateCall
- func (c *ProvidersNotesCreateCall) NoteId(noteId string) *ProvidersNotesCreateCall
- func (c *ProvidersNotesCreateCall) Parent(parent string) *ProvidersNotesCreateCall
- type ProvidersNotesDeleteCall
- type ProvidersNotesGetCall
- func (c *ProvidersNotesGetCall) Context(ctx context.Context) *ProvidersNotesGetCall
- func (c *ProvidersNotesGetCall) Do(opts ...googleapi.CallOption) (*Note, error)
- func (c *ProvidersNotesGetCall) Fields(s ...googleapi.Field) *ProvidersNotesGetCall
- func (c *ProvidersNotesGetCall) IfNoneMatch(entityTag string) *ProvidersNotesGetCall
- type ProvidersNotesGetIamPolicyCall
- type ProvidersNotesListCall
- func (c *ProvidersNotesListCall) Context(ctx context.Context) *ProvidersNotesListCall
- func (c *ProvidersNotesListCall) Do(opts ...googleapi.CallOption) (*ListNotesResponse, error)
- func (c *ProvidersNotesListCall) Fields(s ...googleapi.Field) *ProvidersNotesListCall
- func (c *ProvidersNotesListCall) Filter(filter string) *ProvidersNotesListCall
- func (c *ProvidersNotesListCall) IfNoneMatch(entityTag string) *ProvidersNotesListCall
- func (c *ProvidersNotesListCall) PageSize(pageSize int64) *ProvidersNotesListCall
- func (c *ProvidersNotesListCall) PageToken(pageToken string) *ProvidersNotesListCall
- func (c *ProvidersNotesListCall) Pages(ctx context.Context, f func(*ListNotesResponse) error) error
- func (c *ProvidersNotesListCall) Parent(parent string) *ProvidersNotesListCall
- type ProvidersNotesOccurrencesListCall
- func (c *ProvidersNotesOccurrencesListCall) Context(ctx context.Context) *ProvidersNotesOccurrencesListCall
- func (c *ProvidersNotesOccurrencesListCall) Do(opts ...googleapi.CallOption) (*ListNoteOccurrencesResponse, error)
- func (c *ProvidersNotesOccurrencesListCall) Fields(s ...googleapi.Field) *ProvidersNotesOccurrencesListCall
- func (c *ProvidersNotesOccurrencesListCall) Filter(filter string) *ProvidersNotesOccurrencesListCall
- func (c *ProvidersNotesOccurrencesListCall) IfNoneMatch(entityTag string) *ProvidersNotesOccurrencesListCall
- func (c *ProvidersNotesOccurrencesListCall) PageSize(pageSize int64) *ProvidersNotesOccurrencesListCall
- func (c *ProvidersNotesOccurrencesListCall) PageToken(pageToken string) *ProvidersNotesOccurrencesListCall
- func (c *ProvidersNotesOccurrencesListCall) Pages(ctx context.Context, f func(*ListNoteOccurrencesResponse) error) error
- type ProvidersNotesOccurrencesService
- type ProvidersNotesService
- func (r *ProvidersNotesService) Create(name string, note *Note) *ProvidersNotesCreateCall
- func (r *ProvidersNotesService) Delete(name string) *ProvidersNotesDeleteCall
- func (r *ProvidersNotesService) Get(name string) *ProvidersNotesGetCall
- func (r *ProvidersNotesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProvidersNotesGetIamPolicyCall
- func (r *ProvidersNotesService) List(name string) *ProvidersNotesListCall
- func (r *ProvidersNotesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProvidersNotesSetIamPolicyCall
- func (r *ProvidersNotesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProvidersNotesTestIamPermissionsCall
- func (r *ProvidersNotesService) Update(name string, note *Note) *ProvidersNotesUpdateCall
- type ProvidersNotesSetIamPolicyCall
- type ProvidersNotesTestIamPermissionsCall
- func (c *ProvidersNotesTestIamPermissionsCall) Context(ctx context.Context) *ProvidersNotesTestIamPermissionsCall
- func (c *ProvidersNotesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProvidersNotesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProvidersNotesTestIamPermissionsCall
- type ProvidersNotesUpdateCall
- type ProvidersService
- type RelatedUrl
- type RepoId
- type RepoSource
- type Rule
- type Service
- type SetIamPolicyRequest
- type Source
- type SourceContext
- type StorageSource
- type TestIamPermissionsRequest
- type TestIamPermissionsResponse
- type Version
- type VulnerabilityDetails
- type VulnerabilityLocation
- type VulnerabilityType
Constants ¶
const (
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasContext ¶
type AliasContext struct { // Kind: The alias kind. // // Possible values: // "ANY" - Do not use. // "FIXED" - Git tag // "MOVABLE" - Git branch // "OTHER" - OTHER is used to specify non-standard aliases, those not // of the kinds // above. For example, if a Git repo has a ref named "refs/foo/bar", // it // is considered to be of kind OTHER. Kind string `json:"kind,omitempty"` // Name: The alias name. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Kind") 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:"-"` }
AliasContext: An alias to a repo revision.
func (*AliasContext) MarshalJSON ¶
func (s *AliasContext) MarshalJSON() ([]byte, error)
type Artifact ¶
type Artifact struct { // Checksum: Hash or checksum value of a binary, or Docker Registry 2.0 // digest of a // container. Checksum string `json:"checksum,omitempty"` // Id: Artifact ID, if any; for container images, this will be a URL by // digest // like gcr.io/projectID/imagename@sha256:123456 Id string `json:"id,omitempty"` // Name: Name of the artifact. This may be the path to a binary or jar // file, or in // the case of a container build, the name used to push the container // image to // Google Container Registry, as presented to `docker push`. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Checksum") 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:"-"` }
Artifact: Artifact destribes a build product.
func (*Artifact) MarshalJSON ¶
type AuditConfig ¶
type AuditConfig struct { // AuditLogConfigs: The configuration for logging of each type of // permission. // Next ID: 4 AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` ExemptedMembers []string `json:"exemptedMembers,omitempty"` // Service: Specifies a service that will be enabled for audit // logging. // For example, `resourcemanager`, `storage`, `compute`. // `allServices` is a special value that covers all services. Service string `json:"service,omitempty"` // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") 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:"-"` }
AuditConfig: Specifies the audit configuration for a service. It consists of which permission types are logged, and what identities, if any, are exempted from logging. An AuditConifg must have one or more AuditLogConfigs.
If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditConfig are exempted. Example Policy with multiple AuditConfigs:
{ "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice@googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] }
For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.
func (*AuditConfig) MarshalJSON ¶
func (s *AuditConfig) MarshalJSON() ([]byte, error)
type AuditLogConfig ¶
type AuditLogConfig struct { // ExemptedMembers: Specifies the identities that do not cause logging // for this type of // permission. // Follows the same format of Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` // LogType: The log type that this config enables. // // Possible values: // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` // ForceSendFields is a list of field names (e.g. "ExemptedMembers") 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:"-"` }
AuditLogConfig: Provides the configuration for logging a type of permissions. Example:
{ "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.
func (*AuditLogConfig) MarshalJSON ¶
func (s *AuditLogConfig) MarshalJSON() ([]byte, error)
type Basis ¶
type Basis struct { // Fingerprint: The fingerprint of the base image Fingerprint *Fingerprint `json:"fingerprint,omitempty"` // ResourceUrl: The resource_url for the resource representing the basis // of // associated occurrence images. ResourceUrl string `json:"resourceUrl,omitempty"` // ForceSendFields is a list of field names (e.g. "Fingerprint") 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:"-"` }
Basis: Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via:
FROM <Basis.resource_url>
Or an equivalent reference, e.g. a tag of the resource_url.
func (*Basis) MarshalJSON ¶
type Binding ¶
type Binding struct { // Members: Specifies the identities requesting access for a Cloud // Platform resource. // `members` can have the following values: // // * `allUsers`: A special identifier that represents anyone who is // on the internet; with or without a Google account. // // * `allAuthenticatedUsers`: A special identifier that represents // anyone // who is authenticated with a Google account or a service // account. // // * `user:{emailid}`: An email address that represents a specific // Google // account. For example, `alice@gmail.com` or `joe@example.com`. // // // * `serviceAccount:{emailid}`: An email address that represents a // service // account. For example, // `my-other-app@appspot.gserviceaccount.com`. // // * `group:{emailid}`: An email address that represents a Google // group. // For example, `admins@example.com`. // // * `domain:{domain}`: A Google Apps domain name that represents all // the // users of that domain. For example, `google.com` or // `example.com`. // // Members []string `json:"members,omitempty"` // Role: Role that is assigned to `members`. // For example, `roles/viewer`, `roles/editor`, or // `roles/owner`. // Required Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Members") 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:"-"` }
Binding: Associates `members` with a `role`.
func (*Binding) MarshalJSON ¶
type BuildDetails ¶
type BuildDetails struct { // Provenance: The actual provenance Provenance *BuildProvenance `json:"provenance,omitempty"` // ProvenanceBytes: Serialized json representation of the provenance, // used in generating the // BuildSignature in the corresponding Result. After verifying the // signature, // provenance_bytes can be unmarshalled and compared to the provenance // to // confirm that it is unchanged. A base64-encoded string representation // of the // provenance bytes is used for the signature in order to interoperate // with // openssl which expects this format for signature verification. // // The serialized form is captured both to avoid ambiguity in how // the // provenance is marshalled to json as well to prevent incompatibilities // with // future changes. ProvenanceBytes string `json:"provenanceBytes,omitempty"` // ForceSendFields is a list of field names (e.g. "Provenance") 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:"-"` }
BuildDetails: Message encapsulating build provenance details
func (*BuildDetails) MarshalJSON ¶
func (s *BuildDetails) MarshalJSON() ([]byte, error)
type BuildProvenance ¶
type BuildProvenance struct { // BuildOptions: Special options applied to this build. This is a // catch-all field where // build providers can enter any desired additional details. BuildOptions map[string]string `json:"buildOptions,omitempty"` // BuilderVersion: Version string of the builder at the time this build // was executed. BuilderVersion string `json:"builderVersion,omitempty"` // BuiltArtifacts: Output of the build. BuiltArtifacts []*Artifact `json:"builtArtifacts,omitempty"` // Commands: Commands requested by the build. Commands []*Command `json:"commands,omitempty"` // CreateTime: Time at which the build was created. CreateTime string `json:"createTime,omitempty"` // Creator: E-mail address of the user who initiated this build. Note // that this was the // user's e-mail address at the time the build was initiated; this // address may // not represent the same end-user for all time. Creator string `json:"creator,omitempty"` // FinishTime: Time at whihc execution of the build was finished. FinishTime string `json:"finishTime,omitempty"` // Id: Unique identifier of the build. Id string `json:"id,omitempty"` // LogsBucket: Google Cloud Storage bucket where logs were written. LogsBucket string `json:"logsBucket,omitempty"` // ProjectId: ID of the project. ProjectId string `json:"projectId,omitempty"` // SourceProvenance: Details of the Source input to the build. SourceProvenance *Source `json:"sourceProvenance,omitempty"` // StartTime: Time at which execution of the build was started. StartTime string `json:"startTime,omitempty"` // TriggerId: Trigger identifier if the build was triggered // automatically; empty if not. TriggerId string `json:"triggerId,omitempty"` // ForceSendFields is a list of field names (e.g. "BuildOptions") 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:"-"` }
BuildProvenance: Provenance of a build. Contains all information needed to verify the full details about the build from source to completion.
func (*BuildProvenance) MarshalJSON ¶
func (s *BuildProvenance) MarshalJSON() ([]byte, error)
type BuildSignature ¶
type BuildSignature struct { // PublicKey: Public key of the builder which can be used to verify that // related // Findings are valid and unchanged. To verify the signature, place // the // contents of this field into a file (public.pem). The signature field // is // base64-decoded into its binary representation in signature.bin, and // the // provenance bytes from BuildDetails are base64-decoded into a // binary // representation in signed.bin. Openssl can then verify the // signature: // 'openssl sha256 -verify public.pem -signature signature.bin // signed.bin' PublicKey string `json:"publicKey,omitempty"` // Signature: Signature of the related BuildProvenance, encoded in a // base64 string. Signature string `json:"signature,omitempty"` // ForceSendFields is a list of field names (e.g. "PublicKey") 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:"-"` }
BuildSignature: Message encapsulating signature of the verified build
func (*BuildSignature) MarshalJSON ¶
func (s *BuildSignature) MarshalJSON() ([]byte, error)
type BuildType ¶
type BuildType struct { // BuilderVersion: Version of the builder which produced this Note. BuilderVersion string `json:"builderVersion,omitempty"` // Signature: Signature of the build in Occurrences pointing to the Note // containing this // BuilderDetails. Signature *BuildSignature `json:"signature,omitempty"` // ForceSendFields is a list of field names (e.g. "BuilderVersion") 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:"-"` }
BuildType: Note holding the version of the provider's builder and the signature of the provenance message in linked BuildDetails.
func (*BuildType) MarshalJSON ¶
type CloudAuditOptions ¶
type CloudAuditOptions struct { }
CloudAuditOptions: Write a Cloud Audit log
type CloudRepoSourceContext ¶
type CloudRepoSourceContext struct { // AliasContext: An alias, which may be a branch or tag. AliasContext *AliasContext `json:"aliasContext,omitempty"` // AliasName: The name of an alias (branch, tag, etc.). AliasName string `json:"aliasName,omitempty"` // RepoId: The ID of the repo. RepoId *RepoId `json:"repoId,omitempty"` // RevisionId: A revision ID. RevisionId string `json:"revisionId,omitempty"` // ForceSendFields is a list of field names (e.g. "AliasContext") 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:"-"` }
CloudRepoSourceContext: A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).
func (*CloudRepoSourceContext) MarshalJSON ¶
func (s *CloudRepoSourceContext) MarshalJSON() ([]byte, error)
type CloudWorkspaceId ¶
type CloudWorkspaceId struct { // Name: The unique name of the workspace within the repo. This is the // name // chosen by the client in the Source API's CreateWorkspace method. Name string `json:"name,omitempty"` // RepoId: The ID of the repo containing the workspace. RepoId *RepoId `json:"repoId,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:"-"` }
CloudWorkspaceId: A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud workspace is a place associated with a repo where modified files can be stored before they are committed.
func (*CloudWorkspaceId) MarshalJSON ¶
func (s *CloudWorkspaceId) MarshalJSON() ([]byte, error)
type CloudWorkspaceSourceContext ¶
type CloudWorkspaceSourceContext struct { // SnapshotId: The ID of the snapshot. // An empty snapshot_id refers to the most recent snapshot. SnapshotId string `json:"snapshotId,omitempty"` // WorkspaceId: The ID of the workspace. WorkspaceId *CloudWorkspaceId `json:"workspaceId,omitempty"` // ForceSendFields is a list of field names (e.g. "SnapshotId") 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:"-"` }
CloudWorkspaceSourceContext: A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
func (*CloudWorkspaceSourceContext) MarshalJSON ¶
func (s *CloudWorkspaceSourceContext) MarshalJSON() ([]byte, error)
type Command ¶
type Command struct { // Args: Command-line arguments used when executing this Command. Args []string `json:"args,omitempty"` // Dir: Working directory (relative to project source root) used when // running // this Command. Dir string `json:"dir,omitempty"` // Env: Environment variables set before running this Command. Env []string `json:"env,omitempty"` // Id: Optional unique identifier for this Command, used in wait_for to // reference // this Command as a dependency. Id string `json:"id,omitempty"` // Name: Name of the command, as presented on the command line, or if // the command is // packaged as a Docker container, as presented to `docker pull`. Name string `json:"name,omitempty"` // WaitFor: The ID(s) of the Command(s) that this Command depends on. WaitFor []string `json:"waitFor,omitempty"` // ForceSendFields is a list of field names (e.g. "Args") 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:"-"` }
Command: Command describes a step performed as part of the build pipeline.
func (*Command) MarshalJSON ¶
type Condition ¶
type Condition struct { // Iam: Trusted attributes supplied by the IAM system. // // Possible values: // "NO_ATTR" - Default non-attribute. // "AUTHORITY" - Either principal or (if present) authority selector. // "ATTRIBUTION" - The principal (even if an authority selector is // present), which // must only be used for attribution, not authorization. // "APPROVER" - An approver (distinct from the requester) that has // authorized this // request. // When used with IN, the condition indicates that one of the // approvers // associated with the request matches the specified principal, or is // a // member of the specified group. Approvers can only grant // additional // access, and are thus only used in a strictly positive context // (e.g. ALLOW/IN or DENY/NOT_IN). // See: go/rpc-security-policy-dynamicauth. Iam string `json:"iam,omitempty"` // Op: An operator to apply the subject with. // // Possible values: // "NO_OP" - Default no-op. // "EQUALS" - DEPRECATED. Use IN instead. // "NOT_EQUALS" - DEPRECATED. Use NOT_IN instead. // "IN" - Set-inclusion check. // "NOT_IN" - Set-exclusion check. // "DISCHARGED" - Subject is discharged Op string `json:"op,omitempty"` // Svc: Trusted attributes discharged by the service. Svc string `json:"svc,omitempty"` // Sys: Trusted attributes supplied by any service that owns resources // and uses // the IAM system for access control. // // Possible values: // "NO_ATTR" - Default non-attribute type // "REGION" - Region of the resource // "SERVICE" - Service name // "NAME" - Resource name // "IP" - IP address of the caller Sys string `json:"sys,omitempty"` // Value: DEPRECATED. Use 'values' instead. Value string `json:"value,omitempty"` // Values: The objects of the condition. This is mutually exclusive with // 'value'. Values []string `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "Iam") 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:"-"` }
Condition: A condition to be met.
func (*Condition) MarshalJSON ¶
type CounterOptions ¶
type CounterOptions struct { // Field: The field value to attribute. Field string `json:"field,omitempty"` // Metric: The metric to update. Metric string `json:"metric,omitempty"` // ForceSendFields is a list of field names (e.g. "Field") 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:"-"` }
CounterOptions: Options for counters
func (*CounterOptions) MarshalJSON ¶
func (s *CounterOptions) MarshalJSON() ([]byte, error)
type DataAccessOptions ¶
type DataAccessOptions struct { }
DataAccessOptions: Write a Data Access (Gin) log
type Derived ¶
type Derived struct { // BaseResourceUrl: This contains the base image url for the derived // image Occurrence // @OutputOnly BaseResourceUrl string `json:"baseResourceUrl,omitempty"` // Distance: The number of layers by which this image differs from // the associated image basis. // @OutputOnly Distance int64 `json:"distance,omitempty"` // Fingerprint: The fingerprint of the derived image Fingerprint *Fingerprint `json:"fingerprint,omitempty"` // LayerInfo: This contains layer-specific metadata, if populated it // has length “distance” and is ordered with [distance] being // the // layer immediately following the base image and [1] // being the final layer. LayerInfo []*Layer `json:"layerInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseResourceUrl") 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:"-"` }
Derived: Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM <DockerImage.Basis in attached Note>.
func (*Derived) MarshalJSON ¶
type Detail ¶
type Detail struct { // CpeUri: The cpe_uri in [cpe format] // (https://cpe.mitre.org/specification/) in // which the vulnerability manifests. Examples include distro or // storage // location for vulnerable jar. // This field can be used as a filter in list requests. CpeUri string `json:"cpeUri,omitempty"` // Description: A vendor-specific description of this note. Description string `json:"description,omitempty"` // FixedLocation: The fix for this specific package version. FixedLocation *VulnerabilityLocation `json:"fixedLocation,omitempty"` // MaxAffectedVersion: The max version of the package in which the // vulnerability exists. // This field can be used as a filter in list requests. MaxAffectedVersion *Version `json:"maxAffectedVersion,omitempty"` // MinAffectedVersion: The min version of the package in which the // vulnerability exists. MinAffectedVersion *Version `json:"minAffectedVersion,omitempty"` // Package: The name of the package where the vulnerability was // found. // This field can be used as a filter in list requests. Package string `json:"package,omitempty"` // SeverityName: The severity (eg: distro assigned severity) for this // vulnerability. SeverityName string `json:"severityName,omitempty"` // ForceSendFields is a list of field names (e.g. "CpeUri") 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:"-"` }
Detail: Identifies all occurences of this vulnerability in the package for a specific distro/location For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
func (*Detail) MarshalJSON ¶
type Distribution ¶
type Distribution struct { // Architecture: The CPU architecture for which packages in this // distribution // channel were built // // Possible values: // "UNKNOWN" - Unknown architecture // "X86" - X86 architecture // "X64" - x64 architecture Architecture string `json:"architecture,omitempty"` // CpeUri: The cpe_uri in [cpe // format](https://cpe.mitre.org/specification/) // denoting the package manager version distributing a package. CpeUri string `json:"cpeUri,omitempty"` // Description: The distribution channel-specific description of this // package. Description string `json:"description,omitempty"` // LatestVersion: The latest available version of this package in // this distribution channel. LatestVersion *Version `json:"latestVersion,omitempty"` // Maintainer: A freeform string denoting the maintainer of this // package. Maintainer string `json:"maintainer,omitempty"` // Url: The distribution channel-specific homepage for this package. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "Architecture") 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:"-"` }
Distribution: This represents a particular channel of distribution for a given package. e.g. Debian's jessie-backports dpkg mirror
func (*Distribution) MarshalJSON ¶
func (s *Distribution) MarshalJSON() ([]byte, error)
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
service Foo { rpc Bar(google.protobuf.Empty) returns
(google.protobuf.Empty);
}
The JSON representation for `Empty` is empty JSON object `{}`.
type ExtendedSourceContext ¶
type ExtendedSourceContext struct { // Context: Any source context. Context *SourceContext `json:"context,omitempty"` // Labels: Labels with user defined metadata. Labels map[string]string `json:"labels,omitempty"` // ForceSendFields is a list of field names (e.g. "Context") 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:"-"` }
ExtendedSourceContext: An ExtendedSourceContext is a SourceContext combined with additional details describing the context.
func (*ExtendedSourceContext) MarshalJSON ¶
func (s *ExtendedSourceContext) MarshalJSON() ([]byte, error)
type FileHashes ¶
type FileHashes struct { // FileHash: Collection of file hashes. FileHash []*Hash `json:"fileHash,omitempty"` // ForceSendFields is a list of field names (e.g. "FileHash") 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:"-"` }
FileHashes: Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
func (*FileHashes) MarshalJSON ¶
func (s *FileHashes) MarshalJSON() ([]byte, error)
type Fingerprint ¶
type Fingerprint struct { // V1Name: The layer-id of the final layer in the Docker image’s // v1 // representation. // This field can be used as a filter in list requests. V1Name string `json:"v1Name,omitempty"` // V2Blob: The ordered list of v2 blobs that represent a given image. V2Blob []string `json:"v2Blob,omitempty"` // V2Name: The name of the image’s v2 blobs computed via: // [bottom] := v2_blobbottom := sha256(v2_blob[N] + “ ” + // v2_name[N+1]) // Only the name of the final blob is kept. // This field can be used as a filter in list requests. // @OutputOnly V2Name string `json:"v2Name,omitempty"` // ForceSendFields is a list of field names (e.g. "V1Name") 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:"-"` }
Fingerprint: A set of properties that uniquely identify a given Docker image.
func (*Fingerprint) MarshalJSON ¶
func (s *Fingerprint) MarshalJSON() ([]byte, error)
type GerritSourceContext ¶
type GerritSourceContext struct { // AliasContext: An alias, which may be a branch or tag. AliasContext *AliasContext `json:"aliasContext,omitempty"` // AliasName: The name of an alias (branch, tag, etc.). AliasName string `json:"aliasName,omitempty"` // GerritProject: The full project name within the host. Projects may be // nested, so // "project/subproject" is a valid project name. // The "repo name" is hostURI/project. GerritProject string `json:"gerritProject,omitempty"` // HostUri: The URI of a running Gerrit instance. HostUri string `json:"hostUri,omitempty"` // RevisionId: A revision (commit) ID. RevisionId string `json:"revisionId,omitempty"` // ForceSendFields is a list of field names (e.g. "AliasContext") 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:"-"` }
GerritSourceContext: A SourceContext referring to a Gerrit project.
func (*GerritSourceContext) MarshalJSON ¶
func (s *GerritSourceContext) MarshalJSON() ([]byte, error)
type GetIamPolicyRequest ¶
type GetIamPolicyRequest struct { }
GetIamPolicyRequest: Request message for `GetIamPolicy` method.
type GitSourceContext ¶
type GitSourceContext struct { // RevisionId: Git commit hash. // required. RevisionId string `json:"revisionId,omitempty"` // Url: Git repository URL. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "RevisionId") 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:"-"` }
GitSourceContext: A GitSourceContext denotes a particular revision in a third party Git repository (e.g. GitHub).
func (*GitSourceContext) MarshalJSON ¶
func (s *GitSourceContext) MarshalJSON() ([]byte, error)
type Hash ¶
type Hash struct { // Type: The type of hash that was performed. // // Possible values: // "NONE" - No hash requested. // "SHA256" - A sha256 hash. Type string `json:"type,omitempty"` // Value: The hash value. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Type") 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:"-"` }
Hash: Container message for hash values.
func (*Hash) MarshalJSON ¶
type Installation ¶
type Installation struct { // Location: All of the places within the filesystem versions of this // package // have been found. Location []*Location `json:"location,omitempty"` // Name: The name of the installed package. // @OutputOnly Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Location") 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:"-"` }
Installation: This represents how a particular software package may be installed on a system.
func (*Installation) MarshalJSON ¶
func (s *Installation) MarshalJSON() ([]byte, error)
type Layer ¶
type Layer struct { // Arguments: The recovered arguments to the Dockerfile directive. Arguments string `json:"arguments,omitempty"` // Directive: The recovered Dockerfile directive used to construct this // layer. // // Possible values: // "UNKNOWN_DIRECTIVE" - Default value for unsupported/missing // directive // "MAINTAINER" - // https://docs.docker.com/reference/builder/#maintainer // "RUN" - https://docs.docker.com/reference/builder/#run // "CMD" - https://docs.docker.com/reference/builder/#cmd // "LABEL" - https://docs.docker.com/reference/builder/#label // "EXPOSE" - https://docs.docker.com/reference/builder/#expose // "ENV" - https://docs.docker.com/reference/builder/#env // "ADD" - https://docs.docker.com/reference/builder/#add // "COPY" - https://docs.docker.com/reference/builder/#copy // "ENTRYPOINT" - // https://docs.docker.com/reference/builder/#entrypoint // "VOLUME" - https://docs.docker.com/reference/builder/#volume // "USER" - https://docs.docker.com/reference/builder/#user // "WORKDIR" - https://docs.docker.com/reference/builder/#workdir // "ARG" - https://docs.docker.com/reference/builder/#arg // "ONBUILD" - https://docs.docker.com/reference/builder/#onbuild // "STOPSIGNAL" - // https://docs.docker.com/reference/builder/#stopsignal // "HEALTHCHECK" - // https://docs.docker.com/reference/builder/#healthcheck // "SHELL" - https://docs.docker.com/reference/builder/#shell Directive string `json:"directive,omitempty"` // ForceSendFields is a list of field names (e.g. "Arguments") 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:"-"` }
Layer: Layer holds metadata specific to a layer of a Docker image.
func (*Layer) MarshalJSON ¶
type ListNoteOccurrencesResponse ¶
type ListNoteOccurrencesResponse struct { // NextPageToken: Token to receive the next page of notes. NextPageToken string `json:"nextPageToken,omitempty"` // Occurrences: The names of the Occurrences linked to the specified // Note for example: // "projects/{project_id}/occurrences/{occurrence_id}" Occurrences []string `json:"occurrences,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") 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:"-"` }
ListNoteOccurrencesResponse: Response including listed occurrences for a note.
func (*ListNoteOccurrencesResponse) MarshalJSON ¶
func (s *ListNoteOccurrencesResponse) MarshalJSON() ([]byte, error)
type ListNotesResponse ¶
type ListNotesResponse struct { // NextPageToken: The next pagination token in the List response. It // should be used as // page_token for the following request. An empty value means no more // result. NextPageToken string `json:"nextPageToken,omitempty"` // Notes: The occurrences requested Notes []*Note `json:"notes,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") 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:"-"` }
ListNotesResponse: Response including listed notes.
func (*ListNotesResponse) MarshalJSON ¶
func (s *ListNotesResponse) MarshalJSON() ([]byte, error)
type ListOccurrencesResponse ¶
type ListOccurrencesResponse struct { // NextPageToken: The next pagination token in the List response. It // should be used as // page_token for the following request. An empty value means no more // result. NextPageToken string `json:"nextPageToken,omitempty"` // Occurrences: The occurrences requested Occurrences []*Occurrence `json:"occurrences,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") 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:"-"` }
ListOccurrencesResponse: Response including listed occurrences.
func (*ListOccurrencesResponse) MarshalJSON ¶
func (s *ListOccurrencesResponse) MarshalJSON() ([]byte, error)
type Location ¶
type Location struct { // CpeUri: The cpe_uri in [cpe // format](https://cpe.mitre.org/specification/) // denoting the package manager version distributing a package. CpeUri string `json:"cpeUri,omitempty"` // Path: The path from which we gathered that this package/version is // installed. Path string `json:"path,omitempty"` // Version: The version installed at this location. Version *Version `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CpeUri") 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:"-"` }
Location: An occurrence of a particular package installation found within a system's filesystem. e.g. glibc was found in /var/lib/dpkg/status
func (*Location) MarshalJSON ¶
type LogConfig ¶
type LogConfig struct { // CloudAudit: Cloud audit options. CloudAudit *CloudAuditOptions `json:"cloudAudit,omitempty"` // Counter: Counter options. Counter *CounterOptions `json:"counter,omitempty"` // DataAccess: Data access options. DataAccess *DataAccessOptions `json:"dataAccess,omitempty"` // ForceSendFields is a list of field names (e.g. "CloudAudit") 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:"-"` }
LogConfig: Specifies what kind of log the caller must write Increment a streamz counter with the specified metric and field names.
Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
Field names correspond to IAM request parameters and field values are their respective values.
At present the only supported field names are
- "iam_principal", corresponding to IAMContext.principal;
- "" (empty string), resulting in one aggretated counter with no
field.
Examples:
counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of
IAMContext.principal]}
At this time we do not support: * multiple field names (though this may be supported in the future) * decrementing the counter * incrementing it by anything other than 1
func (*LogConfig) MarshalJSON ¶
type Note ¶
type Note struct { // BaseImage: A note describing a base image. BaseImage *Basis `json:"baseImage,omitempty"` // BuildType: Build provenance type for a verifiable build. BuildType *BuildType `json:"buildType,omitempty"` // CreateTime: The time this note was created. // This field can be used as a filter in list requests. // @OutputOnly CreateTime string `json:"createTime,omitempty"` // ExpirationTime: Time of expiration for this Note, null if Note // currently does not // expire. ExpirationTime string `json:"expirationTime,omitempty"` // Kind: This explicitly denotes which kind of note is specified. // This field can be used as a filter in list requests. // @OutputOnly // // Possible values: // "UNKNOWN" - Unknown // "PACKAGE_VULNERABILITY" - The note and occurrence represent a // package vulnerability. // "BUILD_DETAILS" - The note and occurrence assert build provenance. // "IMAGE_BASIS" - This represents an image basis relationship. // "PACKAGE_MANAGER" - This represents a package installed via a // package manager. Kind string `json:"kind,omitempty"` // LongDescription: A detailed description of this note LongDescription string `json:"longDescription,omitempty"` // Name: The name of the note in the // form // "providers/{provider_id}/notes/{note_id}" Name string `json:"name,omitempty"` // Package: A note describing a package hosted by various package // managers. Package *Package `json:"package,omitempty"` // RelatedUrl: Urls associated with this note RelatedUrl []*RelatedUrl `json:"relatedUrl,omitempty"` // ShortDescription: A one sentence description of this note ShortDescription string `json:"shortDescription,omitempty"` // UpdateTime: The time this note was last updated. // This field can be used as a filter in list requests. // @OutputOnly UpdateTime string `json:"updateTime,omitempty"` // VulnerabilityType: A package vulnerability type of note. VulnerabilityType *VulnerabilityType `json:"vulnerabilityType,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "BaseImage") 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:"-"` }
Note: Note provides a detailed description of a note using information from the provider of the note.
func (*Note) MarshalJSON ¶
type Occurrence ¶
type Occurrence struct { // BuildDetails: Build details for a verifiable build. BuildDetails *BuildDetails `json:"buildDetails,omitempty"` // CreateTime: The time this occurrence was created. // @OutputOnly CreateTime string `json:"createTime,omitempty"` // DerivedImage: Describes how this resource derives from the basis // in the associated note. DerivedImage *Derived `json:"derivedImage,omitempty"` // Installation: Describes the installation of a package on the linked // resource. Installation *Installation `json:"installation,omitempty"` // Kind: This explicitly denotes which of the occurrence details is // specified. // This field can be used as a filter in list requests. // @OutputOnly // // Possible values: // "UNKNOWN" - Unknown // "PACKAGE_VULNERABILITY" - The note and occurrence represent a // package vulnerability. // "BUILD_DETAILS" - The note and occurrence assert build provenance. // "IMAGE_BASIS" - This represents an image basis relationship. // "PACKAGE_MANAGER" - This represents a package installed via a // package manager. Kind string `json:"kind,omitempty"` // Name: The name of the occurrence in the // form // "projects/{project_id}/occurrences/{occurrence_id}" // @OutputOnly Name string `json:"name,omitempty"` // NoteName: An analysis note associated with this image, in the // form // "providers/{provider_id}/notes/{note_id}" // This field can be used as a filter in list requests. NoteName string `json:"noteName,omitempty"` // Remediation: A description of actions that can be taken to remedy the // note Remediation string `json:"remediation,omitempty"` // ResourceUrl: The unique url of the image or container for which the // occurrence applies. // Example: https://gcr.io/project/image@sha256:foo // This field can be used as a filter in list requests. ResourceUrl string `json:"resourceUrl,omitempty"` // UpdateTime: The time this occurrence was last updated. // @OutputOnly UpdateTime string `json:"updateTime,omitempty"` // VulnerabilityDetails: Details of a security vulnerability note. VulnerabilityDetails *VulnerabilityDetails `json:"vulnerabilityDetails,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "BuildDetails") 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:"-"` }
Occurrence: Occurrence includes information about analysis occurrences for an image. “
func (*Occurrence) MarshalJSON ¶
func (s *Occurrence) MarshalJSON() ([]byte, error)
type Package ¶
type Package struct { // Distribution: The various channels by which a package is distributed. Distribution []*Distribution `json:"distribution,omitempty"` // Name: The name of the package. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Distribution") 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:"-"` }
Package: This represents a particular package that is distributed over various channels. e.g. glibc (aka libc6) is distributed by many, at various versions.
func (*Package) MarshalJSON ¶
type PackageIssue ¶
type PackageIssue struct { // AffectedLocation: The location of the vulnerability. AffectedLocation *VulnerabilityLocation `json:"affectedLocation,omitempty"` // FixedLocation: The location of the available fix for vulnerability. FixedLocation *VulnerabilityLocation `json:"fixedLocation,omitempty"` // ForceSendFields is a list of field names (e.g. "AffectedLocation") 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:"-"` }
PackageIssue: This message wraps a location affected by a vulnerability and its associated fix (if one is available).
func (*PackageIssue) MarshalJSON ¶
func (s *PackageIssue) MarshalJSON() ([]byte, error)
type Policy ¶
type Policy struct { // AuditConfigs: Specifies cloud audit logging configuration for this // policy. AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` // Bindings: Associates a list of `members` to a `role`. // Multiple `bindings` must not be specified for the same // `role`. // `bindings` with no members will result in an error. Bindings []*Binding `json:"bindings,omitempty"` // Etag: `etag` is used for optimistic concurrency control as a way to // help // prevent simultaneous updates of a policy from overwriting each // other. // It is strongly suggested that systems make use of the `etag` in // the // read-modify-write cycle to perform policy updates in order to avoid // race // conditions: An `etag` is returned in the response to `getIamPolicy`, // and // systems are expected to put that etag in the request to // `setIamPolicy` to // ensure that their change will be applied to the same version of the // policy. // // If no `etag` is provided in the call to `setIamPolicy`, then the // existing // policy is overwritten blindly. Etag string `json:"etag,omitempty"` IamOwned bool `json:"iamOwned,omitempty"` // Rules: If more than one rule is specified, the rules are applied in // the following // manner: // - All matching LOG rules are always applied. // - If any DENY/DENY_WITH_LOG rule matches, permission is denied. // Logging will be applied if one or more matching rule requires // logging. // - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is // granted. // Logging will be applied if one or more matching rule requires // logging. // - Otherwise, if no rule applies, permission is denied. Rules []*Rule `json:"rules,omitempty"` // Version: Version of the `Policy`. The default version is 0. Version int64 `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. "AuditConfigs") 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:"-"` }
Policy: Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
A `Policy` consists of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.
**Example**
{ "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com",
"serviceAccount:my-other-app@appspot.gserviceaccount.com",
] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam).
func (*Policy) MarshalJSON ¶
type ProjectRepoId ¶
type ProjectRepoId struct { // ProjectId: The ID of the project. ProjectId string `json:"projectId,omitempty"` // RepoName: The name of the repo. Leave empty for the default repo. RepoName string `json:"repoName,omitempty"` // ForceSendFields is a list of field names (e.g. "ProjectId") 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:"-"` }
ProjectRepoId: Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31) and a repo name within that project.
func (*ProjectRepoId) MarshalJSON ¶
func (s *ProjectRepoId) MarshalJSON() ([]byte, error)
type ProjectsNotesCreateCall ¶
type ProjectsNotesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsNotesCreateCall) Context ¶
func (c *ProjectsNotesCreateCall) Context(ctx context.Context) *ProjectsNotesCreateCall
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 (*ProjectsNotesCreateCall) Do ¶
func (c *ProjectsNotesCreateCall) Do(opts ...googleapi.CallOption) (*Note, error)
Do executes the "containeranalysis.projects.notes.create" call. Exactly one of *Note or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Note.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 (*ProjectsNotesCreateCall) Fields ¶
func (c *ProjectsNotesCreateCall) Fields(s ...googleapi.Field) *ProjectsNotesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsNotesCreateCall) Name ¶
func (c *ProjectsNotesCreateCall) Name(name string) *ProjectsNotesCreateCall
Name sets the optional parameter "name": The name of the project. Should be of the form "providers/{provider_id}". @deprecated
func (*ProjectsNotesCreateCall) NoteId ¶
func (c *ProjectsNotesCreateCall) NoteId(noteId string) *ProjectsNotesCreateCall
NoteId sets the optional parameter "noteId": The ID to use for this note.
type ProjectsNotesDeleteCall ¶
type ProjectsNotesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsNotesDeleteCall) Context ¶
func (c *ProjectsNotesDeleteCall) Context(ctx context.Context) *ProjectsNotesDeleteCall
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 (*ProjectsNotesDeleteCall) Do ¶
func (c *ProjectsNotesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "containeranalysis.projects.notes.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProjectsNotesDeleteCall) Fields ¶
func (c *ProjectsNotesDeleteCall) Fields(s ...googleapi.Field) *ProjectsNotesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsNotesGetCall ¶
type ProjectsNotesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsNotesGetCall) Context ¶
func (c *ProjectsNotesGetCall) Context(ctx context.Context) *ProjectsNotesGetCall
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 (*ProjectsNotesGetCall) Do ¶
func (c *ProjectsNotesGetCall) Do(opts ...googleapi.CallOption) (*Note, error)
Do executes the "containeranalysis.projects.notes.get" call. Exactly one of *Note or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Note.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 (*ProjectsNotesGetCall) Fields ¶
func (c *ProjectsNotesGetCall) Fields(s ...googleapi.Field) *ProjectsNotesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsNotesGetCall) IfNoneMatch ¶
func (c *ProjectsNotesGetCall) IfNoneMatch(entityTag string) *ProjectsNotesGetCall
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 ProjectsNotesGetIamPolicyCall ¶
type ProjectsNotesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsNotesGetIamPolicyCall) Context ¶
func (c *ProjectsNotesGetIamPolicyCall) Context(ctx context.Context) *ProjectsNotesGetIamPolicyCall
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 (*ProjectsNotesGetIamPolicyCall) Do ¶
func (c *ProjectsNotesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "containeranalysis.projects.notes.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsNotesGetIamPolicyCall) Fields ¶
func (c *ProjectsNotesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsNotesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsNotesListCall ¶
type ProjectsNotesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsNotesListCall) Context ¶
func (c *ProjectsNotesListCall) Context(ctx context.Context) *ProjectsNotesListCall
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 (*ProjectsNotesListCall) Do ¶
func (c *ProjectsNotesListCall) Do(opts ...googleapi.CallOption) (*ListNotesResponse, error)
Do executes the "containeranalysis.projects.notes.list" call. Exactly one of *ListNotesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListNotesResponse.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 (*ProjectsNotesListCall) Fields ¶
func (c *ProjectsNotesListCall) Fields(s ...googleapi.Field) *ProjectsNotesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsNotesListCall) Filter ¶
func (c *ProjectsNotesListCall) Filter(filter string) *ProjectsNotesListCall
Filter sets the optional parameter "filter": The filter expression.
func (*ProjectsNotesListCall) IfNoneMatch ¶
func (c *ProjectsNotesListCall) IfNoneMatch(entityTag string) *ProjectsNotesListCall
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 (*ProjectsNotesListCall) Name ¶
func (c *ProjectsNotesListCall) Name(name string) *ProjectsNotesListCall
Name sets the optional parameter "name": The name field will contain the projectId for example: "providers/{provider_id} @deprecated
func (*ProjectsNotesListCall) PageSize ¶
func (c *ProjectsNotesListCall) PageSize(pageSize int64) *ProjectsNotesListCall
PageSize sets the optional parameter "pageSize": Number of notes to return in the list.
func (*ProjectsNotesListCall) PageToken ¶
func (c *ProjectsNotesListCall) PageToken(pageToken string) *ProjectsNotesListCall
PageToken sets the optional parameter "pageToken": Token to provide to skip to a particular spot in the list.
func (*ProjectsNotesListCall) Pages ¶
func (c *ProjectsNotesListCall) Pages(ctx context.Context, f func(*ListNotesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsNotesOccurrencesListCall ¶
type ProjectsNotesOccurrencesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsNotesOccurrencesListCall) Context ¶
func (c *ProjectsNotesOccurrencesListCall) Context(ctx context.Context) *ProjectsNotesOccurrencesListCall
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 (*ProjectsNotesOccurrencesListCall) Do ¶
func (c *ProjectsNotesOccurrencesListCall) Do(opts ...googleapi.CallOption) (*ListNoteOccurrencesResponse, error)
Do executes the "containeranalysis.projects.notes.occurrences.list" call. Exactly one of *ListNoteOccurrencesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListNoteOccurrencesResponse.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 (*ProjectsNotesOccurrencesListCall) Fields ¶
func (c *ProjectsNotesOccurrencesListCall) Fields(s ...googleapi.Field) *ProjectsNotesOccurrencesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsNotesOccurrencesListCall) Filter ¶
func (c *ProjectsNotesOccurrencesListCall) Filter(filter string) *ProjectsNotesOccurrencesListCall
Filter sets the optional parameter "filter": The filter expression.
func (*ProjectsNotesOccurrencesListCall) IfNoneMatch ¶
func (c *ProjectsNotesOccurrencesListCall) IfNoneMatch(entityTag string) *ProjectsNotesOccurrencesListCall
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 (*ProjectsNotesOccurrencesListCall) PageSize ¶
func (c *ProjectsNotesOccurrencesListCall) PageSize(pageSize int64) *ProjectsNotesOccurrencesListCall
PageSize sets the optional parameter "pageSize": Number of notes to return in the list.
func (*ProjectsNotesOccurrencesListCall) PageToken ¶
func (c *ProjectsNotesOccurrencesListCall) PageToken(pageToken string) *ProjectsNotesOccurrencesListCall
PageToken sets the optional parameter "pageToken": Token to provide to skip to a particular spot in the list.
func (*ProjectsNotesOccurrencesListCall) Pages ¶
func (c *ProjectsNotesOccurrencesListCall) Pages(ctx context.Context, f func(*ListNoteOccurrencesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsNotesOccurrencesService ¶
type ProjectsNotesOccurrencesService struct {
// contains filtered or unexported fields
}
func NewProjectsNotesOccurrencesService ¶
func NewProjectsNotesOccurrencesService(s *Service) *ProjectsNotesOccurrencesService
func (*ProjectsNotesOccurrencesService) List ¶
func (r *ProjectsNotesOccurrencesService) List(name string) *ProjectsNotesOccurrencesListCall
List: Lists the names of Occurrences linked to a particular Note.
type ProjectsNotesService ¶
type ProjectsNotesService struct { Occurrences *ProjectsNotesOccurrencesService // contains filtered or unexported fields }
func NewProjectsNotesService ¶
func NewProjectsNotesService(s *Service) *ProjectsNotesService
func (*ProjectsNotesService) Create ¶
func (r *ProjectsNotesService) Create(parent string, note *Note) *ProjectsNotesCreateCall
Create: Creates a new note.
func (*ProjectsNotesService) Delete ¶
func (r *ProjectsNotesService) Delete(name string) *ProjectsNotesDeleteCall
Delete: Deletes the given note from the system.
func (*ProjectsNotesService) Get ¶
func (r *ProjectsNotesService) Get(name string) *ProjectsNotesGetCall
Get: Returns the requested occurrence
func (*ProjectsNotesService) GetIamPolicy ¶
func (r *ProjectsNotesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsNotesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a note or occurrence resource. Requires "containeranalysis.notes.setIamPolicy" or "containeranalysis.occurrences.setIamPolicy" permission if the resource is a note or occurrence, respectively. Attempting this RPC on a resource without the needed permission will note in a PERMISSION_DENIED error. Attempting this RPC on a non-existent resource will note in a NOT_FOUND error if the user has list permission on the project, or a PERMISSION_DENIED error otherwise.
func (*ProjectsNotesService) List ¶
func (r *ProjectsNotesService) List(parent string) *ProjectsNotesListCall
List: Lists all notes for a given project. Filters can be used on this field to list all notes with a specific parameter.
func (*ProjectsNotesService) SetIamPolicy ¶
func (r *ProjectsNotesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsNotesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified note or occurrence resource. Requires "containeranalysis.notes.setIamPolicy" or "containeranalysis.occurrences.setIamPolicy" permission if the resource is a note or occurrence, respectively. Attempting this RPC on a resource without the needed permission will note in a PERMISSION_DENIED error. Attempting this RPC on a non-existent resource will note in a NOT_FOUND error if the user has list permission on the project, or a PERMISSION_DENIED error otherwise.
func (*ProjectsNotesService) TestIamPermissions ¶
func (r *ProjectsNotesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsNotesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (e.g., "storage.objects.list" on the containing bucket for testing permission of an object). Attempting this RPC on a non-existent resource will note in a NOT_FOUND error if the user has list permission on the project, or a PERMISSION_DENIED error otherwise.
func (*ProjectsNotesService) Update ¶
func (r *ProjectsNotesService) Update(name string, note *Note) *ProjectsNotesUpdateCall
Update: Updates an existing note.
type ProjectsNotesSetIamPolicyCall ¶
type ProjectsNotesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsNotesSetIamPolicyCall) Context ¶
func (c *ProjectsNotesSetIamPolicyCall) Context(ctx context.Context) *ProjectsNotesSetIamPolicyCall
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 (*ProjectsNotesSetIamPolicyCall) Do ¶
func (c *ProjectsNotesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "containeranalysis.projects.notes.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsNotesSetIamPolicyCall) Fields ¶
func (c *ProjectsNotesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsNotesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsNotesTestIamPermissionsCall ¶
type ProjectsNotesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsNotesTestIamPermissionsCall) Context ¶
func (c *ProjectsNotesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsNotesTestIamPermissionsCall
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 (*ProjectsNotesTestIamPermissionsCall) Do ¶
func (c *ProjectsNotesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "containeranalysis.projects.notes.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*ProjectsNotesTestIamPermissionsCall) Fields ¶
func (c *ProjectsNotesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsNotesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsNotesUpdateCall ¶
type ProjectsNotesUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsNotesUpdateCall) Context ¶
func (c *ProjectsNotesUpdateCall) Context(ctx context.Context) *ProjectsNotesUpdateCall
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 (*ProjectsNotesUpdateCall) Do ¶
func (c *ProjectsNotesUpdateCall) Do(opts ...googleapi.CallOption) (*Note, error)
Do executes the "containeranalysis.projects.notes.update" call. Exactly one of *Note or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Note.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 (*ProjectsNotesUpdateCall) Fields ¶
func (c *ProjectsNotesUpdateCall) Fields(s ...googleapi.Field) *ProjectsNotesUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsOccurrencesCreateCall ¶
type ProjectsOccurrencesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsOccurrencesCreateCall) Context ¶
func (c *ProjectsOccurrencesCreateCall) Context(ctx context.Context) *ProjectsOccurrencesCreateCall
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 (*ProjectsOccurrencesCreateCall) Do ¶
func (c *ProjectsOccurrencesCreateCall) Do(opts ...googleapi.CallOption) (*Occurrence, error)
Do executes the "containeranalysis.projects.occurrences.create" call. Exactly one of *Occurrence or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Occurrence.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 (*ProjectsOccurrencesCreateCall) Fields ¶
func (c *ProjectsOccurrencesCreateCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsOccurrencesCreateCall) Name ¶
func (c *ProjectsOccurrencesCreateCall) Name(name string) *ProjectsOccurrencesCreateCall
Name sets the optional parameter "name": The name of the project. Should be of the form "projects/{project_id}". @deprecated
type ProjectsOccurrencesDeleteCall ¶
type ProjectsOccurrencesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsOccurrencesDeleteCall) Context ¶
func (c *ProjectsOccurrencesDeleteCall) Context(ctx context.Context) *ProjectsOccurrencesDeleteCall
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 (*ProjectsOccurrencesDeleteCall) Do ¶
func (c *ProjectsOccurrencesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "containeranalysis.projects.occurrences.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProjectsOccurrencesDeleteCall) Fields ¶
func (c *ProjectsOccurrencesDeleteCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsOccurrencesGetCall ¶
type ProjectsOccurrencesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsOccurrencesGetCall) Context ¶
func (c *ProjectsOccurrencesGetCall) Context(ctx context.Context) *ProjectsOccurrencesGetCall
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 (*ProjectsOccurrencesGetCall) Do ¶
func (c *ProjectsOccurrencesGetCall) Do(opts ...googleapi.CallOption) (*Occurrence, error)
Do executes the "containeranalysis.projects.occurrences.get" call. Exactly one of *Occurrence or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Occurrence.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 (*ProjectsOccurrencesGetCall) Fields ¶
func (c *ProjectsOccurrencesGetCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsOccurrencesGetCall) IfNoneMatch ¶
func (c *ProjectsOccurrencesGetCall) IfNoneMatch(entityTag string) *ProjectsOccurrencesGetCall
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 ProjectsOccurrencesGetIamPolicyCall ¶
type ProjectsOccurrencesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsOccurrencesGetIamPolicyCall) Context ¶
func (c *ProjectsOccurrencesGetIamPolicyCall) Context(ctx context.Context) *ProjectsOccurrencesGetIamPolicyCall
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 (*ProjectsOccurrencesGetIamPolicyCall) Do ¶
func (c *ProjectsOccurrencesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "containeranalysis.projects.occurrences.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsOccurrencesGetIamPolicyCall) Fields ¶
func (c *ProjectsOccurrencesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsOccurrencesGetNotesCall ¶
type ProjectsOccurrencesGetNotesCall struct {
// contains filtered or unexported fields
}
func (*ProjectsOccurrencesGetNotesCall) Context ¶
func (c *ProjectsOccurrencesGetNotesCall) Context(ctx context.Context) *ProjectsOccurrencesGetNotesCall
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 (*ProjectsOccurrencesGetNotesCall) Do ¶
func (c *ProjectsOccurrencesGetNotesCall) Do(opts ...googleapi.CallOption) (*Note, error)
Do executes the "containeranalysis.projects.occurrences.getNotes" call. Exactly one of *Note or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Note.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 (*ProjectsOccurrencesGetNotesCall) Fields ¶
func (c *ProjectsOccurrencesGetNotesCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesGetNotesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsOccurrencesGetNotesCall) IfNoneMatch ¶
func (c *ProjectsOccurrencesGetNotesCall) IfNoneMatch(entityTag string) *ProjectsOccurrencesGetNotesCall
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 ProjectsOccurrencesListCall ¶
type ProjectsOccurrencesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsOccurrencesListCall) Context ¶
func (c *ProjectsOccurrencesListCall) Context(ctx context.Context) *ProjectsOccurrencesListCall
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 (*ProjectsOccurrencesListCall) Do ¶
func (c *ProjectsOccurrencesListCall) Do(opts ...googleapi.CallOption) (*ListOccurrencesResponse, error)
Do executes the "containeranalysis.projects.occurrences.list" call. Exactly one of *ListOccurrencesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListOccurrencesResponse.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 (*ProjectsOccurrencesListCall) Fields ¶
func (c *ProjectsOccurrencesListCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsOccurrencesListCall) Filter ¶
func (c *ProjectsOccurrencesListCall) Filter(filter string) *ProjectsOccurrencesListCall
Filter sets the optional parameter "filter": The filter expression.
func (*ProjectsOccurrencesListCall) IfNoneMatch ¶
func (c *ProjectsOccurrencesListCall) IfNoneMatch(entityTag string) *ProjectsOccurrencesListCall
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 (*ProjectsOccurrencesListCall) Name ¶
func (c *ProjectsOccurrencesListCall) Name(name string) *ProjectsOccurrencesListCall
Name sets the optional parameter "name": The name field will contain the projectId for example: "projects/{project_id} @deprecated
func (*ProjectsOccurrencesListCall) PageSize ¶
func (c *ProjectsOccurrencesListCall) PageSize(pageSize int64) *ProjectsOccurrencesListCall
PageSize sets the optional parameter "pageSize": Number of notes to return in the list.
func (*ProjectsOccurrencesListCall) PageToken ¶
func (c *ProjectsOccurrencesListCall) PageToken(pageToken string) *ProjectsOccurrencesListCall
PageToken sets the optional parameter "pageToken": Token to provide to skip to a particular spot in the list.
func (*ProjectsOccurrencesListCall) Pages ¶
func (c *ProjectsOccurrencesListCall) Pages(ctx context.Context, f func(*ListOccurrencesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsOccurrencesService ¶
type ProjectsOccurrencesService struct {
// contains filtered or unexported fields
}
func NewProjectsOccurrencesService ¶
func NewProjectsOccurrencesService(s *Service) *ProjectsOccurrencesService
func (*ProjectsOccurrencesService) Create ¶
func (r *ProjectsOccurrencesService) Create(parent string, occurrence *Occurrence) *ProjectsOccurrencesCreateCall
Create: Creates a new occurrence.
func (*ProjectsOccurrencesService) Delete ¶
func (r *ProjectsOccurrencesService) Delete(name string) *ProjectsOccurrencesDeleteCall
Delete: Deletes the given occurrence from the system.
func (*ProjectsOccurrencesService) Get ¶
func (r *ProjectsOccurrencesService) Get(name string) *ProjectsOccurrencesGetCall
Get: Returns the requested occurrence
func (*ProjectsOccurrencesService) GetIamPolicy ¶
func (r *ProjectsOccurrencesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsOccurrencesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a note or occurrence resource. Requires "containeranalysis.notes.setIamPolicy" or "containeranalysis.occurrences.setIamPolicy" permission if the resource is a note or occurrence, respectively. Attempting this RPC on a resource without the needed permission will note in a PERMISSION_DENIED error. Attempting this RPC on a non-existent resource will note in a NOT_FOUND error if the user has list permission on the project, or a PERMISSION_DENIED error otherwise.
func (*ProjectsOccurrencesService) GetNotes ¶
func (r *ProjectsOccurrencesService) GetNotes(name string) *ProjectsOccurrencesGetNotesCall
GetNotes: Gets the note that this occurrence is attached to.
func (*ProjectsOccurrencesService) List ¶
func (r *ProjectsOccurrencesService) List(parent string) *ProjectsOccurrencesListCall
List: Lists all occurrences for a given project/Digest. Filters can be used on this field to list all digests containing a specific occurrence in a project.
func (*ProjectsOccurrencesService) SetIamPolicy ¶
func (r *ProjectsOccurrencesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsOccurrencesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified note or occurrence resource. Requires "containeranalysis.notes.setIamPolicy" or "containeranalysis.occurrences.setIamPolicy" permission if the resource is a note or occurrence, respectively. Attempting this RPC on a resource without the needed permission will note in a PERMISSION_DENIED error. Attempting this RPC on a non-existent resource will note in a NOT_FOUND error if the user has list permission on the project, or a PERMISSION_DENIED error otherwise.
func (*ProjectsOccurrencesService) TestIamPermissions ¶
func (r *ProjectsOccurrencesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsOccurrencesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (e.g., "storage.objects.list" on the containing bucket for testing permission of an object). Attempting this RPC on a non-existent resource will note in a NOT_FOUND error if the user has list permission on the project, or a PERMISSION_DENIED error otherwise.
func (*ProjectsOccurrencesService) Update ¶
func (r *ProjectsOccurrencesService) Update(name string, occurrence *Occurrence) *ProjectsOccurrencesUpdateCall
Update: Updates an existing occurrence.
type ProjectsOccurrencesSetIamPolicyCall ¶
type ProjectsOccurrencesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsOccurrencesSetIamPolicyCall) Context ¶
func (c *ProjectsOccurrencesSetIamPolicyCall) Context(ctx context.Context) *ProjectsOccurrencesSetIamPolicyCall
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 (*ProjectsOccurrencesSetIamPolicyCall) Do ¶
func (c *ProjectsOccurrencesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "containeranalysis.projects.occurrences.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsOccurrencesSetIamPolicyCall) Fields ¶
func (c *ProjectsOccurrencesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsOccurrencesTestIamPermissionsCall ¶
type ProjectsOccurrencesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsOccurrencesTestIamPermissionsCall) Context ¶
func (c *ProjectsOccurrencesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsOccurrencesTestIamPermissionsCall
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 (*ProjectsOccurrencesTestIamPermissionsCall) Do ¶
func (c *ProjectsOccurrencesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "containeranalysis.projects.occurrences.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*ProjectsOccurrencesTestIamPermissionsCall) Fields ¶
func (c *ProjectsOccurrencesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsOccurrencesUpdateCall ¶
type ProjectsOccurrencesUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsOccurrencesUpdateCall) Context ¶
func (c *ProjectsOccurrencesUpdateCall) Context(ctx context.Context) *ProjectsOccurrencesUpdateCall
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 (*ProjectsOccurrencesUpdateCall) Do ¶
func (c *ProjectsOccurrencesUpdateCall) Do(opts ...googleapi.CallOption) (*Occurrence, error)
Do executes the "containeranalysis.projects.occurrences.update" call. Exactly one of *Occurrence or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Occurrence.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 (*ProjectsOccurrencesUpdateCall) Fields ¶
func (c *ProjectsOccurrencesUpdateCall) Fields(s ...googleapi.Field) *ProjectsOccurrencesUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProjectsService ¶
type ProjectsService struct { Notes *ProjectsNotesService Occurrences *ProjectsOccurrencesService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type ProvidersNotesCreateCall ¶
type ProvidersNotesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProvidersNotesCreateCall) Context ¶
func (c *ProvidersNotesCreateCall) Context(ctx context.Context) *ProvidersNotesCreateCall
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 (*ProvidersNotesCreateCall) Do ¶
func (c *ProvidersNotesCreateCall) Do(opts ...googleapi.CallOption) (*Note, error)
Do executes the "containeranalysis.providers.notes.create" call. Exactly one of *Note or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Note.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 (*ProvidersNotesCreateCall) Fields ¶
func (c *ProvidersNotesCreateCall) Fields(s ...googleapi.Field) *ProvidersNotesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProvidersNotesCreateCall) NoteId ¶
func (c *ProvidersNotesCreateCall) NoteId(noteId string) *ProvidersNotesCreateCall
NoteId sets the optional parameter "noteId": The ID to use for this note.
func (*ProvidersNotesCreateCall) Parent ¶
func (c *ProvidersNotesCreateCall) Parent(parent string) *ProvidersNotesCreateCall
Parent sets the optional parameter "parent": The parent field will contain the projectId for example: "project/{project_id}
type ProvidersNotesDeleteCall ¶
type ProvidersNotesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProvidersNotesDeleteCall) Context ¶
func (c *ProvidersNotesDeleteCall) Context(ctx context.Context) *ProvidersNotesDeleteCall
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 (*ProvidersNotesDeleteCall) Do ¶
func (c *ProvidersNotesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "containeranalysis.providers.notes.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProvidersNotesDeleteCall) Fields ¶
func (c *ProvidersNotesDeleteCall) Fields(s ...googleapi.Field) *ProvidersNotesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProvidersNotesGetCall ¶
type ProvidersNotesGetCall struct {
// contains filtered or unexported fields
}
func (*ProvidersNotesGetCall) Context ¶
func (c *ProvidersNotesGetCall) Context(ctx context.Context) *ProvidersNotesGetCall
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 (*ProvidersNotesGetCall) Do ¶
func (c *ProvidersNotesGetCall) Do(opts ...googleapi.CallOption) (*Note, error)
Do executes the "containeranalysis.providers.notes.get" call. Exactly one of *Note or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Note.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 (*ProvidersNotesGetCall) Fields ¶
func (c *ProvidersNotesGetCall) Fields(s ...googleapi.Field) *ProvidersNotesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProvidersNotesGetCall) IfNoneMatch ¶
func (c *ProvidersNotesGetCall) IfNoneMatch(entityTag string) *ProvidersNotesGetCall
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 ProvidersNotesGetIamPolicyCall ¶
type ProvidersNotesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProvidersNotesGetIamPolicyCall) Context ¶
func (c *ProvidersNotesGetIamPolicyCall) Context(ctx context.Context) *ProvidersNotesGetIamPolicyCall
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 (*ProvidersNotesGetIamPolicyCall) Do ¶
func (c *ProvidersNotesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "containeranalysis.providers.notes.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProvidersNotesGetIamPolicyCall) Fields ¶
func (c *ProvidersNotesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProvidersNotesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProvidersNotesListCall ¶
type ProvidersNotesListCall struct {
// contains filtered or unexported fields
}
func (*ProvidersNotesListCall) Context ¶
func (c *ProvidersNotesListCall) Context(ctx context.Context) *ProvidersNotesListCall
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 (*ProvidersNotesListCall) Do ¶
func (c *ProvidersNotesListCall) Do(opts ...googleapi.CallOption) (*ListNotesResponse, error)
Do executes the "containeranalysis.providers.notes.list" call. Exactly one of *ListNotesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListNotesResponse.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 (*ProvidersNotesListCall) Fields ¶
func (c *ProvidersNotesListCall) Fields(s ...googleapi.Field) *ProvidersNotesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProvidersNotesListCall) Filter ¶
func (c *ProvidersNotesListCall) Filter(filter string) *ProvidersNotesListCall
Filter sets the optional parameter "filter": The filter expression.
func (*ProvidersNotesListCall) IfNoneMatch ¶
func (c *ProvidersNotesListCall) IfNoneMatch(entityTag string) *ProvidersNotesListCall
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 (*ProvidersNotesListCall) PageSize ¶
func (c *ProvidersNotesListCall) PageSize(pageSize int64) *ProvidersNotesListCall
PageSize sets the optional parameter "pageSize": Number of notes to return in the list.
func (*ProvidersNotesListCall) PageToken ¶
func (c *ProvidersNotesListCall) PageToken(pageToken string) *ProvidersNotesListCall
PageToken sets the optional parameter "pageToken": Token to provide to skip to a particular spot in the list.
func (*ProvidersNotesListCall) Pages ¶
func (c *ProvidersNotesListCall) Pages(ctx context.Context, f func(*ListNotesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func (*ProvidersNotesListCall) Parent ¶
func (c *ProvidersNotesListCall) Parent(parent string) *ProvidersNotesListCall
Parent sets the optional parameter "parent": The parent field will contain the projectId for example: "project/{project_id}
type ProvidersNotesOccurrencesListCall ¶
type ProvidersNotesOccurrencesListCall struct {
// contains filtered or unexported fields
}
func (*ProvidersNotesOccurrencesListCall) Context ¶
func (c *ProvidersNotesOccurrencesListCall) Context(ctx context.Context) *ProvidersNotesOccurrencesListCall
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 (*ProvidersNotesOccurrencesListCall) Do ¶
func (c *ProvidersNotesOccurrencesListCall) Do(opts ...googleapi.CallOption) (*ListNoteOccurrencesResponse, error)
Do executes the "containeranalysis.providers.notes.occurrences.list" call. Exactly one of *ListNoteOccurrencesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListNoteOccurrencesResponse.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 (*ProvidersNotesOccurrencesListCall) Fields ¶
func (c *ProvidersNotesOccurrencesListCall) Fields(s ...googleapi.Field) *ProvidersNotesOccurrencesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProvidersNotesOccurrencesListCall) Filter ¶
func (c *ProvidersNotesOccurrencesListCall) Filter(filter string) *ProvidersNotesOccurrencesListCall
Filter sets the optional parameter "filter": The filter expression.
func (*ProvidersNotesOccurrencesListCall) IfNoneMatch ¶
func (c *ProvidersNotesOccurrencesListCall) IfNoneMatch(entityTag string) *ProvidersNotesOccurrencesListCall
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 (*ProvidersNotesOccurrencesListCall) PageSize ¶
func (c *ProvidersNotesOccurrencesListCall) PageSize(pageSize int64) *ProvidersNotesOccurrencesListCall
PageSize sets the optional parameter "pageSize": Number of notes to return in the list.
func (*ProvidersNotesOccurrencesListCall) PageToken ¶
func (c *ProvidersNotesOccurrencesListCall) PageToken(pageToken string) *ProvidersNotesOccurrencesListCall
PageToken sets the optional parameter "pageToken": Token to provide to skip to a particular spot in the list.
func (*ProvidersNotesOccurrencesListCall) Pages ¶
func (c *ProvidersNotesOccurrencesListCall) Pages(ctx context.Context, f func(*ListNoteOccurrencesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProvidersNotesOccurrencesService ¶
type ProvidersNotesOccurrencesService struct {
// contains filtered or unexported fields
}
func NewProvidersNotesOccurrencesService ¶
func NewProvidersNotesOccurrencesService(s *Service) *ProvidersNotesOccurrencesService
func (*ProvidersNotesOccurrencesService) List ¶
func (r *ProvidersNotesOccurrencesService) List(name string) *ProvidersNotesOccurrencesListCall
List: Lists the names of Occurrences linked to a particular Note.
type ProvidersNotesService ¶
type ProvidersNotesService struct { Occurrences *ProvidersNotesOccurrencesService // contains filtered or unexported fields }
func NewProvidersNotesService ¶
func NewProvidersNotesService(s *Service) *ProvidersNotesService
func (*ProvidersNotesService) Create ¶
func (r *ProvidersNotesService) Create(name string, note *Note) *ProvidersNotesCreateCall
Create: Creates a new note.
func (*ProvidersNotesService) Delete ¶
func (r *ProvidersNotesService) Delete(name string) *ProvidersNotesDeleteCall
Delete: Deletes the given note from the system.
func (*ProvidersNotesService) Get ¶
func (r *ProvidersNotesService) Get(name string) *ProvidersNotesGetCall
Get: Returns the requested occurrence
func (*ProvidersNotesService) GetIamPolicy ¶
func (r *ProvidersNotesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProvidersNotesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a note or occurrence resource. Requires "containeranalysis.notes.setIamPolicy" or "containeranalysis.occurrences.setIamPolicy" permission if the resource is a note or occurrence, respectively. Attempting this RPC on a resource without the needed permission will note in a PERMISSION_DENIED error. Attempting this RPC on a non-existent resource will note in a NOT_FOUND error if the user has list permission on the project, or a PERMISSION_DENIED error otherwise.
func (*ProvidersNotesService) List ¶
func (r *ProvidersNotesService) List(name string) *ProvidersNotesListCall
List: Lists all notes for a given project. Filters can be used on this field to list all notes with a specific parameter.
func (*ProvidersNotesService) SetIamPolicy ¶
func (r *ProvidersNotesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProvidersNotesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified note or occurrence resource. Requires "containeranalysis.notes.setIamPolicy" or "containeranalysis.occurrences.setIamPolicy" permission if the resource is a note or occurrence, respectively. Attempting this RPC on a resource without the needed permission will note in a PERMISSION_DENIED error. Attempting this RPC on a non-existent resource will note in a NOT_FOUND error if the user has list permission on the project, or a PERMISSION_DENIED error otherwise.
func (*ProvidersNotesService) TestIamPermissions ¶
func (r *ProvidersNotesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProvidersNotesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (e.g., "storage.objects.list" on the containing bucket for testing permission of an object). Attempting this RPC on a non-existent resource will note in a NOT_FOUND error if the user has list permission on the project, or a PERMISSION_DENIED error otherwise.
func (*ProvidersNotesService) Update ¶
func (r *ProvidersNotesService) Update(name string, note *Note) *ProvidersNotesUpdateCall
Update: Updates an existing note.
type ProvidersNotesSetIamPolicyCall ¶
type ProvidersNotesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProvidersNotesSetIamPolicyCall) Context ¶
func (c *ProvidersNotesSetIamPolicyCall) Context(ctx context.Context) *ProvidersNotesSetIamPolicyCall
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 (*ProvidersNotesSetIamPolicyCall) Do ¶
func (c *ProvidersNotesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "containeranalysis.providers.notes.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProvidersNotesSetIamPolicyCall) Fields ¶
func (c *ProvidersNotesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProvidersNotesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProvidersNotesTestIamPermissionsCall ¶
type ProvidersNotesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProvidersNotesTestIamPermissionsCall) Context ¶
func (c *ProvidersNotesTestIamPermissionsCall) Context(ctx context.Context) *ProvidersNotesTestIamPermissionsCall
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 (*ProvidersNotesTestIamPermissionsCall) Do ¶
func (c *ProvidersNotesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "containeranalysis.providers.notes.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*ProvidersNotesTestIamPermissionsCall) Fields ¶
func (c *ProvidersNotesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProvidersNotesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProvidersNotesUpdateCall ¶
type ProvidersNotesUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProvidersNotesUpdateCall) Context ¶
func (c *ProvidersNotesUpdateCall) Context(ctx context.Context) *ProvidersNotesUpdateCall
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 (*ProvidersNotesUpdateCall) Do ¶
func (c *ProvidersNotesUpdateCall) Do(opts ...googleapi.CallOption) (*Note, error)
Do executes the "containeranalysis.providers.notes.update" call. Exactly one of *Note or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Note.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 (*ProvidersNotesUpdateCall) Fields ¶
func (c *ProvidersNotesUpdateCall) Fields(s ...googleapi.Field) *ProvidersNotesUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProvidersService ¶
type ProvidersService struct { Notes *ProvidersNotesService // contains filtered or unexported fields }
func NewProvidersService ¶
func NewProvidersService(s *Service) *ProvidersService
type RelatedUrl ¶
type RelatedUrl struct { // Label: Label to describe usage of the url Label string `json:"label,omitempty"` // Url: Specific url to associate with the note Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "Label") 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:"-"` }
RelatedUrl: Metadata for any related url information
func (*RelatedUrl) MarshalJSON ¶
func (s *RelatedUrl) MarshalJSON() ([]byte, error)
type RepoId ¶
type RepoId struct { // ProjectRepoId: A combination of a project ID and a repo name. ProjectRepoId *ProjectRepoId `json:"projectRepoId,omitempty"` // Uid: A server-assigned, globally unique identifier. Uid string `json:"uid,omitempty"` // ForceSendFields is a list of field names (e.g. "ProjectRepoId") 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:"-"` }
RepoId: A unique identifier for a cloud repo.
func (*RepoId) MarshalJSON ¶
type RepoSource ¶
type RepoSource struct { // BranchName: Name of the branch to build. BranchName string `json:"branchName,omitempty"` // CommitSha: Explicit commit SHA to build. CommitSha string `json:"commitSha,omitempty"` // ProjectId: ID of the project that owns the repo. ProjectId string `json:"projectId,omitempty"` // RepoName: Name of the repo. RepoName string `json:"repoName,omitempty"` // TagName: Name of the tag to build. TagName string `json:"tagName,omitempty"` // ForceSendFields is a list of field names (e.g. "BranchName") 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:"-"` }
RepoSource: RepoSource describes the location of the source in a Google Cloud Source Repository.
func (*RepoSource) MarshalJSON ¶
func (s *RepoSource) MarshalJSON() ([]byte, error)
type Rule ¶
type Rule struct { // Action: Required // // Possible values: // "NO_ACTION" - Default no action. // "ALLOW" - Matching 'Entries' grant access. // "ALLOW_WITH_LOG" - Matching 'Entries' grant access and the caller // promises to log // the request per the returned log_configs. // "DENY" - Matching 'Entries' deny access. // "DENY_WITH_LOG" - Matching 'Entries' deny access and the caller // promises to log // the request per the returned log_configs. // "LOG" - Matching 'Entries' tell IAM.Check callers to generate logs. Action string `json:"action,omitempty"` // Conditions: Additional restrictions that must be met Conditions []*Condition `json:"conditions,omitempty"` // Description: Human-readable description of the rule. Description string `json:"description,omitempty"` // In: If one or more 'in' clauses are specified, the rule matches // if // the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. In []string `json:"in,omitempty"` // LogConfig: The config returned to callers of tech.iam.IAM.CheckPolicy // for any entries // that match the LOG action. LogConfig []*LogConfig `json:"logConfig,omitempty"` // NotIn: If one or more 'not_in' clauses are specified, the rule // matches // if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. // The format for in and not_in entries is the same as for members in // a // Binding (see google/iam/v1/policy.proto). NotIn []string `json:"notIn,omitempty"` // Permissions: A permission is a string of form '<service>.<resource // type>.<verb>' // (e.g., 'storage.buckets.list'). A value of '*' matches all // permissions, // and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. Permissions []string `json:"permissions,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") 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:"-"` }
Rule: A rule to be applied in a Policy.
func (*Rule) MarshalJSON ¶
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Projects *ProjectsService Providers *ProvidersService // contains filtered or unexported fields }
type SetIamPolicyRequest ¶
type SetIamPolicyRequest struct { // Policy: REQUIRED: The complete policy to be applied to the // `resource`. The size of // the policy is limited to a few 10s of KB. An empty policy is a // valid policy but certain Cloud Platform services (such as // Projects) // might reject them. Policy *Policy `json:"policy,omitempty"` // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the // policy to modify. Only // the fields in the mask will be modified. If no mask is provided, a // default // mask is used: // paths: "bindings, etag" // This field is only used by Cloud IAM. UpdateMask string `json:"updateMask,omitempty"` // ForceSendFields is a list of field names (e.g. "Policy") 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:"-"` }
SetIamPolicyRequest: Request message for `SetIamPolicy` method.
func (*SetIamPolicyRequest) MarshalJSON ¶
func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error)
type Source ¶
type Source struct { // AdditionalSourceContexts: If provided, some of the source code used // for the build may be found in // these locations, in the case where the source repository had // multiple // remotes or submodules. This list will not include the context // specified in // the source_context field. AdditionalSourceContexts []*ExtendedSourceContext `json:"additionalSourceContexts,omitempty"` // ArtifactStorageSource: If provided, the input binary artifacts for // the build came from this // location. ArtifactStorageSource *StorageSource `json:"artifactStorageSource,omitempty"` // FileHashes: Hash(es) of the build source, which can be used to verify // that the original // source integrity was maintained in the build. // // The keys to this map are file paths used as build source and the // values // contain the hash values for those files. // // If the build source came in a single package such as a gzipped // tarfile // (.tar.gz), the FileHash will be for the single path to that file. FileHashes map[string]FileHashes `json:"fileHashes,omitempty"` // RepoSource: If provided, get source from this location in a Cloud // Repo. RepoSource *RepoSource `json:"repoSource,omitempty"` // SourceContext: If provided, the source code used for the build came // from this location. SourceContext *ExtendedSourceContext `json:"sourceContext,omitempty"` // StorageSource: If provided, get the source from this location in in // Google Cloud // Storage. StorageSource *StorageSource `json:"storageSource,omitempty"` // ForceSendFields is a list of field names (e.g. // "AdditionalSourceContexts") 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:"-"` }
Source: Source describes the location of the source used for the build.
func (*Source) MarshalJSON ¶
type SourceContext ¶
type SourceContext struct { // CloudRepo: A SourceContext referring to a revision in a cloud repo. CloudRepo *CloudRepoSourceContext `json:"cloudRepo,omitempty"` // CloudWorkspace: A SourceContext referring to a snapshot in a cloud // workspace. CloudWorkspace *CloudWorkspaceSourceContext `json:"cloudWorkspace,omitempty"` // Gerrit: A SourceContext referring to a Gerrit project. Gerrit *GerritSourceContext `json:"gerrit,omitempty"` // Git: A SourceContext referring to any third party Git repo (e.g. // GitHub). Git *GitSourceContext `json:"git,omitempty"` // ForceSendFields is a list of field names (e.g. "CloudRepo") 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:"-"` }
SourceContext: A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
func (*SourceContext) MarshalJSON ¶
func (s *SourceContext) MarshalJSON() ([]byte, error)
type StorageSource ¶
type StorageSource struct { // Bucket: Google Cloud Storage bucket containing source (see [Bucket // Name // Requirements] // (https://cloud.google.com/storage/docs/bucket-namin // g#requirements)). Bucket string `json:"bucket,omitempty"` // Generation: Google Cloud Storage generation for the object. Generation int64 `json:"generation,omitempty,string"` // Object: Google Cloud Storage object containing source. Object string `json:"object,omitempty"` // ForceSendFields is a list of field names (e.g. "Bucket") 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:"-"` }
StorageSource: StorageSource describes the location of the source in an archive file in Google Cloud Storage.
func (*StorageSource) MarshalJSON ¶
func (s *StorageSource) MarshalJSON() ([]byte, error)
type TestIamPermissionsRequest ¶
type TestIamPermissionsRequest struct { // Permissions: The set of permissions to check for the `resource`. // Permissions with // wildcards (such as '*' or 'storage.*') are not allowed. For // more // information see // [IAM // Overview](https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` // ForceSendFields is a list of field names (e.g. "Permissions") 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:"-"` }
TestIamPermissionsRequest: Request message for `TestIamPermissions` method.
func (*TestIamPermissionsRequest) MarshalJSON ¶
func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error)
type TestIamPermissionsResponse ¶
type TestIamPermissionsResponse struct { // Permissions: A subset of `TestPermissionsRequest.permissions` that // the caller is // allowed. Permissions []string `json:"permissions,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Permissions") 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:"-"` }
TestIamPermissionsResponse: Response message for `TestIamPermissions` method.
func (*TestIamPermissionsResponse) MarshalJSON ¶
func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error)
type Version ¶
type Version struct { // Epoch: Used to correct mistakes in the version numbering scheme. Epoch int64 `json:"epoch,omitempty"` // Kind: Distinguish between sentinel MIN/MAX versions and normal // versions. // If kind is not NORMAL, then the other fields are ignored. // // Possible values: // "NORMAL" - A standard package version, defined by the other fields. // "MINIMUM" - A special version representing negative infinity, // other fields are ignored. // "MAXIMUM" - A special version representing positive infinity, // other fields are ignored. Kind string `json:"kind,omitempty"` // Name: The main part of the version name. Name string `json:"name,omitempty"` // Revision: The iteration of the package build from the above version. Revision string `json:"revision,omitempty"` // ForceSendFields is a list of field names (e.g. "Epoch") 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:"-"` }
Version: Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages -version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and- rpm-compare-versions/
func (*Version) MarshalJSON ¶
type VulnerabilityDetails ¶
type VulnerabilityDetails struct { // CvssScore: The CVSS score of this vulnerability. CVSS score is on a // scale of 0-10 // where 0 indicates low severity and 10 indicates high // severity. // @OutputOnly CvssScore float64 `json:"cvssScore,omitempty"` // PackageIssue: The set of affected locations and their fixes (if // available) within // the associated resource. PackageIssue []*PackageIssue `json:"packageIssue,omitempty"` // Severity: The note provider assigned Severity of the // vulnerability. // @OutputOnly // // Possible values: // "UNKNOWN" - Unknown Impact // "MINIMAL" - Minimal Impact // "LOW" - Low Impact // "MEDIUM" - Medium Impact // "HIGH" - High Impact // "CRITICAL" - Critical Impact Severity string `json:"severity,omitempty"` // Type: The type of package; whether native or non native(ruby // gems, // node.js packages etc) Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "CvssScore") 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:"-"` }
VulnerabilityDetails: Used by Occurrence to point to where the vulnerability exists and how to fix it.
func (*VulnerabilityDetails) MarshalJSON ¶
func (s *VulnerabilityDetails) MarshalJSON() ([]byte, error)
type VulnerabilityLocation ¶
type VulnerabilityLocation struct { // CpeUri: The cpe_uri in [cpe format] // (https://cpe.mitre.org/specification/) // format. Examples include distro or storage location for vulnerable // jar. // This field can be used as a filter in list requests. CpeUri string `json:"cpeUri,omitempty"` // Package: The package being described. Package string `json:"package,omitempty"` // Version: The version of the package being described. // This field can be used as a filter in list requests. Version *Version `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CpeUri") 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:"-"` }
VulnerabilityLocation: The location of the vulnerability
func (*VulnerabilityLocation) MarshalJSON ¶
func (s *VulnerabilityLocation) MarshalJSON() ([]byte, error)
type VulnerabilityType ¶
type VulnerabilityType struct { // CvssScore: The CVSS score for this Vulnerability. CvssScore float64 `json:"cvssScore,omitempty"` // Details: All information about the package to specifically identify // this // vulnerability. One entry per (version range and cpe_uri) the // package vulnerability has manifested in. Details []*Detail `json:"details,omitempty"` // Severity: Note provider assigned impact of the vulnerability // // Possible values: // "UNKNOWN" - Unknown Impact // "MINIMAL" - Minimal Impact // "LOW" - Low Impact // "MEDIUM" - Medium Impact // "HIGH" - High Impact // "CRITICAL" - Critical Impact Severity string `json:"severity,omitempty"` // ForceSendFields is a list of field names (e.g. "CvssScore") 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:"-"` }
VulnerabilityType: VulnerabilityType provides metadata about a security vulnerability.
func (*VulnerabilityType) MarshalJSON ¶
func (s *VulnerabilityType) MarshalJSON() ([]byte, error)