provider

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 29 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BehaviorHidden     = types.StringValue("hidden")
	BehaviorAnonymized = types.StringValue("anonymized")

	FunctionLinear      = types.StringValue("linear")
	FunctionLogarithmic = types.StringValue("logarithmic")
)

Functions

func FromAnon added in v1.0.0

func FromAnon(b *bool) types.String

func GetAnon added in v1.0.0

func GetAnon(str types.String) *bool

func New

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

func NewChallengeDataSource

func NewChallengeDataSource() datasource.DataSource

func NewChallengeResource

func NewChallengeResource() resource.Resource

func NewFileResource added in v1.0.0

func NewFileResource() resource.Resource

func NewFlagResource added in v1.0.0

func NewFlagResource() resource.Resource

func NewHintResource added in v1.0.0

func NewHintResource() resource.Resource

func NewTeamDataSource

func NewTeamDataSource() datasource.DataSource

func NewTeamResource

func NewTeamResource() resource.Resource

func NewUserDataSource

func NewUserDataSource() datasource.DataSource

func NewUserResource

func NewUserResource() resource.Resource

Types

type CTFdProvider

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

func (*CTFdProvider) Configure

func (*CTFdProvider) DataSources

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

func (*CTFdProvider) Metadata

func (*CTFdProvider) Resources

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

func (*CTFdProvider) Schema

type CTFdProviderModel

type CTFdProviderModel struct {
	URL     types.String `tfsdk:"url"`
	Session types.String `tfsdk:"session"`
	Nonce   types.String `tfsdk:"nonce"`
	APIKey  types.String `tfsdk:"api_key"`
}

type RequirementsSubresourceModel added in v1.0.0

type RequirementsSubresourceModel struct {
	Behavior      types.String   `tfsdk:"behavior"`
	Prerequisites []types.String `tfsdk:"prerequisites"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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