Documentation ¶
Index ¶
- Variables
- func ForwardPort(ctx context.Context, restConfig *rest.Config, clientset *kubernetes.Clientset, ...) error
- type ApplyOperation
- type ApplyRequest
- type ApplyResponse
- type DestroyOperation
- type DestroyRequest
- type DestroyResponse
- type PortForwardOperation
- type PortForwardRequest
- type PreviewOperation
- type PreviewRequest
- type PreviewResponse
- type WatchOperation
- type WatchRequest
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type ApplyOperation ¶
func (*ApplyOperation) Apply ¶
func (ao *ApplyOperation) Apply(req *ApplyRequest) (rsp *ApplyResponse, s v1.Status)
Apply means turn all actual infra resources into the desired state described in the request by invoking a specified Runtime. Like other operations, Apply has 3 main steps during the whole process.
- parse resources and their relationship to build a DAG and should take care of those resources that will be deleted
- walk this DAG and execute all graph nodes concurrently, besides the entire process should follow dependencies in this DAG
- during the execution of each node, it will invoke different runtime according to the resource type
type ApplyResponse ¶
type DestroyOperation ¶
func (*DestroyOperation) Destroy ¶
func (do *DestroyOperation) Destroy(req *DestroyRequest) (rsp *DestroyResponse, s v1.Status)
Destroy will delete all resources in this request. The whole process is similar to the operation Apply, but every node's execution is deleting the resource.
type DestroyResponse ¶
type PortForwardOperation ¶
func (*PortForwardOperation) PortForward ¶
func (bpo *PortForwardOperation) PortForward(req *PortForwardRequest) error
type PreviewOperation ¶
func (*PreviewOperation) Preview ¶
func (po *PreviewOperation) Preview(req *PreviewRequest) (rsp *PreviewResponse, s v1.Status)
Preview compute all changes between resources in request and the actual infrastructure. The whole process is similar to the operation Apply, but the execution of each node is mocked and will not actually invoke the Runtime
type PreviewRequest ¶
type PreviewResponse ¶
type PreviewResponse struct {
Order *models.ChangeOrder
}
type WatchOperation ¶
func (*WatchOperation) Watch ¶
func (wo *WatchOperation) Watch(req *WatchRequest) error
Click to show internal directories.
Click to hide internal directories.