Documentation
¶
Index ¶
- Variables
- func Base64Encode(str string) string
- func BuildDockerImage(_ChallengeName string, _DockerfilePath string)
- func BuildDockerImageCc(_ChallengeName string, _DockerfilePath string)
- func CheckDockerfile(_DockerfilePath string) bool
- func CompareHashWithPassword(hashedPassword, password string) bool
- func CopyFromPod(podName string, containerName string, pathInPod string, localFilePath string, ...) error
- func CopyIntoPod(podName string, containerName string, pathInPod string, localFilePath string, ...) error
- func CreateDirectoryIfNotExists(dirPath string) error
- func CreateService(clientset *kubernetes.Clientset, serviceName string, namespace string, ...) error
- func DeleteConfigMapAndWait(kubeClientset *kubernetes.Clientset, kubeConfig *rest.Config, ...)
- func DeleteDaemonSetAndWait(kubeClientset *kubernetes.Clientset, kubeConfig *rest.Config, ...)
- func DeploymentConfig() types.ManifestConfig
- func DockerImageExists(imageName string) bool
- func EncodePassword(password, salt string) string
- func GenerateCerts(domain string, basePath string) error
- func GetKatanaLoadbalancer() string
- func GetKatanaRootPath() (string, error)
- func GetKubeClient() (*kubernetes.Clientset, error)
- func GetKubeConfig() (*rest.Config, error)
- func GetMongoIP() string
- func GetNodes(clientset *kubernetes.Clientset) ([]corev1.Node, error)
- func GetPods(lbls map[string]string, ns ...string) ([]corev1.Pod, error)
- func GetRemainingTimeBeforeNextTick() time.Duration
- func GetTeamNumber() int
- func GetTeamPodLabels() string
- func GetTicker() *time.Ticker
- func HashPassword(password string) (string, error)
- func InitTicker(duration time.Duration)
- func MD5(str string) string
- func Podexecutor(command []string, kubeClientset *kubernetes.Clientset, kubeConfig *rest.Config, ...)
- func RandomSalt() (string, error)
- func RandomString(n uint) string
- func ResetTicker(duration time.Duration)
- func RunCommand(cmd string) error
- func SHA256(text string) string
- func SetTicker(ticker *time.Ticker)
- func StopTicker()
- func Tar(src string, writers ...io.Writer) error
- func VerifyToken(c *fiber.Ctx) bool
- func WaitForDeploymentReady(clientset *kubernetes.Clientset, deploymentName string, namespace string) error
- func WaitForLoadBalancerExternalIP(clientset *kubernetes.Clientset, serviceName string, namespace string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Ticker *time.Ticker
Functions ¶
func BuildDockerImage ¶
func BuildDockerImageCc ¶
this func is modified to pass args to dockerfile, so that name of challenge could be identified
func CheckDockerfile ¶
func CompareHashWithPassword ¶
func CopyFromPod ¶
func CopyIntoPod ¶
func CreateService ¶
func DeleteConfigMapAndWait ¶
func DeleteDaemonSetAndWait ¶
func DeploymentConfig ¶
func DeploymentConfig() types.ManifestConfig
func DockerImageExists ¶
func EncodePassword ¶
EncodePassword encodes password using PBKDF2 SHA256 with given salt.
func GenerateCerts ¶
func GetKatanaLoadbalancer ¶
func GetKatanaLoadbalancer() string
func GetKatanaRootPath ¶
func GetKubeClient ¶
func GetKubeClient() (*kubernetes.Clientset, error)
GetKubeClient returns a kubernetes clientset
func GetKubeConfig ¶
GetKubeConfig returns a kubernetes REST config object
func GetMongoIP ¶
func GetMongoIP() string
func GetTeamNumber ¶
func GetTeamNumber() int
func GetTeamPodLabels ¶
func GetTeamPodLabels() string
func HashPassword ¶
func InitTicker ¶
func Podexecutor ¶
func RandomSalt ¶
RandomSalt returns randomly generated 10-character string that can be used as the user salt.
func RandomString ¶
func ResetTicker ¶
func RunCommand ¶
func StopTicker ¶
func StopTicker()
func VerifyToken ¶
func WaitForDeploymentReady ¶
func WaitForDeploymentReady(clientset *kubernetes.Clientset, deploymentName string, namespace string) error
func WaitForLoadBalancerExternalIP ¶
func WaitForLoadBalancerExternalIP(clientset *kubernetes.Clientset, serviceName string, namespace string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.