Documentation ¶
Index ¶
- Variables
- func BearerAuth(handler httprouter.Handle) httprouter.Handle
- func Serve(ctx context.Context) context.CancelFunc
- func WithLogging(handler httprouter.Handle) httprouter.Handle
- type ContainerItem
- type ContainerItemResponse
- type FileContainerResourceURL
- type MkdirFS
- type MkdirFsImpl
- type NamedFileContainerResourceURL
- type NamedFileContainerResourceURLResponse
- type ResponseMessage
Constants ¶
This section is empty.
Variables ¶
View Source
var CLI struct { Log struct { Level string `short:"l" enum:"trace,debug,info,warn,error" default:"debug"` Type string `enum:"json,console" default:"json"` } `embed:"" prefix:"log-"` Server struct { Token string `short:"t" help:"API token to be used for authenthication." default:"ActIsAwesome" env:"TOKEN"` ArtifactPath string `short:"d" help:"The root directory where to store artifacts." default:"/tmp/artifacts" env:"ARTIFACT_PATH"` Bind string `short:"b" help:"Host to listen on." default:"0.0.0.0:1234" env:"BIND"` } `embed:"" prefix:"server-" envprefix:"SERVER_"` }
Functions ¶
func BearerAuth ¶
func BearerAuth(handler httprouter.Handle) httprouter.Handle
func WithLogging ¶
func WithLogging(handler httprouter.Handle) httprouter.Handle
Types ¶
type ContainerItem ¶
type ContainerItemResponse ¶
type ContainerItemResponse struct {
Value []ContainerItem `json:"value"`
}
type FileContainerResourceURL ¶
type FileContainerResourceURL struct {
FileContainerResourceURL string `json:"fileContainerResourceUrl"`
}
type MkdirFsImpl ¶
type NamedFileContainerResourceURLResponse ¶
type NamedFileContainerResourceURLResponse struct { Count int `json:"count"` Value []NamedFileContainerResourceURL `json:"value"` }
type ResponseMessage ¶
type ResponseMessage struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.