mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-25 05:20:35 +00:00
implement compose secret syntax
This commit is contained in:
@@ -53,7 +53,6 @@ const (
|
||||
pathUsers = "%s/api/users"
|
||||
pathUser = "%s/api/users/%s"
|
||||
pathBuildQueue = "%s/api/builds"
|
||||
pathAgent = "%s/api/agents"
|
||||
)
|
||||
|
||||
type client struct {
|
||||
@@ -367,14 +366,6 @@ func (c *client) Sign(owner, name string, in []byte) ([]byte, error) {
|
||||
return ioutil.ReadAll(rc)
|
||||
}
|
||||
|
||||
// AgentList returns a list of build agents.
|
||||
func (c *client) AgentList() ([]*model.Agent, error) {
|
||||
var out []*model.Agent
|
||||
uri := fmt.Sprintf(pathAgent, c.base)
|
||||
err := c.get(uri, &out)
|
||||
return out, err
|
||||
}
|
||||
|
||||
// Registry returns a registry by hostname.
|
||||
func (c *client) Registry(owner, name, hostname string) (*model.Registry, error) {
|
||||
out := new(model.Registry)
|
||||
|
||||
Reference in New Issue
Block a user