Documentation
¶
Overview ¶
Package faker produces deterministic GCP-shaped fake data for SCC findings. All helpers take an explicit *rand.Rand so callers control determinism.
Index ¶
- func ComputeResourceName(r *rand.Rand, projectID string) string
- func EventTime(r *rand.Rand) time.Time
- func FindingID(r *rand.Rand) string
- func FindingName(orgID, sourceID, findingID string) string
- func FindingParent(orgID, sourceID string) string
- func IAMRoleResourceName(projectID string) string
- func IPv4(r *rand.Rand) string
- func MitreTactic(r *rand.Rand) string
- func MitreTechnique(r *rand.Rand) string
- func NotificationConfigName(r *rand.Rand) string
- func OrganizationID(r *rand.Rand) string
- func PrincipalEmail(r *rand.Rand) string
- func ProjectID(r *rand.Rand) string
- func SourceID(r *rand.Rand) string
- func StorageBucketResourceName(r *rand.Rand, projectID string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeResourceName ¶
ComputeResourceName returns a GCE instance resource name.
func EventTime ¶
EventTime returns a deterministic random time within a fixed ~2-year window (2024–2025), derived entirely from the RNG.
func FindingName ¶
FindingName returns a fully-qualified Finding resource name.
func FindingParent ¶
FindingParent returns the SCC source resource name.
func IAMRoleResourceName ¶
IAMRoleResourceName returns a project-scoped IAM resource name.
func MitreTactic ¶
MitreTactic returns a MITRE ATT&CK tactic name used by SCC.
func MitreTechnique ¶
MitreTechnique returns a MITRE technique ID like "T1078".
func NotificationConfigName ¶
NotificationConfigName returns a fully-qualified SCC notification config name.
func OrganizationID ¶
OrganizationID returns a 12-digit numeric GCP organization ID.
func PrincipalEmail ¶
PrincipalEmail returns either a user-style or service-account-style email.
Types ¶
This section is empty.