clone

package
v0.3.27 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLatestCommitHash

func GetLatestCommitHash(URL string) (string, error)

func IsValidGitRepoURL

func IsValidGitRepoURL(urlStr string) (*url.URL, error)

func RemoveFromModelStorageSpec

func RemoveFromModelStorageSpec(inputs []model.StorageSpec, url string) []model.StorageSpec

func RemoveFromSlice

func RemoveFromSlice(arr []string, item string) []string

func RepoExistsOnIPFSGivenURL

func RepoExistsOnIPFSGivenURL(urlStr string, ctx context.Context) (string, error)

Types

type Clone

type Clone struct {
	URL string
}

func NewCloneClient

func NewCloneClient() (*Clone, error)

type Response

type Response struct {
	CID string
}

type ScriptStruct

type ScriptStruct struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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