Documentation ¶
Index ¶
- Constants
- type ExtendedClient
- type ISMApi
- func (c *ISMApi) CreateISM(ctx context.Context, name string, body io.Reader) (*opensearchapi.Response, error)
- func (c *ISMApi) GetISM(ctx context.Context, name string) (*opensearchapi.Response, error)
- func (c *ISMApi) UpdateISM(ctx context.Context, name string, body io.Reader, seqNo int, primaryTerm int) (*opensearchapi.Response, error)
- type Reconciler
- func (r *Reconciler) ImportKibanaObjects(indexName string, docID string, version string, kibanaObjects string) error
- func (r *Reconciler) MaybeBootstrapIndex(prefix string, alias string) error
- func (r *Reconciler) MaybeCreateIndex(name string, settings map[string]opensearchapiext.TemplateMappingsSpec) error
- func (r *Reconciler) MaybeCreateIndexTemplate(template *opensearchapiext.IndexTemplateSpec) error
- func (r *Reconciler) MaybeCreateRole(role opensearchapiext.RoleSpec) error
- func (r *Reconciler) MaybeCreateUser(user opensearchapiext.UserSpec) error
- func (r *Reconciler) MaybeDeleteRole(rolename string) error
- func (r *Reconciler) MaybeDeleteUser(username string) error
- func (r *Reconciler) MaybeRemoveRolesMapping(roleName string, userName string) error
- func (r *Reconciler) MaybeUpdateRolesMapping(roleName string, userName string) error
- func (r *Reconciler) ReconcileISM(policy interface{}) error
- type SecurityAPI
- func (c *SecurityAPI) CreateRole(ctx context.Context, name string, body io.Reader) (*opensearchapi.Response, error)
- func (c *SecurityAPI) CreateRolesMapping(ctx context.Context, name string, body io.Reader) (*opensearchapi.Response, error)
- func (c *SecurityAPI) CreateUser(ctx context.Context, name string, body io.Reader) (*opensearchapi.Response, error)
- func (c *SecurityAPI) DeleteRole(ctx context.Context, name string) (*opensearchapi.Response, error)
- func (c *SecurityAPI) DeleteRolesMapping(ctx context.Context, name string) (*opensearchapi.Response, error)
- func (c *SecurityAPI) DeleteUser(ctx context.Context, name string) (*opensearchapi.Response, error)
- func (c *SecurityAPI) GetRole(ctx context.Context, name string) (*opensearchapi.Response, error)
- func (c *SecurityAPI) GetRolesMapping(ctx context.Context, name string) (*opensearchapi.Response, error)
- func (c *SecurityAPI) GetUser(ctx context.Context, name string) (*opensearchapi.Response, error)
Constants ¶
View Source
const (
ISMChangeVersion = "1.1.0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtendedClient ¶
type ExtendedClient struct { *opensearch.Client ISM *ISMApi Security *SecurityAPI }
type ISMApi ¶
type ISMApi struct {
*opensearch.Client
}
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
func NewReconciler ¶
func (*Reconciler) ImportKibanaObjects ¶
func (*Reconciler) MaybeBootstrapIndex ¶
func (r *Reconciler) MaybeBootstrapIndex(prefix string, alias string) error
func (*Reconciler) MaybeCreateIndex ¶
func (r *Reconciler) MaybeCreateIndex(name string, settings map[string]opensearchapiext.TemplateMappingsSpec) error
func (*Reconciler) MaybeCreateIndexTemplate ¶
func (r *Reconciler) MaybeCreateIndexTemplate(template *opensearchapiext.IndexTemplateSpec) error
func (*Reconciler) MaybeCreateRole ¶
func (r *Reconciler) MaybeCreateRole(role opensearchapiext.RoleSpec) error
func (*Reconciler) MaybeCreateUser ¶
func (r *Reconciler) MaybeCreateUser(user opensearchapiext.UserSpec) error
func (*Reconciler) MaybeDeleteRole ¶ added in v0.4.0
func (r *Reconciler) MaybeDeleteRole(rolename string) error
func (*Reconciler) MaybeDeleteUser ¶ added in v0.4.0
func (r *Reconciler) MaybeDeleteUser(username string) error
func (*Reconciler) MaybeRemoveRolesMapping ¶ added in v0.4.0
func (r *Reconciler) MaybeRemoveRolesMapping(roleName string, userName string) error
func (*Reconciler) MaybeUpdateRolesMapping ¶
func (r *Reconciler) MaybeUpdateRolesMapping(roleName string, userName string) error
func (*Reconciler) ReconcileISM ¶
func (r *Reconciler) ReconcileISM(policy interface{}) error
type SecurityAPI ¶
type SecurityAPI struct {
*opensearch.Client
}
func (*SecurityAPI) CreateRole ¶
func (c *SecurityAPI) CreateRole(ctx context.Context, name string, body io.Reader) (*opensearchapi.Response, error)
func (*SecurityAPI) CreateRolesMapping ¶
func (c *SecurityAPI) CreateRolesMapping(ctx context.Context, name string, body io.Reader) (*opensearchapi.Response, error)
func (*SecurityAPI) CreateUser ¶
func (c *SecurityAPI) CreateUser(ctx context.Context, name string, body io.Reader) (*opensearchapi.Response, error)
func (*SecurityAPI) DeleteRole ¶ added in v0.4.0
func (c *SecurityAPI) DeleteRole(ctx context.Context, name string) (*opensearchapi.Response, error)
func (*SecurityAPI) DeleteRolesMapping ¶ added in v0.4.0
func (c *SecurityAPI) DeleteRolesMapping(ctx context.Context, name string) (*opensearchapi.Response, error)
func (*SecurityAPI) DeleteUser ¶ added in v0.4.0
func (c *SecurityAPI) DeleteUser(ctx context.Context, name string) (*opensearchapi.Response, error)
func (*SecurityAPI) GetRole ¶
func (c *SecurityAPI) GetRole(ctx context.Context, name string) (*opensearchapi.Response, error)
func (*SecurityAPI) GetRolesMapping ¶
func (c *SecurityAPI) GetRolesMapping(ctx context.Context, name string) (*opensearchapi.Response, error)
func (*SecurityAPI) GetUser ¶
func (c *SecurityAPI) GetUser(ctx context.Context, name string) (*opensearchapi.Response, error)
Click to show internal directories.
Click to hide internal directories.