pkg

package
v0.0.0-...-9cee1ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Version = 1.0

Version 1.0: Initialize CLI

Variables

This section is empty.

Functions

func AddFileToZip

func AddFileToZip(zipWriter *zip.Writer, filename string) error

func DeleteFile

func DeleteFile(path string) error

func GenerateFilesToZip

func GenerateFilesToZip(pathToDir string) []string

func GetRequest

func GetRequest()

func PostRequest

func PostRequest(endpoint string, payload string) string

func RecursiveZip

func RecursiveZip(pathToZip, destinationPath string) error

func UploadRequest

func UploadRequest(filePath string, uploadURL string) *http.Response

func ZipFiles

func ZipFiles(filename string, files []string) error

ZipFiles compresses one or many files into a single zip archive file. Param 1: filename is the output zip file's name. Param 2: files is a list of files to add to the zip.

Types

type DownResponse

type DownResponse struct {
	Resp struct {
		Notices  []string
		Warnings []string
		Errors   []string
	}
}

func DownRequest

func DownRequest(urlEndpoint string, payload string) *DownResponse

type Image

type Image struct {
	Name string
	Tag  string
}

type JobReleaseResponse

type JobReleaseResponse struct {
	RELEASE_NAME string
	Latest       int
	Active       int
}

type JobStatus

type JobStatus struct {
	Resp struct {
		Notices    []string
		Warnings   []string
		Errors     []string
		JOB_STATUS struct {
			Reason     string
			EXIT_CODE  int
			StartedAt  string
			FinishedAt string
		}
	}
}

func JobStatusRequest

func JobStatusRequest(urlEndpoint string, payload string) *JobStatus

type LogResponse

type LogResponse struct {
	Resp struct {
		Notices  []string
		Warnings []string
		Errors   []string
		Logs     []string
	}
}

func LogsRequest

func LogsRequest(urlEndpoint string, payload string) *LogResponse

type Project

type Project struct {
	PROJECT_NAME string
	SERVICES     []map[string]Service
}

type ReleasesResponse

type ReleasesResponse struct {
	Resp struct {
		Notices  []string
		Warnings []string
		Errors   []string
		Jobs     []JobReleaseResponse
		Services []ServiceReleaseResponse
	}
}

func ReleasesRequest

func ReleasesRequest(urlEndpoint string, payload string) *ReleasesResponse

type Response

type Response struct {
	Resp struct {
		Msg      string
		Complete string
		ASK_FOR  string
		Options  []string
		Examples []string
		Config   struct {
			PROJECT_NAME string
			Service      map[string]Service
		}
	} `json:"resp"`
}

type Service

type Service struct {
	Image       Image
	Command     string
	Ports       []string
	Environment []struct {
		Key string
		Val string
	}
	WorkingDir string
	VALUES     map[string]interface{}
}

type ServiceReleaseResponse

type ServiceReleaseResponse struct {
	RELEASE_NAME string
}

type ServiceStatus

type ServiceStatus struct {
	Resp struct {
		Notices    []string
		Warnings   []string
		Errors     []string
		Deployment struct {
			AvailableReplicas  int
			ObservedGeneration int
			ReadyReplicas      int
			Replicas           int
			UpdatedReplicas    int
		}
	}
}

func ServiceStatusRequest

func ServiceStatusRequest(urlEndpoint string, payload string) *ServiceStatus

type SignedUrlResponse

type SignedUrlResponse struct {
	Resp struct {
		PRESIGNED_URL string
	} `json:"resp"`
}

type TokenResponse

type TokenResponse struct {
	RESP struct {
		NOTICES        []string
		WARNINGS       []string
		ERROR          []string
		API_ACCESS_KEY string
	} `json:"resp"`
}

type UpRelease

type UpRelease struct {
	Notices          []string
	Warnings         []string
	Errors           []string
	COMMAND_RESPONSE struct {
		FIRST_DEPLOYED string
		LAST_DELOYED   string
		Deleted        string
		Description    string
		Status         string
		Notes          []string
		Action         string
		RELEASE_NAME   string
	}
}

type UpResponse

type UpResponse struct {
	Resp map[string]UpRelease
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL