Documentation
¶
Index ¶
Constants ¶
View Source
const ( OperatorAPIPath = "/api/v1" SchedulerAPIPath = "/api/v1/scheduler" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandOpts ¶
type CommandOpts struct {
Shell bool
User string
Value string
Envs []mesos.Environment_Variable
}
type ContainerOpts ¶
type Option ¶
type Option func(*Profile)
Options are functional profile options
func Container ¶
func Container(opts ContainerOpts) Option
type Profile ¶
type Profile struct {
Master string `json:"master"`
TaskInfo *mesos.TaskInfo `json:"task_info"`
Debug bool `json:"debug"`
Restart bool `json:"restart"`
// contains filtered or unexported fields
}
Profile contains environment specific options
func LoadProfile ¶
LoadProfile loads a user configuration from ~/.mesos-cli.json creating a JSON file with defaults if it does not exist.
func (Profile) Framework ¶
func (p Profile) Framework() *mesos.FrameworkInfo
Click to show internal directories.
Click to hide internal directories.