helpers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FQN

func FQN(kind string, m *types.ObjectMeta) string

func FromFQN

func FromFQN(kind string, fqn string) (*types.ObjectMeta, error)

func ParentFQN

func ParentFQN(kind string, m *types.ObjectMeta) string

func ResourceSchemaToDatasourceSchemar

func ResourceSchemaToDatasourceSchemar(s rschema.Schema) dschema.Schema

Types

type BasicAuth

type BasicAuth struct {
	Username types.String `tfsdk:"username"`
	Password types.String `tfsdk:"password"`
}

BasicAuth is an HTTP Basic credentials provider for gRPC

func (BasicAuth) GetRequestMetadata

func (b BasicAuth) GetRequestMetadata(_ context.Context, _ ...string) (map[string]string, error)

GetRequestMetadata implements credentials.PerRPCCredentials

func (BasicAuth) RequireTransportSecurity

func (BasicAuth) RequireTransportSecurity() bool

RequireTransportSecurity implements credentials.PerRPCCredentials

type Clients

type Clients struct {
	Organization tsbv2.OrganizationsClient
	Tenant       tsbv2.TenantsClient
	Team         tsbv2.TeamsClient
}

func BuildClientsDatasource

func BuildClientsDatasource(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) *Clients

Can't use generics for this yet... See https://github.com/golang/go/issues/48522

func BuildClientsResource

func BuildClientsResource(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) *Clients

Can't use generics for this yet... See https://github.com/golang/go/issues/48522

func NewClients

func NewClients(cc *grpc.ClientConn) *Clients

Jump to

Keyboard shortcuts

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