Documentation ¶
Index ¶
- Variables
- func ErrClientConfig(err error) error
- func ErrClientSet(err error) error
- func ErrInstallMesh(err error) error
- func ErrMeshConfig(err error) error
- func ErrPortForward(err error) error
- func ErrStreamEvent(err error) error
- func NewDocumentDecoder(r io.ReadCloser) io.ReadCloser
- type BaseHandler
- func (h *BaseHandler) ApplyKubernetesManifest(request OperationRequest, operation Operation, mergeData map[string]string, ...) error
- func (h *BaseHandler) CreateInstance(kubeconfig []byte, contextName string, ch *chan interface{}) error
- func (h *BaseHandler) CreateNamespace(isDelete bool, namespace string) error
- func (h *BaseHandler) GetName() string
- func (h *BaseHandler) ListOperations() (Operations, error)
- func (h *BaseHandler) StreamErr(e *Event, err error)
- func (h *BaseHandler) StreamInfo(e *Event)
- type Event
- type Handler
- type Operation
- type OperationRequest
- type Operations
- type Spec
- type YAMLDecoder
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrOpInvalid = errors.New(errors.ErrOpInvalid, "Invalid operation")
)
Functions ¶
func ErrClientConfig ¶
func ErrClientSet ¶
func ErrInstallMesh ¶
func ErrMeshConfig ¶
func ErrPortForward ¶
func ErrStreamEvent ¶
func NewDocumentDecoder ¶
func NewDocumentDecoder(r io.ReadCloser) io.ReadCloser
NewDocumentDecoder decodes YAML documents from the provided stream in chunks by converting each document (as defined by the YAML spec) into its own chunk. io.ErrShortBuffer will be returned if the entire buffer could not be read to assist the caller in framing the chunk.
Types ¶
type BaseHandler ¶
type BaseHandler struct { Config config.Handler Log logger.Handler Channel *chan interface{} KubeClient *kubernetes.Clientset DynamicKubeClient dynamic.Interface KubeConfigPath string SmiChart string }
func (*BaseHandler) ApplyKubernetesManifest ¶
func (h *BaseHandler) ApplyKubernetesManifest(request OperationRequest, operation Operation, mergeData map[string]string, templatePath string) error
func (*BaseHandler) CreateInstance ¶
func (h *BaseHandler) CreateInstance(kubeconfig []byte, contextName string, ch *chan interface{}) error
func (*BaseHandler) CreateNamespace ¶
func (h *BaseHandler) CreateNamespace(isDelete bool, namespace string) error
creates the namespace unless it is 'default', or it is a delete operation
func (*BaseHandler) GetName ¶
func (h *BaseHandler) GetName() string
func (*BaseHandler) ListOperations ¶
func (h *BaseHandler) ListOperations() (Operations, error)
func (*BaseHandler) StreamErr ¶
func (h *BaseHandler) StreamErr(e *Event, err error)
func (*BaseHandler) StreamInfo ¶
func (h *BaseHandler) StreamInfo(e *Event)
type OperationRequest ¶
type Operations ¶
type YAMLDecoder ¶
type YAMLDecoder struct {
// contains filtered or unexported fields
}
YAMLDecoder reads chunks of objects and returns ErrShortBuffer if the data is not sufficient. borrowed from APIMachinery
Source Files ¶
Click to show internal directories.
Click to hide internal directories.