Documentation ¶
Index ¶
- func ApplyPolicy(request *msgs.ApplyPolicyRequest, ns, pgouser string) msgs.ApplyPolicyResponse
- func ApplyPolicyHandler(w http.ResponseWriter, r *http.Request)
- func CreatePolicy(client pgo.Interface, policyName, policyURL, policyFile, ns, pgouser string) (bool, error)
- func CreatePolicyHandler(w http.ResponseWriter, r *http.Request)
- func DeletePolicy(client pgo.Interface, policyName, ns, pgouser string) msgs.DeletePolicyResponse
- func DeletePolicyHandler(w http.ResponseWriter, r *http.Request)
- func ShowPolicy(client pgo.Interface, name string, allflags bool, ns string) crv1.PgpolicyList
- func ShowPolicyHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyPolicy ¶
func ApplyPolicy(request *msgs.ApplyPolicyRequest, ns, pgouser string) msgs.ApplyPolicyResponse
ApplyPolicy ... pgo apply mypolicy --selector=name=mycluster
func ApplyPolicyHandler ¶
func ApplyPolicyHandler(w http.ResponseWriter, r *http.Request)
ApplyPolicyHandler ... pgo apply mypolicy --selector=name=mycluster
func CreatePolicy ¶
func CreatePolicy(client pgo.Interface, policyName, policyURL, policyFile, ns, pgouser string) (bool, error)
CreatePolicy ...
func CreatePolicyHandler ¶
func CreatePolicyHandler(w http.ResponseWriter, r *http.Request)
CreatePolicyHandler ... pgo create policy parameters secretfrom
func DeletePolicy ¶
func DeletePolicy(client pgo.Interface, policyName, ns, pgouser string) msgs.DeletePolicyResponse
DeletePolicy ...
func DeletePolicyHandler ¶
func DeletePolicyHandler(w http.ResponseWriter, r *http.Request)
DeletePolicyHandler ... returns a DeletePolicyResponse
func ShowPolicy ¶
ShowPolicy ...
func ShowPolicyHandler ¶
func ShowPolicyHandler(w http.ResponseWriter, r *http.Request)
ShowPolicyHandler ... returns a ShowPolicyResponse
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.