Documentation ¶
Index ¶
- Constants
- func BuildFilelist(dir string, ignores []string) (files []string, err error)
- func CreateTarball(w io.Writer, filePaths []string) error
- func IsValidNodeApp(dir string) (errs []error)
- func NewTable(out io.Writer) (t *tablewriter.Table)
- func PrettyBool(b bool) (s string)
- type AccountsCmd
- type AccountsCreateCmd
- type AccountsListCmd
- type AppsCmd
- type AppsCreateCmd
- type AppsInfoCmd
- type AppsListCmd
- type CertsCmd
- type CertsRenewCmd
- type DeployCmd
- type LoginCmd
- type PayloadValue
- type PsCmd
- type UploadResponse
- type VersionCmd
- type WhoAmICmd
Constants ¶
const MaxFileSize = 1073741824 // 1GB
MaxFileSize is the tarball file size allowed to be uploaded in bytes.
Variables ¶
This section is empty.
Functions ¶
func BuildFilelist ¶
BuildFilelist builds a list of files to be tarballed, with optional ignores.
func CreateTarball ¶
CreateTarball creates a tarball containing all the files in filePaths and writes it to w.
func IsValidNodeApp ¶ added in v0.0.6
IsValidNodeApp detects if a Node.js app is present in a given directory
func NewTable ¶
func NewTable(out io.Writer) (t *tablewriter.Table)
NewTable returns a table with sectionctl standard formatting
func PrettyBool ¶ added in v1.3.0
PrettyBool pretty prints a bool value
Types ¶
type AccountsCmd ¶
type AccountsCmd struct {
List AccountsListCmd `cmd help:"List accounts on Section." default:"1"`
}
AccountsCmd manages accounts on Section
type AccountsCreateCmd ¶
type AccountsCreateCmd struct{}
AccountsCreateCmd handles creating apps on Section
type AccountsListCmd ¶
type AccountsListCmd struct{}
AccountsListCmd handles listing accounts on Section
type AppsCmd ¶
type AppsCmd struct { List AppsListCmd `cmd help:"List apps on Section." default:"1"` Info AppsInfoCmd `cmd help:"Show detailed app information on Section."` Create AppsCreateCmd `cmd help:"Create new app on Section."` }
AppsCmd manages apps on Section
type AppsInfoCmd ¶
AppsInfoCmd shows detailed information on an app running on Section
type AppsListCmd ¶
type AppsListCmd struct {
AccountID int `required short:"a"`
}
AppsListCmd handles listing apps running on Section
type CertsCmd ¶ added in v1.1.0
type CertsCmd struct {
Renew CertsRenewCmd `cmd help:"Renew a certificate for a domain."`
}
CertsCmd manages certificates on Section
type CertsRenewCmd ¶ added in v1.1.0
CertsRenewCmd handles renewing a certificate
func (*CertsRenewCmd) Run ¶ added in v1.1.0
func (c *CertsRenewCmd) Run() (err error)
Run executes the command
type DeployCmd ¶
type DeployCmd struct { AccountID int `required short:"a" help:"AccountID to deploy application to."` AppID int `required short:"i" help:"AppID to deploy application to."` Environment string `short:"e" default:"production" help:"Environment to deploy application to."` Debug bool `help:"Display extra debugging information about what is happening inside sectionctl."` Directory string `default:"." help:"Directory which contains the application to deploy."` ServerURL *url.URL `default:"https://aperture.section.io/new/code_upload/v1/upload" help:"URL to upload application to"` Timeout time.Duration `default:"300s" help:"Timeout of individual HTTP requests."` SkipDelete bool `help:"Skip delete of temporary tarball created to upload app."` }
DeployCmd handles deploying an app to Section.
type LoginCmd ¶
type LoginCmd struct {
// contains filtered or unexported fields
}
LoginCmd handles authenticating the CLI against Section's API
type PayloadValue ¶ added in v0.0.5
type PayloadValue struct {
ID string `json:"section_payload_id"`
}
PayloadValue represents the value of a trigger update payload.
type UploadResponse ¶ added in v0.0.5
type UploadResponse struct {
PayloadID string `json:"payloadID"`
}
UploadResponse represents the response from a request to the upload service.
type VersionCmd ¶
type VersionCmd struct{}
VersionCmd handles authenticating the CLI against Section's API