role

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const CurrentSchemaVersion = 1

Variables

View Source
var (
	MinSupportedRemoteIndicesVersion = version.Must(version.NewVersion("8.10.0"))
	MinSupportedDescriptionVersion   = version.Must(version.NewVersion("8.15.0"))
)

Functions

func GetSchema

func GetSchema(version int64) schema.Schema

func NewRoleResource

func NewRoleResource() resource.Resource

Types

type ApplicationData

type ApplicationData struct {
	Application types.String `tfsdk:"application"`
	Privileges  types.Set    `tfsdk:"privileges"`
	Resources   types.Set    `tfsdk:"resources"`
}

type CommonIndexPermsData

type CommonIndexPermsData struct {
	FieldSecurity types.Object         `tfsdk:"field_security"`
	Names         types.Set            `tfsdk:"names"`
	Privileges    types.Set            `tfsdk:"privileges"`
	Query         jsontypes.Normalized `tfsdk:"query"`
}

type FieldSecurityData

type FieldSecurityData struct {
	Grant  types.Set `tfsdk:"grant"`
	Except types.Set `tfsdk:"except"`
}

type IndexPermsData

type IndexPermsData struct {
	CommonIndexPermsData
	AllowRestrictedIndices types.Bool `tfsdk:"allow_restricted_indices"`
}

type RemoteIndexPermsData

type RemoteIndexPermsData struct {
	CommonIndexPermsData
	Clusters types.Set `tfsdk:"clusters"`
}

type RoleData

type RoleData struct {
	Id                      types.String         `tfsdk:"id"`
	ElasticsearchConnection types.List           `tfsdk:"elasticsearch_connection"`
	Name                    types.String         `tfsdk:"name"`
	Description             types.String         `tfsdk:"description"`
	Applications            types.Set            `tfsdk:"applications"`
	Global                  jsontypes.Normalized `tfsdk:"global"`
	Cluster                 types.Set            `tfsdk:"cluster"`
	Indices                 types.Set            `tfsdk:"indices"`
	RemoteIndices           types.Set            `tfsdk:"remote_indices"`
	Metadata                jsontypes.Normalized `tfsdk:"metadata"`
	RunAs                   types.Set            `tfsdk:"run_as"`
}

Jump to

Keyboard shortcuts

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