splunkacs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() provider.Provider

New is a helper function to simplify provider server and testing implementation.

func NewHecTokenDataSource

func NewHecTokenDataSource() datasource.DataSource

func NewHecTokenResource

func NewHecTokenResource() resource.Resource

func NewIndexDataSource added in v0.1.0

func NewIndexDataSource() datasource.DataSource

func NewIndexResource added in v0.1.0

func NewIndexResource() resource.Resource

func NewStackStatusDataSource added in v0.4.0

func NewStackStatusDataSource() datasource.DataSource

Types

type AcsProvider

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

func (*AcsProvider) Configure

func (*AcsProvider) DataSources

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

func (*AcsProvider) Metadata

func (*AcsProvider) Resources

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

func (*AcsProvider) Schema added in v0.2.0

type AcsProviderModel

type AcsProviderModel struct {
	DeploymentName types.String `tfsdk:"deployment_name"`
	AuthToken      types.String `tfsdk:"token"`
}

type HecTokenResource

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

HecTokenResource defines the resource implementation.

func (*HecTokenResource) Configure

func (*HecTokenResource) Create

func (*HecTokenResource) Delete

func (*HecTokenResource) ImportState

func (*HecTokenResource) Metadata

func (*HecTokenResource) Read

func (*HecTokenResource) Schema added in v0.2.0

func (*HecTokenResource) Update

type HecTokenResourceModel

type HecTokenResourceModel struct {
	Id                types.String   `tfsdk:"id"`
	AllowedIndexes    []types.String `tfsdk:"allowed_indexes"`
	DefaultHost       types.String   `tfsdk:"default_host"`
	DefaultIndex      types.String   `tfsdk:"default_index"`
	DefaultSource     types.String   `tfsdk:"default_source"`
	DefaultSourcetype types.String   `tfsdk:"default_sourcetype"`
	Disabled          types.Bool     `tfsdk:"disabled"`
	Name              types.String   `tfsdk:"name"`
	UseACK            types.Bool     `tfsdk:"use_ack"`
	Token             types.String   `tfsdk:"token"`
}

HecTokenResourceModel describes the resource data model.

type HttpEventCollectorToken

type HttpEventCollectorToken struct {
	Id                types.String   `tfsdk:"id"`
	AllowedIndexes    []types.String `tfsdk:"allowed_indexes"`
	DefaultHost       types.String   `tfsdk:"default_host"`
	DefaultIndex      types.String   `tfsdk:"default_index"`
	DefaultSource     types.String   `tfsdk:"default_source"`
	DefaultSourcetype types.String   `tfsdk:"default_sourcetype"`
	Disabled          types.Bool     `tfsdk:"disabled"`
	Name              types.String   `tfsdk:"name"`
	UseACK            types.Bool     `tfsdk:"use_ack"`
	Token             types.String   `tfsdk:"token"`
}

HttpEventCollectorToken maps the HttpEventCollectorToken schema data

type Index added in v0.1.0

type Index struct {
	Id              types.String `tfsdk:"id"`
	Name            types.String `tfsdk:"name"`
	DataType        types.String `tfsdk:"data_type"`
	SearchableDays  types.Int64  `tfsdk:"searchable_days"`
	MaxDataSizeMb   types.Int64  `tfsdk:"max_data_size_mb"`
	TotalEventCount types.String `tfsdk:"total_event_count"`
	TotalRawSizeMb  types.String `tfsdk:"total_raw_size_mb"`
}

Index maps the Index schema data

type IndexResource added in v0.1.0

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

IndexResource defines the resource implementation.

func (*IndexResource) Configure added in v0.1.0

func (*IndexResource) Create added in v0.1.0

func (*IndexResource) Delete added in v0.1.0

func (*IndexResource) ImportState added in v0.1.0

func (*IndexResource) Metadata added in v0.1.0

func (*IndexResource) Read added in v0.1.0

func (*IndexResource) Schema added in v0.2.0

func (*IndexResource) Update added in v0.1.0

Jump to

Keyboard shortcuts

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