Skip to content

poq79/vela-kit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vela-kit

vela ssoc security dev kit

example

package main

import (
	"github.com/vela-ssoc/vela-kit/vela" //全局抽象接口
	
    kit "github.com/vela-ssoc/vela-kit"  //工具和函数类
    test "github.com/vela-ssoc/vela-test" //自定义模块
)

func injection(xEnv vela.Environment) {
    test.WithEnv(xEnv)
}

func main() {
    deploy := kit.New("vela", kit.All(), kit.Use(injection))
	
	//线上工作模式
	//deploy.Agent()
    
	//调试
    deploy.Debug(kit.Hide{
        Lan:      []string{"ws://1.1.1.1:8082"},
        Hostname: "vela.site.com",
        Edition:  "2.2.0",
        Protect:  true,
    })
	
}

About

vela ssoc security dev kit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.9%
  • Other 1.1%