network_api

package
v0.0.0-...-9f7285a Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const GCPNetworkLogQueryTaskID = query.GKEQueryPrefix + "network-api"

Variables

View Source
var GCPNetworkLogQueryTask = query.NewQueryGeneratorTask(GCPNetworkLogQueryTaskID, "GCP network log", enum.LogTypeNetworkAPI, []string{
	k8saudittask.K8sAuditParseTaskID,
}, func(ctx context.Context, i int, vs *task.VariableSet) ([]string, error) {
	builder, err := inspection_task.GetHistoryBuilderFromTaskVariable(vs)
	if err != nil {
		return []string{}, err
	}
	return GenerateGCPNetworkAPIQuery(i, builder.ClusterResource.NEGs.GetAllIdentifiers()), nil
})

Functions

func GenerateGCPNetworkAPIQuery

func GenerateGCPNetworkAPIQuery(taskMode int, negNames []string) []string

Types

type NegAttachOrDetachRequest

type NegAttachOrDetachRequest struct {
	NetworkEndpoints []*NegAttachOrDetachRequestEndpoint `yaml:"networkEndpoints"`
}

type NegAttachOrDetachRequestEndpoint

type NegAttachOrDetachRequestEndpoint struct {
	Instance  string `yaml:"instance"`
	IpAddress string `yaml:"ipAddress"`
	Port      string `yaml:"port"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