Skip to content

szyn/digdag-go-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c67492b Â· Oct 21, 2021

History

38 Commits
Oct 21, 2021
Jan 15, 2018
Mar 23, 2019
Jan 17, 2018
Mar 23, 2019
Mar 23, 2019
Oct 5, 2021
Jan 15, 2018
Mar 23, 2019
Mar 23, 2019
Jan 15, 2018
Jan 15, 2018
Jan 15, 2018
Jan 15, 2018
Jan 15, 2018
Jan 15, 2018
Feb 13, 2018
Feb 13, 2018
Jan 15, 2018
Jan 15, 2018

Repository files navigation

digdag-go-client

codecov GoDoc

Description

Digdag client library written in Go. (Unofficial)

Requirement

  • digdag server

Install

$ go get -u github.com/szyn/digdag-go-client

Usage

e.g. Get projects infomation

package main

import (
	"fmt"

	digdag "github.com/szyn/digdag-go-client"
)

func main() {
	/*
		default endpoint: http://localhost:65432
		If you want to change endpoint, write as the following.
		client, err := digdag.NewClient("http://hostname:5432", false)
	*/
	client, err := digdag.NewClient("", false)
	if err != nil {
		fmt.Println(err)
	}

	projects, err := client.GetProjects()
	if err != nil {
		fmt.Println(err)
	}
	for _, project := range projects {
		fmt.Println(project.ID, project.Name)
	}
}

See also: Godoc

Contribution

  1. Fork it ( http://github.com/szyn/digdag-go-client )
  2. Create your feature branch ( git checkout -b my-new-feature )
  3. Commit your changes ( git commit -am 'Add some feature' )
  4. Push to the branch ( git push origin my-new-feature )
  5. Run test suite ( go test ./... ) and confirm that it passes
  6. Run gofmt ( gofmt -s )
  7. Create new Pull Request 😆

LICENCE

Apache License 2.0

Author

szyn

Packages

No packages published

Contributors 2

Languages