Documentation ¶
Index ¶
- Constants
- type K8sPolicyService
- func (c *K8sPolicyService) CreateK8SPolicy(ctx context.Context, r *pb.CreateK8SPolicyRequest) (*pb.CreateK8SPolicyResponse, error)
- func (c *K8sPolicyService) DeleteK8SPolicy(ctx context.Context, r *pb.DeleteK8SPolicyRequest) (*pb.DeleteK8SPolicyResponse, error)
- func (c *K8sPolicyService) UpdateK8SPolicy(ctx context.Context, r *pb.UpdateK8SPolicyRequest) (*pb.UpdateK8SPolicyResponse, error)
Constants ¶
View Source
const (
ResourceType = "k8s_policy"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sPolicyService ¶
type K8sPolicyService struct { pb.UnimplementedKesselK8SPolicyServiceServer Ctl *resources.Usecase }
K8sPoliciesService handles requests for K8s Policies
func New ¶
func New(c *resources.Usecase) *K8sPolicyService
New creates a new K8sPoliciesService to handle requests for K8s Policies
func (*K8sPolicyService) CreateK8SPolicy ¶
func (c *K8sPolicyService) CreateK8SPolicy(ctx context.Context, r *pb.CreateK8SPolicyRequest) (*pb.CreateK8SPolicyResponse, error)
func (*K8sPolicyService) DeleteK8SPolicy ¶
func (c *K8sPolicyService) DeleteK8SPolicy(ctx context.Context, r *pb.DeleteK8SPolicyRequest) (*pb.DeleteK8SPolicyResponse, error)
func (*K8sPolicyService) UpdateK8SPolicy ¶
func (c *K8sPolicyService) UpdateK8SPolicy(ctx context.Context, r *pb.UpdateK8SPolicyRequest) (*pb.UpdateK8SPolicyResponse, error)
Click to show internal directories.
Click to hide internal directories.