go

module
Version: v0.0.0-...-5613f3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2020 License: Apache-2.0

README

Build Status Go Report Card GoDoc

This repo has been moved to https://github.com/gomodules/x . This is left here so existing builds don't break. Dependencies should switch over to the new Go module.

go

Ensemble of GOlang libraries used by AppsCode

Policy for adding new libs:

  • If codebase produces exe or needs vendoring, they live in their own top level repo.
  • appscode/go is our kitchen sink go lib repo. This must not use vendor. We do not accept contribution in /go repo, since they have wide ranging effect. This does not use log (glog transitively), since that will require vendoring. This also uses official errors pkg, to avoid facebookgo/stack dependency.
  • If we want external contribution, those stuff need their own repo.

License

This is licensed under Apache 2.0 unless specified otherwise in individual code files.

Directories

Path Synopsis
container
crypto
ssh
Package ssh provides a GOlang library for copying files and running commands over SSH ## Example “`go package main import ( "github.com/appscode/go/crypto/ssh" "log" "os" ) func main() { signer, err := ssh.MakePrivateKeySignerFromFile(os.ExpandEnv("$HOME/.ssh/id_rsa")) if err != nil { log.Fatal(err) } sout, serr, code, err := sshtools.Exec("ls -l /", "root", "<addr>:<port>", signer) log.Println(sout, serr, code, err) } “` ## Acknowledgement This library is based on code from: - https://github.com/kubernetes/kubernetes/tree/master/pkg/ssh - https://github.com/YuriyNasretdinov/GoSSHa
Package ssh provides a GOlang library for copying files and running commands over SSH ## Example “`go package main import ( "github.com/appscode/go/crypto/ssh" "log" "os" ) func main() { signer, err := ssh.MakePrivateKeySignerFromFile(os.ExpandEnv("$HOME/.ssh/id_rsa")) if err != nil { log.Fatal(err) } sout, serr, code, err := sshtools.Exec("ls -l /", "root", "<addr>:<port>", signer) log.Println(sout, serr, code, err) } “` ## Acknowledgement This library is based on code from: - https://github.com/kubernetes/kubernetes/tree/master/pkg/ssh - https://github.com/YuriyNasretdinov/GoSSHa
encoding
j2
j2/types
Package types provides a collection of Golang types with JSON marshaling support
Package types provides a collection of Golang types with JSON marshaling support
json/types
Package types provides a collection of Golang types with JSON marshaling support
Package types provides a collection of Golang types with JSON marshaling support
MIT License * * Copyright (c) 2017 Roland Singer [roland.singer@desertbit.com] * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software.
MIT License * * Copyright (c) 2017 Roland Singer [roland.singer@desertbit.com] * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software.
log
net
httpclient
Package httpclient provides a simple Golang Client for JSON Http Microservices Acknowledgement: - [DigitalOcean Go client](https://github.com/digitalocean/godo/blob/master/godo.go) - [OVH Go client](https://github.com/ovh/go-ovh/blob/master/ovh/ovh.go)
Package httpclient provides a simple Golang Client for JSON Http Microservices Acknowledgement: - [DigitalOcean Go client](https://github.com/digitalocean/godo/blob/master/godo.go) - [OVH Go client](https://github.com/ovh/go-ovh/blob/master/ovh/ovh.go)
url
os
Package sets has auto-generated set types.
Package sets has auto-generated set types.
types
Package types just provides input types to the set generator.
Package types just provides input types to the set generator.
GOlang value &lt;--> pointer ##Acknowledgements This repo was started as a fork of https://github.com/aws/aws-sdk-go/blob/master/aws/convert_types.go
GOlang value &lt;--> pointer ##Acknowledgements This repo was started as a fork of https://github.com/aws/aws-sdk-go/blob/master/aws/convert_types.go
util
Package wait provides tools for polling or listening for changes to a condition.
Package wait provides tools for polling or listening for changes to a condition.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL