gcp

package
v0.0.0-...-70e6b80 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterServerForLegacyGCP

func GetClusterServerForLegacyGCP(name string) string

func GetUserEmails

func GetUserEmails(ctx context.Context) ([]string, error)

func ValidateUserLogin

func ValidateUserLogin(ctx context.Context) error

Types

type Cluster

type Cluster struct {
	Name        string
	Endpoint    string
	Location    string
	CA          string
	Tenant      string
	User        *OnpremUser
	Kind        Kind
	Environment string
}

func GetClusters

func GetClusters(ctx context.Context) ([]Cluster, error)

type Kind

type Kind int64
const (
	KindOnprem Kind = iota
	KindKNADA
	KindNAIS
	KindLegacy
	KindManagment
	KindUnknown
)

func ParseKind

func ParseKind(in string) Kind

type OnpremUser

type OnpremUser struct {
	ServerID string `json:"serverID"`
	ClientID string `json:"clientID"`
	TenantID string `json:"tenantID"`
	UserName string `json:"userName"`
}

type Project

type Project struct {
	ID     string
	Tenant string
	Name   string
	Kind   Kind
}

Jump to

Keyboard shortcuts

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