provenance

package
v0.0.0-...-0e82294 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Hash_HashType_name = map[int32]string{
	0: "HASH_TYPE_UNSPECIFIED",
	1: "SHA256",
}
View Source
var Hash_HashType_value = map[string]int32{
	"HASH_TYPE_UNSPECIFIED": 0,
	"SHA256":                1,
}

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	// Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
	// container.
	Checksum string `protobuf:"bytes,1,opt,name=checksum,proto3" json:"checksum,omitempty"`
	// Artifact ID, if any; for container images, this will be a URL by digest
	// like `gcr.io/projectID/imagename@sha256:123456`.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Related artifact names. 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`. Note that a
	// single Artifact ID can have multiple names, for example if two tags are
	// applied to one image.
	Names                []string `protobuf:"bytes,3,rep,name=names,proto3" json:"names,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Artifact describes a build product.

func (*Artifact) Descriptor

func (*Artifact) Descriptor() ([]byte, []int)

func (*Artifact) GetChecksum

func (m *Artifact) GetChecksum() string

func (*Artifact) GetId

func (m *Artifact) GetId() string

func (*Artifact) GetNames

func (m *Artifact) GetNames() []string

func (*Artifact) ProtoMessage

func (*Artifact) ProtoMessage()

func (*Artifact) Reset

func (m *Artifact) Reset()

func (*Artifact) String

func (m *Artifact) String() string

func (*Artifact) XXX_DiscardUnknown

func (m *Artifact) XXX_DiscardUnknown()

func (*Artifact) XXX_Marshal

func (m *Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Artifact) XXX_Merge

func (m *Artifact) XXX_Merge(src proto.Message)

func (*Artifact) XXX_Size

func (m *Artifact) XXX_Size() int

func (*Artifact) XXX_Unmarshal

func (m *Artifact) XXX_Unmarshal(b []byte) error

type BuildProvenance

type BuildProvenance struct {
	// Unique identifier of the build.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the project.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Commands requested by the build.
	Commands []*Command `protobuf:"bytes,3,rep,name=commands,proto3" json:"commands,omitempty"`
	// Output of the build.
	BuiltArtifacts []*Artifact `protobuf:"bytes,4,rep,name=built_artifacts,json=builtArtifacts,proto3" json:"built_artifacts,omitempty"`
	// Time at which the build was created.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Time at which execution of the build was started.
	StartTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Time at which execution of the build was finished.
	EndTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// 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 `protobuf:"bytes,8,opt,name=creator,proto3" json:"creator,omitempty"`
	// URI where any logs for this provenance were written.
	LogsUri string `protobuf:"bytes,9,opt,name=logs_uri,json=logsUri,proto3" json:"logs_uri,omitempty"`
	// Details of the Source input to the build.
	SourceProvenance *Source `protobuf:"bytes,10,opt,name=source_provenance,json=sourceProvenance,proto3" json:"source_provenance,omitempty"`
	// Trigger identifier if the build was triggered automatically; empty if not.
	TriggerId string `protobuf:"bytes,11,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"`
	// 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 `` /* 186-byte string literal not displayed */
	// Version string of the builder at the time this build was executed.
	BuilderVersion       string   `protobuf:"bytes,13,opt,name=builder_version,json=builderVersion,proto3" json:"builder_version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Provenance of a build. Contains all information needed to verify the full details about the build from source to completion.

func (*BuildProvenance) Descriptor

func (*BuildProvenance) Descriptor() ([]byte, []int)

func (*BuildProvenance) GetBuildOptions

func (m *BuildProvenance) GetBuildOptions() map[string]string

func (*BuildProvenance) GetBuilderVersion

func (m *BuildProvenance) GetBuilderVersion() string

func (*BuildProvenance) GetBuiltArtifacts

func (m *BuildProvenance) GetBuiltArtifacts() []*Artifact

func (*BuildProvenance) GetCommands

func (m *BuildProvenance) GetCommands() []*Command

func (*BuildProvenance) GetCreateTime

func (m *BuildProvenance) GetCreateTime() *timestamp.Timestamp

func (*BuildProvenance) GetCreator

func (m *BuildProvenance) GetCreator() string

func (*BuildProvenance) GetEndTime

func (m *BuildProvenance) GetEndTime() *timestamp.Timestamp

func (*BuildProvenance) GetId

func (m *BuildProvenance) GetId() string

func (*BuildProvenance) GetLogsUri

func (m *BuildProvenance) GetLogsUri() string

func (*BuildProvenance) GetProjectId

func (m *BuildProvenance) GetProjectId() string

func (*BuildProvenance) GetSourceProvenance

func (m *BuildProvenance) GetSourceProvenance() *Source

func (*BuildProvenance) GetStartTime

func (m *BuildProvenance) GetStartTime() *timestamp.Timestamp

func (*BuildProvenance) GetTriggerId

func (m *BuildProvenance) GetTriggerId() string

func (*BuildProvenance) ProtoMessage

func (*BuildProvenance) ProtoMessage()

func (*BuildProvenance) Reset

func (m *BuildProvenance) Reset()

func (*BuildProvenance) String

func (m *BuildProvenance) String() string

func (*BuildProvenance) XXX_DiscardUnknown

func (m *BuildProvenance) XXX_DiscardUnknown()

func (*BuildProvenance) XXX_Marshal

func (m *BuildProvenance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildProvenance) XXX_Merge

func (m *BuildProvenance) XXX_Merge(src proto.Message)

func (*BuildProvenance) XXX_Size

func (m *BuildProvenance) XXX_Size() int

func (*BuildProvenance) XXX_Unmarshal

func (m *BuildProvenance) XXX_Unmarshal(b []byte) error

type Command

