providerid

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package providerid implements functionality for creating kubernetes provider ids for nodes.

Index

Constants

View Source
const (
	// Prefix is the gce provider id prefix.
	Prefix = "gce://"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderID

type ProviderID interface {
	Project() string
	Location() string
	Name() string
	fmt.Stringer
}

ProviderID represents the id for a GCP cluster.

func New

func New(project, location, name string) (ProviderID, error)

New creates a new provider id.

func NewFromResourceURL

func NewFromResourceURL(url string) (ProviderID, error)

NewFromResourceURL creates a provider from a GCP resource url.

Jump to

Keyboard shortcuts

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