buildlog

package
v3.11.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PipeStreamer added in v3.7.0

type PipeStreamer struct {
	In          *io.PipeWriter
	Out         *io.PipeReader
	Flush       bool
	ContentType string
}

PipeStreamer is a resource that streams the contents of a particular pipe

func (*PipeStreamer) DeepCopyObject added in v3.8.0

func (obj *PipeStreamer) DeepCopyObject() runtime.Object

func (*PipeStreamer) GetObjectKind added in v3.7.0

func (obj *PipeStreamer) GetObjectKind() schema.ObjectKind

func (*PipeStreamer) InputStream added in v3.7.0

func (s *PipeStreamer) InputStream(apiVersion, acceptHeader string) (stream io.ReadCloser, flush bool, contentType string, err error)

InputStream returns a stream with the contents of the embedded pipe.

type REST

type REST struct {
	BuildClient buildtypedclient.BuildsGetter
	PodClient   kcoreclient.PodsGetter
	Timeout     time.Duration
	// contains filtered or unexported fields
}

REST is an implementation of RESTStorage for the api server.

func NewREST

func NewREST(buildClient buildtypedclient.BuildsGetter, podClient kcoreclient.PodsGetter) *REST

NewREST creates a new REST for BuildLog Takes build registry and pod client to get necessary attributes to assemble URL to which the request shall be redirected in order to get build logs.

func (*REST) Get

func (r *REST) Get(ctx apirequest.Context, name string, opts runtime.Object) (runtime.Object, error)

Get returns a streamer resource with the contents of the build log

func (*REST) New

func (r *REST) New() runtime.Object

New creates an empty BuildLog resource

func (*REST) NewGetOptions

func (r *REST) NewGetOptions() (runtime.Object, bool, string)

NewGetOptions returns a new options object for build logs

Jump to

Keyboard shortcuts

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