GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Why Go
  • Case Studies
  • Use Cases
  • Security
  • Learn
  • Effective Go
  • Go User Manual
  • Standard library
  • Release Notes
  • API
  • Packages
  • Recorded Talks
  • Meetups
  • Conferences

This view

  • Original page
  • New address

GeezerVison is showing pkg.go.dev — sand package - github.com/Scalingo/sand/client/sand - Go Packages

Details

  • checked Valid go.mod file

    The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.

  • checked Redistributable license

    Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.

  • checked Tagged version

    Modules with tagged versions give importers more predictable builds.

  • checked Stable version

    When a project reaches major version v1 it is considered stable.

  • Learn more about best practices

Repository

github.com/Scalingo/sand

Links

  • Open Source Insights Logo Open Source Insights

Documentation ¶

Index ¶

  • func NewClient(opts ...Opt) *client
  • func TlsConfig(ctx context.Context, ca, cert, key string) (*tls.Config, error)
  • type Client
  • type HTTPRoundTripperOpts
  • type Opt
    • func WithHttpClient(hc *http.Client) Opt
    • func WithTimeout(t time.Duration) Opt
    • func WithTlsConfig(config *tls.Config) Opt
    • func WithURL(url string) Opt

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func NewClient ¶

func NewClient(opts ...Opt) *client

func TlsConfig ¶

func TlsConfig(ctx context.Context, ca, cert, key string) (*tls.Config, error)

Types ¶

type Client ¶

type Client interface {
	Version(context.Context) (string, error)
	NetworksList(context.Context) ([]types.Network, error)
	NetworkCreate(context.Context, params.NetworkCreate) (types.Network, error)
	NetworkShow(context.Context, string) (types.Network, error)
	NodeEnsureNetworkEndpoints(ctx context.Context) error
	NetworkConnect(context.Context, string, params.NetworkConnect) (net.Conn, error)
	NetworkDelete(context.Context, string) error
	EndpointCreate(context.Context, params.EndpointCreate) (types.Endpoint, error)
	EndpointsList(context.Context, params.EndpointsList) ([]types.Endpoint, error)
	EndpointDelete(context.Context, string) error
	NewHTTPRoundTripper(ctx context.Context, id string, opts HTTPRoundTripperOpts) http.RoundTripper
}

type HTTPRoundTripperOpts ¶ added in v0.5.2

type HTTPRoundTripperOpts struct {
	TLSConfig *tls.Config
}

type Opt ¶

type Opt func(c *client)

func WithHttpClient ¶

func WithHttpClient(hc *http.Client) Opt

func WithTimeout ¶ added in v0.7.0

func WithTimeout(t time.Duration) Opt

func WithTlsConfig ¶

func WithTlsConfig(config *tls.Config) Opt

func WithURL ¶

func WithURL(url string) Opt

Source Files ¶

View all Source files
  • client.go
  • endpoint.go
  • http.go
  • network.go
  • network_connect.go
  • node.go
  • version.go
Click to show internal directories.
Click to hide internal directories.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.