type Command struct {
	// 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 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Environment variables set before running this command.
	Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`
	// Command-line arguments used when executing this command.
	Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
	// Working directory (relative to project source root) used when running this
	// command.
	Dir string `protobuf:"bytes,4,opt,name=dir,proto3" json:"dir,omitempty"`
	// Optional unique identifier for this command, used in wait_for to reference
	// this command as a dependency.
	Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
	// The ID(s) of the command(s) that this command depends on.
	WaitFor              []string `protobuf:"bytes,6,rep,name=wait_for,json=waitFor,proto3" json:"wait_for,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Command describes a step performed as part of the build pipeline.

func (*Command) Descriptor

func (*Command) Descriptor() ([]byte, []int)

func (*Command) GetArgs

func (m *Command) GetArgs() []string

func (*Command) GetDir

func (m *Command) GetDir() string

func (*Command) GetEnv

func (m *Command) GetEnv() []string

func (*Command) GetId

func (m *Command) GetId() string

func (*Command) GetName

func (m *Command) GetName() string

func (*Command) GetWaitFor

func (m *Command) GetWaitFor() []string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) Reset

func (m *Command) Reset()

func (*Command) String

func (m *Command) String() string

func (*Command) XXX_DiscardUnknown

func (m *Command) XXX_DiscardUnknown()

func (*Command) XXX_Marshal

func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command) XXX_Merge

func (m *Command) XXX_Merge(src proto.Message)

func (*Command) XXX_Size

func (m *Command) XXX_Size() int

func (*Command) XXX_Unmarshal

func (m *Command) XXX_Unmarshal(b []byte) error

type FileHashes

type FileHashes struct {
	// Collection of file hashes.
	FileHash             []*Hash  `protobuf:"bytes,1,rep,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.

func (*FileHashes) Descriptor

func (*FileHashes) Descriptor() ([]byte, []int)

func (*FileHashes) GetFileHash

func (m *FileHashes) GetFileHash() []*Hash

func (*FileHashes) ProtoMessage

func (*FileHashes) ProtoMessage()

func (*FileHashes) Reset

func (m *FileHashes) Reset()

func (*FileHashes) String

func (m *FileHashes) String() string

func (*FileHashes) XXX_DiscardUnknown

func (m *FileHashes) XXX_DiscardUnknown()

func (*FileHashes) XXX_Marshal

func (m *FileHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileHashes) XXX_Merge

func (m *FileHashes) XXX_Merge(src proto.Message)

func (*FileHashes) XXX_Size

func (m *FileHashes) XXX_Size() int

func (*FileHashes) XXX_Unmarshal

func (m *FileHashes) XXX_Unmarshal(b []byte) error

type Hash

type Hash struct {
	// The type of hash that was performed.
	Type Hash_HashType `protobuf:"varint,1,opt,name=type,proto3,enum=grafeas.v1beta1.provenance.Hash_HashType" json:"type,omitempty"`
	// The hash value.
	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Container message for hash values.

func (*Hash) Descriptor

func (*Hash) Descriptor() ([]byte, []int)

func (*Hash) GetType

func (m *Hash) GetType() Hash_HashType

func (*Hash) GetValue

func (m *Hash) GetValue() []byte

func (*Hash) ProtoMessage

func (*Hash) ProtoMessage()

func (*Hash) Reset

func (m *Hash) Reset()

func (*Hash) String

func (m *Hash) String() string

func (*Hash) XXX_DiscardUnknown

func (m *Hash) XXX_DiscardUnknown()

func (*Hash) XXX_Marshal

func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Hash) XXX_Merge

func (m *Hash) XXX_Merge(src proto.Message)

func (*Hash) XXX_Size

func (m *Hash) XXX_Size() int

func (*Hash) XXX_Unmarshal

func (m *Hash) XXX_Unmarshal(b []byte) error

type Hash_HashType

type Hash_HashType int32

Specifies the hash algorithm, if any.

const (
	// Unknown.
	Hash_HASH_TYPE_UNSPECIFIED Hash_HashType = 0
	// A SHA-256 hash.
	Hash_SHA256 Hash_HashType = 1
)

func (Hash_HashType) EnumDescriptor

func (Hash_HashType) EnumDescriptor() ([]byte, []int)

func (Hash_HashType) String

func (x Hash_HashType) String() string

type Source

type Source struct {
	// If provided, the input binary artifacts for the build came from this
	// location.
	ArtifactStorageSourceUri string `` /* 137-byte string literal not displayed */
	// 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 `` /* 179-byte string literal not displayed */
	// If provided, the source code used for the build came from this location.
	Context *source.SourceContext `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"`
	// 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 context field.
	AdditionalContexts   []*source.SourceContext `protobuf:"bytes,4,rep,name=additional_contexts,json=additionalContexts,proto3" json:"additional_contexts,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

Source describes the location of the source used for the build.

func (*Source) Descriptor

func (*Source) Descriptor() ([]byte, []int)

func (*Source) GetAdditionalContexts

func (m *Source) GetAdditionalContexts() []*source.SourceContext

func (*Source) GetArtifactStorageSourceUri

func (m *Source) GetArtifactStorageSourceUri() string

func (*Source) GetContext

func (m *Source) GetContext() *source.SourceContext

func (*Source) GetFileHashes

func (m *Source) GetFileHashes() map[string]*FileHashes

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) Reset

func (m *Source) Reset()

func (*Source) String

func (m *Source) String() string

func (*Source) XXX_DiscardUnknown

func (m *Source) XXX_DiscardUnknown()

func (*Source) XXX_Marshal

func (m *Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Source) XXX_Merge

func (m *Source) XXX_Merge(src proto.Message)

func (*Source) XXX_Size

func (m *Source) XXX_Size() int

func (*Source) XXX_Unmarshal

func (m *Source) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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