Documentation ¶
Index ¶
- type K8sGateKeeperClient
- func (k *K8sGateKeeperClient) AddNamedPolicies(ptype string, rules [][]string) (bool, error)
- func (k *K8sGateKeeperClient) AddNamedPolicy(ptype string, rule []string) (bool, error)
- func (k *K8sGateKeeperClient) AddPolicies(rules [][]string) (bool, error)
- func (k *K8sGateKeeperClient) AddPolicy(rule []string) (bool, error)
- func (k *K8sGateKeeperClient) CreateModel(modelText string) error
- func (k *K8sGateKeeperClient) DeleteModel() error
- func (k *K8sGateKeeperClient) GetModel() (k8sauthzv1.CasbinModelSpec, error)
- func (k *K8sGateKeeperClient) GetNamedPolicy(ptype string) ([][]string, error)
- func (k *K8sGateKeeperClient) GetPolicy() ([][]string, error)
- func (k *K8sGateKeeperClient) ModelName(modelName string) *K8sGateKeeperClient
- func (k *K8sGateKeeperClient) Namespace(namespace string) *K8sGateKeeperClient
- func (k *K8sGateKeeperClient) RemoveNamedPolicies(ptype string, rules [][]string) (bool, error)
- func (k *K8sGateKeeperClient) RemoveNamedPoliciy(ptype string, rule []string) (bool, error)
- func (k *K8sGateKeeperClient) RemovePolicies(rules [][]string) (bool, error)
- func (k *K8sGateKeeperClient) RemovePolicy(rule []string) (bool, error)
- func (k *K8sGateKeeperClient) SetNamedPolicies(ptype string, rules [][]string) (bool, error)
- func (k *K8sGateKeeperClient) SetNamedPolicy(ptype string, rule []string) (bool, error)
- func (k *K8sGateKeeperClient) SetPolicies(rules [][]string) (bool, error)
- func (k *K8sGateKeeperClient) SetPolicy(rule []string) (bool, error)
- func (k *K8sGateKeeperClient) UpdateModel(spec k8sauthzv1.CasbinModelSpec) error
- func (k *K8sGateKeeperClient) UpdateNamedPolicies(ptype string, p1 [][]string, p2 [][]string) (bool, error)
- func (k *K8sGateKeeperClient) UpdateNamedPolicy(ptype string, p1 []string, p2 []string) (bool, error)
- func (k *K8sGateKeeperClient) UpdatePolicies(oldRules [][]string, newRules [][]string) (bool, error)
- func (k *K8sGateKeeperClient) UpdatePolicy(oldRule []string, newRule []string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sGateKeeperClient ¶
type K8sGateKeeperClient struct { Clientset *versioned.Clientset // contains filtered or unexported fields }
func NewK8sGateKeeperClient ¶
func NewK8sGateKeeperClient(externalClient bool) (*K8sGateKeeperClient, error)
func (*K8sGateKeeperClient) AddNamedPolicies ¶
func (k *K8sGateKeeperClient) AddNamedPolicies(ptype string, rules [][]string) (bool, error)
func (*K8sGateKeeperClient) AddNamedPolicy ¶
func (k *K8sGateKeeperClient) AddNamedPolicy(ptype string, rule []string) (bool, error)
func (*K8sGateKeeperClient) AddPolicies ¶
func (k *K8sGateKeeperClient) AddPolicies(rules [][]string) (bool, error)
func (*K8sGateKeeperClient) AddPolicy ¶
func (k *K8sGateKeeperClient) AddPolicy(rule []string) (bool, error)
func (*K8sGateKeeperClient) CreateModel ¶
func (k *K8sGateKeeperClient) CreateModel(modelText string) error
func (*K8sGateKeeperClient) DeleteModel ¶
func (k *K8sGateKeeperClient) DeleteModel() error
func (*K8sGateKeeperClient) GetModel ¶
func (k *K8sGateKeeperClient) GetModel() (k8sauthzv1.CasbinModelSpec, error)
func (*K8sGateKeeperClient) GetNamedPolicy ¶
func (k *K8sGateKeeperClient) GetNamedPolicy(ptype string) ([][]string, error)
func (*K8sGateKeeperClient) GetPolicy ¶
func (k *K8sGateKeeperClient) GetPolicy() ([][]string, error)
func (*K8sGateKeeperClient) ModelName ¶
func (k *K8sGateKeeperClient) ModelName(modelName string) *K8sGateKeeperClient
func (*K8sGateKeeperClient) Namespace ¶
func (k *K8sGateKeeperClient) Namespace(namespace string) *K8sGateKeeperClient
func (*K8sGateKeeperClient) RemoveNamedPolicies ¶
func (k *K8sGateKeeperClient) RemoveNamedPolicies(ptype string, rules [][]string) (bool, error)
func (*K8sGateKeeperClient) RemoveNamedPoliciy ¶
func (k *K8sGateKeeperClient) RemoveNamedPoliciy(ptype string, rule []string) (bool, error)
func (*K8sGateKeeperClient) RemovePolicies ¶
func (k *K8sGateKeeperClient) RemovePolicies(rules [][]string) (bool, error)
func (*K8sGateKeeperClient) RemovePolicy ¶
func (k *K8sGateKeeperClient) RemovePolicy(rule []string) (bool, error)
func (*K8sGateKeeperClient) SetNamedPolicies ¶
func (k *K8sGateKeeperClient) SetNamedPolicies(ptype string, rules [][]string) (bool, error)
func (*K8sGateKeeperClient) SetNamedPolicy ¶
func (k *K8sGateKeeperClient) SetNamedPolicy(ptype string, rule []string) (bool, error)
func (*K8sGateKeeperClient) SetPolicies ¶
func (k *K8sGateKeeperClient) SetPolicies(rules [][]string) (bool, error)
func (*K8sGateKeeperClient) SetPolicy ¶
func (k *K8sGateKeeperClient) SetPolicy(rule []string) (bool, error)
func (*K8sGateKeeperClient) UpdateModel ¶
func (k *K8sGateKeeperClient) UpdateModel(spec k8sauthzv1.CasbinModelSpec) error
func (*K8sGateKeeperClient) UpdateNamedPolicies ¶
func (*K8sGateKeeperClient) UpdateNamedPolicy ¶
func (*K8sGateKeeperClient) UpdatePolicies ¶
func (k *K8sGateKeeperClient) UpdatePolicies(oldRules [][]string, newRules [][]string) (bool, error)
func (*K8sGateKeeperClient) UpdatePolicy ¶
func (k *K8sGateKeeperClient) UpdatePolicy(oldRule []string, newRule []string) (bool, error)
Click to show internal directories.
Click to hide internal directories.