sdk

package
v0.77.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

Sdk Service

Sdk service sets active terminal session with requested sdk version.

Service Id Action Description Request Response
sdk set set system with requested sdk and version SetRequest SetResponse

Documentation

Index

Constants

View Source
const (
	//SdkServiceID represents system sdk
	ServiceID = "sdk"
)

Variables

This section is empty.

Functions

func New

func New() endly.Service

New creates a new sdk service.

Types

type Info

type Info struct {
	Home      string //sdk path
	Build     string //sdk build version
	SessionID string //session id of target host
	Sdk       string //requested sdk
	Version   string //requested  sdk version
}

Info represents a system sdk

type SetRequest

type SetRequest struct {
	Sdk          string //request sdk jdk, go
	Version      string //requested version
	Env          map[string]string
	Target       *location.Resource //target host
	BaseLocation string
}

SetRequest represents sdk set request

func NewSetRequest

func NewSetRequest(target *location.Resource, sdk string, version string, env map[string]string) *SetRequest

NewSetRequest creates a new sdk request

func NewSetRequestFromURL

func NewSetRequestFromURL(URL string) (*SetRequest, error)

NewSetRequestFromURL creates a new set request from URL

func (*SetRequest) Init

func (r *SetRequest) Init() error

Init initializes request

func (*SetRequest) Messages

func (r *SetRequest) Messages() []*msg.Message

Items returns tag messages

func (*SetRequest) Validate

func (r *SetRequest) Validate() error

Validate checks if request if valid

type SetResponse

type SetResponse struct {
	SdkInfo *Info
}

SetResponse represents sdk response

Jump to

Keyboard shortcuts

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