client

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	APIBase string
	Token   string
	Conn    *http.Client
}

func NewAslanClient

func NewAslanClient(host, token string) *Client

NewAslanClient is to get aslan client func

func (*Client) GetDockerfile

func (c *Client) GetDockerfile(id string) (*Dockerfile, error)

type Dockerfile

type Dockerfile struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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