provider

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindNamespaceForOrganization added in v0.0.3

func FindNamespaceForOrganization(ctx context.Context, client ngpc.Client, orgName string) (string, error)

FindNamespaceForOrganization returns namespace for organization ngpc API is used to find namespace

func FindOrgName added in v0.0.5

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

FindOrgName returns organization name from organization id

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

Jump to

Keyboard shortcuts

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