Documentation ¶
Index ¶
- type Actiongroup
- type ActiongroupService
- func (s *ActiongroupService) Create(ctx context.Context, name string) error
- func (s *ActiongroupService) Delete(ctx context.Context, name string) error
- func (s *ActiongroupService) Get(ctx context.Context, name string) (*Actiongroup, error)
- func (s *ActiongroupService) List(ctx context.Context) (*[]Actiongroup, error)
- func (s *ActiongroupService) Update(ctx context.Context, name string, patches *[]common.Patch) error
- func (s *ActiongroupService) UpdateBatch(ctx context.Context, patches *[]common.Patch) error
- type ActiongroupServiceInterface
- type Health
- type HealthService
- type HealthServiceInterface
- type IndexPermissions
- type Role
- type RoleMapping
- type RoleMappingRelations
- type RolePermissions
- type RoleService
- func (s *RoleService) Create(ctx context.Context, name string, rolePermissions *RolePermissions) error
- func (s *RoleService) Delete(ctx context.Context, name string) error
- func (s *RoleService) Get(ctx context.Context, name string) (*Role, error)
- func (s *RoleService) List(ctx context.Context) ([]*Role, error)
- func (s *RoleService) Update(ctx context.Context, name string, patches *[]common.Patch) error
- func (s *RoleService) UpdateBatch(ctx context.Context, patches *[]common.Patch) error
- type RoleServiceInterface
- type RolesmappingService
- func (s *RolesmappingService) Create(ctx context.Context, name string, roleMappingRelations *RoleMappingRelations) error
- func (s *RolesmappingService) Delete(ctx context.Context, name string) error
- func (s *RolesmappingService) Get(ctx context.Context, name string) (*RoleMapping, error)
- func (s *RolesmappingService) List(ctx context.Context) (*[]RoleMapping, error)
- func (s *RolesmappingService) Update(ctx context.Context, name string, patches *[]common.Patch) error
- func (s *RolesmappingService) UpdateBatch(ctx context.Context, patches *[]common.Patch) error
- type RolesmappingServiceInterface
- type Tenant
- type TenantPermissions
- type TenantService
- func (s *TenantService) Create(ctx context.Context, name string) error
- func (s *TenantService) Delete(ctx context.Context, name string) error
- func (s *TenantService) Get(ctx context.Context, name string) (*Tenant, error)
- func (s *TenantService) List(ctx context.Context) (*[]Tenant, error)
- func (s *TenantService) Update(ctx context.Context, name string, patches *[]common.Patch) error
- func (s *TenantService) UpdateBatch(ctx context.Context, patches *[]common.Patch) error
- type TenantServiceInterface
- type User
- type UserCreate
- type UserService
- func (s *UserService) ChangePassword(ctx context.Context, name string, newPassword string) error
- func (s *UserService) Create(ctx context.Context, name string, userCreate *UserCreate) error
- func (s *UserService) Delete(ctx context.Context, name string) error
- func (s *UserService) Get(ctx context.Context, name string) (*User, error)
- func (s *UserService) List(ctx context.Context) (*[]User, error)
- func (s *UserService) Update(ctx context.Context, name string, patches *[]common.Patch) error
- func (s *UserService) UpdateBatch(ctx context.Context, patches *[]common.Patch) error
- type UserServiceInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actiongroup ¶
type ActiongroupService ¶
func (*ActiongroupService) Create ¶
func (s *ActiongroupService) Create(ctx context.Context, name string) error
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#
func (*ActiongroupService) Delete ¶
func (s *ActiongroupService) Delete(ctx context.Context, name string) error
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#
func (*ActiongroupService) Get ¶
func (s *ActiongroupService) Get(ctx context.Context, name string) (*Actiongroup, error)
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#
func (*ActiongroupService) List ¶
func (s *ActiongroupService) List(ctx context.Context) (*[]Actiongroup, error)
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#
func (*ActiongroupService) Update ¶
func (s *ActiongroupService) Update(ctx context.Context, name string, patches *[]common.Patch) error
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#
func (*ActiongroupService) UpdateBatch ¶
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#
type ActiongroupServiceInterface ¶
type ActiongroupServiceInterface interface { Get(ctx context.Context, name string) (*Actiongroup, error) List(ctx context.Context) (*[]Actiongroup, error) Create(ctx context.Context, name string) error common.Modifyable }
type HealthService ¶
type HealthServiceInterface ¶
type IndexPermissions ¶
type RoleMapping ¶
type RoleMapping struct { Name string IsReserved bool `json:"reserved"` IsHidden bool `json:"hidden"` Description string `json:"description"` RoleMappingRelations }
type RoleMappingRelations ¶
type RolePermissions ¶
type RolePermissions struct { ClusterPermissions []string `json:"cluster_permissions,omitempty"` IndexPermissions *[]IndexPermissions `json:"index_permissions,omitempty"` TenantPermissions *[]TenantPermissions `json:"tenant_permissions,omitempty"` }
type RoleService ¶
func (*RoleService) Create ¶
func (s *RoleService) Create(ctx context.Context, name string, rolePermissions *RolePermissions) error
Create a role with permissions
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#create-role
func (*RoleService) Delete ¶
func (s *RoleService) Delete(ctx context.Context, name string) error
Delete a role by name
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#delete-role
func (*RoleService) Get ¶
Get a single role by name
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#get-role
func (*RoleService) List ¶
func (s *RoleService) List(ctx context.Context) ([]*Role, error)
List all roles
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#get-roles
func (*RoleService) Update ¶
Update a role
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#patch-role
func (*RoleService) UpdateBatch ¶
Update multiple roles at once
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#patch-roles
type RoleServiceInterface ¶
type RolesmappingService ¶
func (*RolesmappingService) Create ¶
func (s *RolesmappingService) Create(ctx context.Context, name string, roleMappingRelations *RoleMappingRelations) error
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#
func (*RolesmappingService) Delete ¶
func (s *RolesmappingService) Delete(ctx context.Context, name string) error
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#
func (*RolesmappingService) Get ¶
func (s *RolesmappingService) Get(ctx context.Context, name string) (*RoleMapping, error)
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#
func (*RolesmappingService) List ¶
func (s *RolesmappingService) List(ctx context.Context) (*[]RoleMapping, error)
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#
func (*RolesmappingService) Update ¶
func (s *RolesmappingService) Update(ctx context.Context, name string, patches *[]common.Patch) error
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#
func (*RolesmappingService) UpdateBatch ¶
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#
type RolesmappingServiceInterface ¶
type RolesmappingServiceInterface interface { Get(ctx context.Context, name string) (*RoleMapping, error) List(ctx context.Context) (*[]RoleMapping, error) Create(ctx context.Context, name string, roleMappingRelations *RoleMappingRelations) error common.Modifyable }
type TenantPermissions ¶
type TenantService ¶
func (*TenantService) Create ¶
func (s *TenantService) Create(ctx context.Context, name string) error
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#create-tenant
func (*TenantService) Delete ¶
func (s *TenantService) Delete(ctx context.Context, name string) error
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#delete-tenant
func (*TenantService) Get ¶
Get a single tenant by name
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#get-tenant
func (*TenantService) List ¶
func (s *TenantService) List(ctx context.Context) (*[]Tenant, error)
List all tenants
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#get-tenants
func (*TenantService) Update ¶
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#patch-tenant
func (*TenantService) UpdateBatch ¶
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#patch-tenants
type TenantServiceInterface ¶
type User ¶
type User struct { Name string Hash string `json:"hash"` Reserved bool `json:"reserved"` Hidden bool `json:"hidden"` BackendRoles []string `json:"backend_roles"` OpenDistroRoles []string `json:"opendistro_security_roles"` Attributes map[string]string `json:"attributes"` Description string `json:"description"` Static bool `json:"static"` }
type UserCreate ¶
type UserService ¶
func (*UserService) ChangePassword ¶
ChangePassword applies the new password to the user provided by name
func (*UserService) Create ¶
func (s *UserService) Create(ctx context.Context, name string, userCreate *UserCreate) error
Create or replace the specified user. Password can be submitted in plain text (password) or hashed (hash). If a plain text password is submitted, the Security Plugin will do the hashing.
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#create-user
func (*UserService) Delete ¶
func (s *UserService) Delete(ctx context.Context, name string) error
Delete a user by name
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#delete-user
func (*UserService) Get ¶
Get a single user by name
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#get-user
func (*UserService) List ¶
func (s *UserService) List(ctx context.Context) (*[]User, error)
List all users
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#get-users
func (*UserService) Update ¶
Update a user by name and providing an update patch
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#patch-user
func (*UserService) UpdateBatch ¶
Update multiple users at once
see: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/api/#patch-users