provider

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataSourceClient

func GetDataSourceClient(
	ctx context.Context,
	req datasource.ConfigureRequest,
	resp *datasource.ConfigureResponse,
) *resty.Client

func GetIdFromLocation

func GetIdFromLocation(response *resty.Response) (string, error)

func GetResourceClient

func GetResourceClient(
	ctx context.Context,
	req resource.ConfigureRequest,
	resp *resource.ConfigureResponse,
) *resty.Client

func New

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

func NewABXConstantResource

func NewABXConstantResource() resource.Resource

func NewABXSecretResource

func NewABXSecretResource() resource.Resource

func NewExampleFunction

func NewExampleFunction() function.Function

func NewIconDataSource

func NewIconDataSource() datasource.DataSource

func NewIconResource

func NewIconResource() resource.Resource

Types

type ABXConstantResource

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

ABXConstantResource defines the resource implementation.

func (*ABXConstantResource) Configure

func (*ABXConstantResource) Create

func (*ABXConstantResource) Delete

func (*ABXConstantResource) ImportState

func (*ABXConstantResource) Metadata

func (*ABXConstantResource) Read

func (*ABXConstantResource) Schema

func (*ABXConstantResource) Update

type ABXConstantResourceAPIModel

type ABXConstantResourceAPIModel struct {
	Id            string `json:"id"`
	Name          string `json:"name"`
	Value         string `json:"value"`
	Encrypted     bool   `json:"encrypted"`
	OrgId         string `json:"orgId"`
	CreatedMillis int64  `json:"createdMillis"`
}

ABXConstantResourceAPIModel describes the resource API model.

type ABXConstantResourceModel

type ABXConstantResourceModel struct {
	Id        types.String `tfsdk:"id"`
	Name      types.String `tfsdk:"name"`
	Value     types.String `tfsdk:"value"`
	Encrypted types.Bool   `tfsdk:"encrypted"`
	OrgId     types.String `tfsdk:"org_id"`
}

ABXConstantResourceModel describes the resource data model.

type ABXSecretResource

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

ABXSecretResource defines the resource implementation.

func (*ABXSecretResource) Configure

func (*ABXSecretResource) Create

func (*ABXSecretResource) Delete

func (*ABXSecretResource) Metadata

func (*ABXSecretResource) Read

func (*ABXSecretResource) Schema

func (*ABXSecretResource) Update

type ABXSecretResourceAPIModel

type ABXSecretResourceAPIModel struct {
	Id            string `json:"id"`
	Name          string `json:"name"`
	Value         string `json:"value"`
	Encrypted     bool   `json:"encrypted"`
	OrgId         string `json:"orgId"`
	CreatedMillis int64  `json:"createdMillis"`
}

ABXSecretResourceAPIModel describes the resource API model.

type ABXSecretResourceModel

type ABXSecretResourceModel struct {
	Id        types.String `tfsdk:"id"`
	Name      types.String `tfsdk:"name"`
	Value     types.String `tfsdk:"value"`
	Encrypted types.Bool   `tfsdk:"encrypted"`
	OrgId     types.String `tfsdk:"org_id"`
}

ABXSecretResourceModel describes the resource data model.

type AccessTokenResponse

type AccessTokenResponse struct {
	TokenType string `json:"tokenType"`
	Token     string `json:"token"`
}

type AriaClientConfig

type AriaClientConfig struct {

	// Host must be a the URL to the base of the API.
	Host string

	RefreshToken string `datapolicy:"token"`
	AccessToken  string `datapolicy:"token"`

	// Transport Layer.
	Insecure bool

	// UserAgent is an optional field that specifies the caller of this request.
	UserAgent string

	Context context.Context
}

func (*AriaClientConfig) Check

func (cfg *AriaClientConfig) Check() error

func (*AriaClientConfig) Client

func (cfg *AriaClientConfig) Client() *resty.Client

func (*AriaClientConfig) GetAccessToken

func (cfg *AriaClientConfig) GetAccessToken() error

type AriaProvider

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

AriaProvider defines the provider implementation.

func (*AriaProvider) Configure

func (*AriaProvider) DataSources

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

func (*AriaProvider) Functions

func (p *AriaProvider) Functions(ctx context.Context) []func() function.Function

func (*AriaProvider) Metadata

func (*AriaProvider) Resources

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

func (*AriaProvider) Schema

type AriaProviderModel

type AriaProviderModel struct {
	Host         types.String `tfsdk:"host"`
	Insecure     types.Bool   `tfsdk:"insecure"`
	RefreshToken types.String `tfsdk:"refresh_token"`
	AccessToken  types.String `tfsdk:"access_token"`
}

AriaProviderModel describes the provider data model.

type ExampleFunction

type ExampleFunction struct{}

func (ExampleFunction) Definition

func (ExampleFunction) Metadata

func (ExampleFunction) Run

type IconDataSource

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

IconDataSource defines the data source implementation.

func (*IconDataSource) Configure

func (*IconDataSource) Metadata

func (*IconDataSource) Read

func (*IconDataSource) Schema

type IconResource

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

IconResource defines the resource implementation.

func (*IconResource) Configure

func (*IconResource) Create

func (*IconResource) Delete

func (*IconResource) ImportState

func (*IconResource) Metadata

func (*IconResource) Read

func (*IconResource) Schema

func (*IconResource) Update

type IconResourceModel

type IconResourceModel struct {
	Id      types.String `tfsdk:"id"`
	Content types.String `tfsdk:"content"`
}

IconResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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