sha

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package sha holds Security Health Analytics finding entities and functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BucketName

func BucketName(resource string) string

BucketName returns name of the bucket. Resource assumed valid due to prior validate call.

func ClusterID

func ClusterID(resource string) string

ClusterID returns the cluster id of the cluster.

func ClusterZone

func ClusterZone(resource string) string

ClusterZone returns the zone of the cluster.

func Dataset

func Dataset(resource string) string

Dataset returns the ID of the BigQuery dataset.

func FirewallID

func FirewallID(resource string) string

FirewallID returns the numerical ID of the firewall.

func IgnoreFinding

func IgnoreFinding(finding GenericFindingState) bool

IgnoreFinding returns if this finding should be ignored or not.

func Instance

func Instance(resource string) string

Instance returns the name of the instance.

func OrganizationID

func OrganizationID(resource string) string

OrganizationID returns the organization name.

func Zone

func Zone(resource string) string

Zone returns the zone of the instance.

Types

type GenericFindingState

type GenericFindingState interface {
	GetState() string
}

GenericFindingState is a finding that exposes its state.

Jump to

Keyboard shortcuts

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