kind: sigs.k8s.io/kind/pkg/internal/cluster/providers/provider Index | Files | Directories

package provider

import "sigs.k8s.io/kind/pkg/internal/cluster/providers/provider"

Index

Package Files

provider.go

type Provider Uses

type Provider interface {
    // Provision should create and start the nodes, just short of
    // actually starting up Kubernetes, based on the given cluster config
    Provision(status *cli.Status, cluster string, cfg *config.Cluster) error
    // ListClusters discovers the clusters that currently have resources
    // under this providers
    ListClusters() ([]string, error)
    // ListNodes returns the nodes under this provider for the given
    // cluster name, they may or may not be running correctly
    ListNodes(cluster string) ([]nodes.Node, error)
    // DeleteNodes deletes the provided list of nodes
    // These should be from results previously returned by this provider
    // E.G. by ListNodes()
    DeleteNodes([]nodes.Node) error
    // GetAPIServerEndpoint returns the host endpoint for the cluster's API server
    GetAPIServerEndpoint(cluster string) (string, error)
}

Provider represents a provider of cluster / node infrastructure This is an alpha-grade internal API

Directories

PathSynopsis
commonPackage common contains common code for implementing providers

Package provider imports 3 packages (graph) and is imported by 4 packages. Updated 2019-11-21. Refresh now. Tools for package owners.