Documentation ¶
Index ¶
- type Context
- type ErrCommandExecute
- type ErrCommandExitCode
- type ErrInvalidResponse
- type ErrMissingCommand
- type ErrNotExist
- type ErrTimeout
- type ErrUnknownStatus
- type ErrUnsupportedKind
- type Namespace
- type Resource
- func (r *Resource) Create(name, kind, rawContent string) (exists bool, err error)
- func (r *Resource) Delete(name, kind string) (exists bool, err error)
- func (r *Resource) Exists(name, kind string) (exists bool, err error)
- func (r *Resource) GetStatus(name, kind string) (RsStatus, error)
- func (r *Resource) Logs(name, containerName string, stdout io.Writer, stderr io.Writer) error
- func (r *Resource) Update(name, kind, rawContent string) (updateStatus UpdateStatus, err error)
- func (r *Resource) Upgrade(name, kind, rawContent string) (updateStatus UpdateStatus, err error)
- func (r *Resource) Wait(name, kind string) (success bool, err error)
- type RsStatus
- type Service
- type UpdateStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context .
func NewContext ¶
NewContext .
type ErrCommandExecute ¶
ErrCommandExecute .
func (ErrCommandExecute) Error ¶
func (err ErrCommandExecute) Error() string
type ErrCommandExitCode ¶
type ErrCommandExitCode struct {
ExitCode int
}
ErrCommandExitCode .
func (ErrCommandExitCode) Error ¶
func (err ErrCommandExitCode) Error() string
type ErrInvalidResponse ¶
ErrInvalidResponse .
func (ErrInvalidResponse) Error ¶
func (err ErrInvalidResponse) Error() string
type ErrMissingCommand ¶
type ErrMissingCommand struct {
Command string
}
ErrMissingCommand .
func (ErrMissingCommand) Error ¶
func (err ErrMissingCommand) Error() string
type ErrTimeout ¶
type ErrTimeout struct { }
ErrTimeout .
func (ErrTimeout) Error ¶
func (err ErrTimeout) Error() string
type ErrUnknownStatus ¶
ErrUnknownStatus .
func (ErrUnknownStatus) Error ¶
func (err ErrUnknownStatus) Error() string
type ErrUnsupportedKind ¶
type ErrUnsupportedKind struct {
Kind string
}
ErrUnsupportedKind .
func (ErrUnsupportedKind) Error ¶
func (err ErrUnsupportedKind) Error() string
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace operations
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource operations
func (*Resource) Update ¶
func (r *Resource) Update(name, kind, rawContent string) (updateStatus UpdateStatus, err error)
Update .
type RsStatus ¶
type RsStatus int
RsStatus .
type Service ¶ added in v1.0.8
type Service struct {
// contains filtered or unexported fields
}
Service operations
type UpdateStatus ¶
type UpdateStatus int
UpdateStatus .
const ( UpdateStatusNotExist UpdateStatus = iota UpdateStatusExisted UpdateStatusSkipped )
UpdateStatus values
Click to show internal directories.
Click to hide internal directories.