Documentation
¶
Index ¶
- Variables
- type Target
- func (*Target) Descriptor() ([]byte, []int)deprecated
- func (x *Target) GetCloned() bool
- func (x *Target) GetCommitHash() string
- func (x *Target) GetDisplayPath() string
- func (x *Target) GetEffectiveRef() string
- func (x *Target) GetKind() TargetKind
- func (x *Target) GetLocalPath() string
- func (x *Target) GetOriginUrl() string
- func (x *Target) GetProvenance() map[string]string
- func (x *Target) GetRef() string
- func (x *Target) GetReference() string
- func (*Target) ProtoMessage()
- func (x *Target) ProtoReflect() protoreflect.Message
- func (x *Target) Reset()
- func (x *Target) String() string
- type TargetKind
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TargetKind_name = map[int32]string{ 0: "TARGET_KIND_UNSPECIFIED", 1: "TARGET_KIND_DIR", 2: "TARGET_KIND_FILE", 3: "TARGET_KIND_BINARY", 4: "TARGET_KIND_GIT", 5: "TARGET_KIND_CONTAINER_IMAGE", 6: "TARGET_KIND_CONTAINER_INSTANCE", 7: "TARGET_KIND_VM_IMAGE", 8: "TARGET_KIND_EXTENSION", 9: "TARGET_KIND_SBOM", 10: "TARGET_KIND_PURL", 11: "TARGET_KIND_DOCKERFILE", } TargetKind_value = map[string]int32{ "TARGET_KIND_UNSPECIFIED": 0, "TARGET_KIND_DIR": 1, "TARGET_KIND_FILE": 2, "TARGET_KIND_BINARY": 3, "TARGET_KIND_GIT": 4, "TARGET_KIND_CONTAINER_IMAGE": 5, "TARGET_KIND_CONTAINER_INSTANCE": 6, "TARGET_KIND_VM_IMAGE": 7, "TARGET_KIND_EXTENSION": 8, "TARGET_KIND_SBOM": 9, "TARGET_KIND_PURL": 10, "TARGET_KIND_DOCKERFILE": 11, } )
Enum value maps for TargetKind.
View Source
var File_deputy_target_v1_target_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Target ¶
type Target struct {
// Kind identifies the input type.
Kind TargetKind `protobuf:"varint,1,opt,name=kind,proto3,enum=deputy.target.v1.TargetKind" json:"kind,omitempty"`
// DisplayPath is the user-facing representation of the target.
DisplayPath string `protobuf:"bytes,2,opt,name=display_path,json=displayPath,proto3" json:"display_path,omitempty"`
// LocalPath is the filesystem path where the target was materialized.
LocalPath string `protobuf:"bytes,3,opt,name=local_path,json=localPath,proto3" json:"local_path,omitempty"`
// Ref is the user-specified reference (e.g., branch name, tag).
Ref string `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"`
// EffectiveRef is the resolved reference after normalization.
EffectiveRef string `protobuf:"bytes,5,opt,name=effective_ref,json=effectiveRef,proto3" json:"effective_ref,omitempty"`
// CommitHash is the resolved Git commit SHA when applicable.
CommitHash string `protobuf:"bytes,6,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"`
// OriginURL is the source URL (e.g., repository URL).
OriginUrl string `protobuf:"bytes,7,opt,name=origin_url,json=originUrl,proto3" json:"origin_url,omitempty"`
// Cloned indicates whether the target was cloned from a remote source.
Cloned bool `protobuf:"varint,8,opt,name=cloned,proto3" json:"cloned,omitempty"`
// Provenance contains additional metadata about target resolution.
Provenance map[string]string `` /* 147-byte string literal not displayed */
// Reference is the container image reference when kind is TARGET_KIND_CONTAINER_IMAGE.
Reference string `protobuf:"bytes,10,opt,name=reference,proto3" json:"reference,omitempty"`
// contains filtered or unexported fields
}
Target describes what Deputy is operating on and how it was resolved.
func (*Target) Descriptor
deprecated
func (*Target) GetCommitHash ¶
func (*Target) GetDisplayPath ¶
func (*Target) GetEffectiveRef ¶
func (*Target) GetKind ¶
func (x *Target) GetKind() TargetKind
func (*Target) GetLocalPath ¶
func (*Target) GetOriginUrl ¶
func (*Target) GetProvenance ¶
func (*Target) GetReference ¶
func (*Target) ProtoMessage ¶
func (*Target) ProtoMessage()
func (*Target) ProtoReflect ¶
func (x *Target) ProtoReflect() protoreflect.Message
type TargetKind ¶
type TargetKind int32
TargetKind identifies the type of target being operated on.
const ( // Unspecified target kind. TargetKind_TARGET_KIND_UNSPECIFIED TargetKind = 0 // Local directory. TargetKind_TARGET_KIND_DIR TargetKind = 1 // Single file. TargetKind_TARGET_KIND_FILE TargetKind = 2 // Compiled binary. TargetKind_TARGET_KIND_BINARY TargetKind = 3 // Git repository. TargetKind_TARGET_KIND_GIT TargetKind = 4 // Container image (OCI/Docker). TargetKind_TARGET_KIND_CONTAINER_IMAGE TargetKind = 5 // Running container instance. TargetKind_TARGET_KIND_CONTAINER_INSTANCE TargetKind = 6 // Virtual machine image. TargetKind_TARGET_KIND_VM_IMAGE TargetKind = 7 // Browser/IDE extension. TargetKind_TARGET_KIND_EXTENSION TargetKind = 8 // Software Bill of Materials document. TargetKind_TARGET_KIND_SBOM TargetKind = 9 // Package URL reference. TargetKind_TARGET_KIND_PURL TargetKind = 10 // Dockerfile for static analysis. TargetKind_TARGET_KIND_DOCKERFILE TargetKind = 11 )
func (TargetKind) Descriptor ¶
func (TargetKind) Descriptor() protoreflect.EnumDescriptor
func (TargetKind) Enum ¶
func (x TargetKind) Enum() *TargetKind
func (TargetKind) EnumDescriptor
deprecated
func (TargetKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use TargetKind.Descriptor instead.
func (TargetKind) Number ¶
func (x TargetKind) Number() protoreflect.EnumNumber
func (TargetKind) String ¶
func (x TargetKind) String() string
func (TargetKind) Type ¶
func (TargetKind) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.