cai

package
v0.0.37-rc15 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package cai helps with Cloud Asset Inventory

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAssetShortTypeName

func GetAssetShortTypeName(assetType string) string

GetAssetShortTypeName returns a short version of asset type <serviceName>-<assetType>, like bigquery-Dataset. It deals with k8s exceptions

Types

type FeedDeployment

type FeedDeployment struct {
	Artifacts struct {
		TopicName    string `yaml:"topicName"`
		FeedName     string `yaml:"feedName"`
		ContentType  assetpb.ContentType
		FeedFullName string `yaml:"FeedFullName"`
	}
	Core     *deploy.Core
	Settings struct {
		Instance struct {
			CAI Parameters
		}
	}
}

FeedDeployment settings and artifacts structure

func NewFeedDeployment

func NewFeedDeployment() *FeedDeployment

NewFeedDeployment create deployment structure

func (*FeedDeployment) Deploy

func (feedDeployment *FeedDeployment) Deploy() (err error)

Deploy get-create resource feeds, get-create-update the iam policies feed

type Parameters

type Parameters struct {
	Parent       string
	ContentType  string   `yaml:"contentType" valid:"isNotZeroValue"`
	AssetTypes   []string `yaml:"assetTypes" valid:"isNotZeroValue"`
	CronSchedule string   `yaml:"cronSchedule,omitempty"`
}

Parameters structure

Jump to

Keyboard shortcuts

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