provider

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

Types

type Claims

type Claims struct {
	jwt.RegisteredClaims

	Roles       TokenRoles        `json:"roles,omitempty"`
	Permissions MethodPermissions `json:"permissions,omitempty"`
	Type        string            `json:"type"`
}

type MetalstackCloudProvider

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

MetalstackCloudProvider defines the provider implementation.

func (*MetalstackCloudProvider) Configure

func (*MetalstackCloudProvider) DataSources

func (p *MetalstackCloudProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*MetalstackCloudProvider) Metadata

func (*MetalstackCloudProvider) Resources

func (p *MetalstackCloudProvider) Resources(ctx context.Context) []func() resource.Resource

func (*MetalstackCloudProvider) Schema

type MetalstackCloudProviderModel

type MetalstackCloudProviderModel struct {
	ApiToken types.String `tfsdk:"api_token"`
	Project  types.String `tfsdk:"project"`
}

MetalstackCloudProviderModel describes the provider data model.

type MethodPermissions

type MethodPermissions map[string][]string

MethodPermissions is a map from project or organization ->[]methods, e.g.: "/api.v1.ClusterService/List".

type TokenRoles

type TokenRoles map[string]string

TokenRoles maps the role to subject subject can be either * (Wildcard) or the concrete Organization or Project role can be one of admin, owner, editor, viewer.

Jump to

Keyboard shortcuts

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