Documentation ¶
Index ¶
- func GetResourceType(resource string) (ResourceType flag.ResourceType, err error)
- func LoadGitFileIntoMemory(resource string) (io.Reader, string, error)
- func LoadLocalFileIntoMemory(resource string) (io.Reader, string, error)
- func ZipAndLoadLocalDirectoryIntoMemory(resource string, binaryBuildType flag.BinaryBuildType) (io.Reader, string, error)
- type BuildService
- type RuntimeService
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 ¶
LoadGitFileIntoMemory reads file from remote Git location and load it in memory.
func LoadLocalFileIntoMemory ¶
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