service

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceType

func GetResourceType(resource string) (ResourceType flag.ResourceType, err error)

GetResourceType drive resource type using provide resource URI. If resource URI is not provided then its a Binary build request If resource URI starts with HTTP and end with file ext suffix then its a build request using Git file If resource URI starts with HTTP and don't have file ext suffix then its a build request using Git Repo If resource URI is refers to local system and end with file ext suffix then its a build request using local file If resource URI is refers to local system and don't file ext suffix then its a build request using local directory

func LoadGitFileIntoMemory

func LoadGitFileIntoMemory(resource string) (io.Reader, string, error)

LoadGitFileIntoMemory reads file from remote Git location and load it in memory.

func LoadLocalFileIntoMemory

func LoadLocalFileIntoMemory(resource string) (io.Reader, string, error)

LoadLocalFileIntoMemory reads file from local system and load it in memory.

func ZipAndLoadLocalDirectoryIntoMemory

func ZipAndLoadLocalDirectoryIntoMemory(resource string, binaryBuildType flag.BinaryBuildType) (io.Reader, string, error)

ZipAndLoadLocalDirectoryIntoMemory zip the given directory URI and load it in memory.

Types

type BuildService

type BuildService interface {
	InstallBuildService(flags *flag.BuildFlags, resource string) (err error)
	DeleteBuildService(name, project string) (err error)
}

BuildService is interface to perform Kogito Build

func NewBuildService

func NewBuildService(context operator.Context, buildHandler manager.KogitoBuildHandler) BuildService

NewBuildService create and return buildService value

type RuntimeService

type RuntimeService interface {
	InstallRuntimeService(cli *client.Client, flags *flag.RuntimeFlags) (err error)
	DeleteRuntimeService(cli *client.Client, name, project string) (err error)
}

RuntimeService is interface to perform Kogito Runtime

func NewRuntimeService

func NewRuntimeService() RuntimeService

NewRuntimeService create and return runtimeService value

Jump to

Keyboard shortcuts

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