provider

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultCloudSpaceCreateTimeout is the default timeout for creating a control plane for a cloud space.
	DefaultCloudSpaceCreateTimeout = 5 * time.Minute
	// DefaultRefreshInterval is the default interval at which the provider will poll the API for updates.
	DefaultRefreshInterval = 5 * time.Second
)
View Source
const (
	Auth0AppName string = "NGPC UI"
)

Variables

This section is empty.

Functions

func FindOrgName added in v0.0.5

func FindOrgName(ctx context.Context, client *ngpc.OrganizerClient, userJWT string, orgID string) (string, error)

FindOrgName returns organization name from organization id

func GetAccessToken added in v0.1.0

func GetAccessToken(ctx context.Context, config *oauth2.Config, refreshToken string) (string, error)

func New

func New(version string) func() provider.Provider

New creates Provider with given version Version is not connected to any framework functionality currently, but may be in the future. Terraform uses the version from the GH release tag only. Hence value set here doesnt matter.

func NewCloudspaceDataSource added in v0.0.3

func NewCloudspaceDataSource() datasource.DataSource

func NewCloudspaceResource

func NewCloudspaceResource() resource.Resource

func NewKubeconfigDataSource added in v0.0.5

func NewKubeconfigDataSource() datasource.DataSource

func NewOndemandnodepoolDataSource added in v0.0.11

func NewOndemandnodepoolDataSource() datasource.DataSource

func NewOndemandnodepoolResource added in v0.0.11

func NewOndemandnodepoolResource() resource.Resource

func NewRegionDataSource added in v0.0.8

func NewRegionDataSource() datasource.DataSource

func NewRegionsDataSource added in v0.0.8

func NewRegionsDataSource() datasource.DataSource

func NewServerclassDataSource added in v0.0.8

func NewServerclassDataSource() datasource.DataSource

func NewServerclassesDataSource added in v0.0.8

func NewServerclassesDataSource() datasource.DataSource

func NewSpotnodepoolDataSource added in v0.0.5

func NewSpotnodepoolDataSource() datasource.DataSource

func NewSpotnodepoolResource added in v0.0.3

func NewSpotnodepoolResource() resource.Resource

func StrSliceContains added in v0.0.9

func StrSliceContains(slice []string, val string) bool

Types

type KubeconfigVars added in v0.0.3

type KubeconfigVars struct {
	OrgID                 string
	OrgName               string
	User                  string
	Token                 string
	Host                  string
	ClusterName           string
	InsecureSkipTLSVerify bool
	OidcIssuerURL         string
	OidcClientID          string
}

type RxtSpotToken added in v0.0.3

type RxtSpotToken struct {
	// contains filtered or unexported fields
}

func NewRxtSpotToken added in v0.0.3

func NewRxtSpotToken(token string) *RxtSpotToken

func (*RxtSpotToken) GetOrgID added in v0.0.3

func (j *RxtSpotToken) GetOrgID() (string, error)

func (*RxtSpotToken) IsEmailVerified added in v0.0.3

func (j *RxtSpotToken) IsEmailVerified() bool

func (*RxtSpotToken) IsExpired added in v0.0.3

func (j *RxtSpotToken) IsExpired() (bool, error)

func (*RxtSpotToken) IsValidSignature added in v0.0.3

func (j *RxtSpotToken) IsValidSignature() (bool, error)

func (*RxtSpotToken) Parse added in v0.0.3

func (j *RxtSpotToken) Parse() error

type SpotProviderData added in v0.1.3

type SpotProviderData struct {
	// contains filtered or unexported fields
}

SpotProviderData is wrapper over all the dependencies needed by Resources and DataSources

Jump to

Keyboard shortcuts

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