client

package
v0.0.0-...-f86ded0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleResponseCleanup

func HandleResponseCleanup(r *opensearchapi.Response)

func ParseResponse

func ParseResponse(osResp *opensearchapi.Response, sink interface{}, okCodes ...int) error

Types

type APIStatusResponse

type APIStatusResponse struct {
	Status   string                  `json:"status"`
	Message  string                  `json:"message"`
	APIError *APIStatusResponseError `json:"error"`

	WarningsHeader []string `json:"-"`
}

func (APIStatusResponse) AppendDiagnostics

func (e APIStatusResponse) AppendDiagnostics(d diag.Diagnostics)

func (APIStatusResponse) Error

func (e APIStatusResponse) Error() string

func (APIStatusResponse) HasErrors

func (e APIStatusResponse) HasErrors() bool

func (APIStatusResponse) String

func (e APIStatusResponse) String() string

type APIStatusResponseError

type APIStatusResponseError struct {
	RootCause []APIStatusResponseErrorRootCause `json:"root_cause"`
}

func (APIStatusResponseError) Error

func (e APIStatusResponseError) Error() string

type APIStatusResponseErrorRootCause

type APIStatusResponseErrorRootCause struct {
	Type   string `json:"type"`
	Reason string `json:"reason"`
}

func (APIStatusResponseErrorRootCause) Error

func (APIStatusResponseErrorRootCause) String

type PluginSecurityRole

type PluginSecurityRole struct {
	RoleName string `json:"-" tfsdk:"-"`

	Description string `json:"description" tfsdk:"description"`

	ClusterPermissions []string                             `json:"cluster_permissions" tfsdk:"cluster_permissions"`
	IndexPermissions   []PluginSecurityRoleIndexPermission  `json:"index_permissions" tfsdk:"index_permissions"`
	TenantPermissions  []PluginSecurityRoleTenantPermission `json:"tenant_permissions" tfsdk:"tenant_permissions"`

	Reserved *bool `json:"reserved,omitempty" tfsdk:"reserved"`
	Hidden   *bool `json:"hidden,omitempty" tfsdk:"hidden"`
	Static   *bool `json:"static,omitempty" tfsdk:"static"`
}

type PluginSecurityRoleDelete

type PluginSecurityRoleDelete func(o ...func(*PluginSecurityRoleDeleteRequest)) (*opensearchapi.Response, error)

func (PluginSecurityRoleDelete) WithContext

func (PluginSecurityRoleDelete) WithHeader

func (PluginSecurityRoleDelete) WithName

type PluginSecurityRoleDeleteRequest

type PluginSecurityRoleDeleteRequest struct {
	Name string

	Header http.Header
	// contains filtered or unexported fields
}

func (*PluginSecurityRoleDeleteRequest) Do

type PluginSecurityRoleIndexPermission

type PluginSecurityRoleIndexPermission struct {
	IndexPatterns  []string `json:"index_patterns" tfsdk:"index_patterns"`
	DLS            string   `json:"dls" tfsdk:"dls"`
	FLS            string   `json:"fls" tfsdk:"fls"`
	MaskedFields   []string `json:"masked_fields" tfsdk:"masked_fields"`
	AllowedActions []string `json:"allowed_actions" tfsdk:"allowed_actions"`
}

type PluginSecurityRoleTenantPermission

type PluginSecurityRoleTenantPermission struct {
	TenantPatterns []string `json:"tenant_patterns" tfsdk:"tenant_patterns"`
	AllowedActions []string `json:"allowed_actions" tfsdk:"allowed_actions"`
}

type PluginSecurityRoleUpsert

type PluginSecurityRoleUpsert func(o ...func(request *PluginSecurityRoleUpsertRequest)) (*opensearchapi.Response, error)

func (PluginSecurityRoleUpsert) WithBody

func (PluginSecurityRoleUpsert) WithContext

func (PluginSecurityRoleUpsert) WithHeader

func (PluginSecurityRoleUpsert) WithName

type PluginSecurityRoleUpsertRequest

type PluginSecurityRoleUpsertRequest struct {
	Name string

	Body io.Reader

	Header http.Header
	// contains filtered or unexported fields
}

func (*PluginSecurityRoleUpsertRequest) Do

type PluginSecurityRolesAPIResponse

type PluginSecurityRolesAPIResponse map[string]PluginSecurityRole

type PluginSecurityRolesGet

type PluginSecurityRolesGet func(o ...func(*PluginSecurityRolesGetRequest)) (*opensearchapi.Response, error)

func (PluginSecurityRolesGet) WithContext

func (PluginSecurityRolesGet) WithHeader

func (PluginSecurityRolesGet) WithName

type PluginSecurityRolesGetRequest

type PluginSecurityRolesGetRequest struct {
	Name string

	Header http.Header
	// contains filtered or unexported fields
}

func (PluginSecurityRolesGetRequest) Do

type TerraformLogger

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

func NewTerraformLogger

func NewTerraformLogger(provCTX context.Context, requestBodyEnabled, responseBodyEnabled bool) TerraformLogger

func (TerraformLogger) LogRoundTrip

func (tl TerraformLogger) LogRoundTrip(req *http.Request, resp *http.Response, err error, start time.Time, dur time.Duration) error

func (TerraformLogger) RequestBodyEnabled

func (tl TerraformLogger) RequestBodyEnabled() bool

func (TerraformLogger) ResponseBodyEnabled

func (tl TerraformLogger) ResponseBodyEnabled() bool

Jump to

Keyboard shortcuts

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