|
|
|
@@ -92,12 +92,9 @@ type OctopusHttp struct { |
|
|
|
token *Token |
|
|
|
} |
|
|
|
|
|
|
|
func NewOctopusHttp(id int64, name, server, host string, user string, pwd string) (*OctopusHttp, error) { |
|
|
|
token, err := NewToken(server, host, user, pwd) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
return &OctopusHttp{platform: name, participantId: id, server: server, host: host, token: token}, nil |
|
|
|
func NewOctopusHttp(id int64, name, server, host string, user string, pwd string) *OctopusHttp { |
|
|
|
token, _ := NewToken(server, host, user, pwd) |
|
|
|
return &OctopusHttp{platform: name, participantId: id, server: server, host: host, token: token} |
|
|
|
} |
|
|
|
|
|
|
|
// executor |
|
|
|
|