Documentation ¶
Index ¶
- Variables
- func DownloadGitRepository(stackID portainer.StackID, config gittypes.RepoConfig, ...) (string, error)
- func GetStackFilePaths(stack *portainer.Stack, absolute bool) []string
- func IsValidStackFile(stackFileContent []byte, securitySettings *portainer.EndpointSecuritySettings) error
- func ResourceControlID(endpointID portainer.EndpointID, name string) string
- func SanitizeLabel(value string) string
- func UserIsAdminOrEndpointAdmin(user *portainer.User, endpointID portainer.EndpointID) (bool, error)
- func ValidateStackAutoUpdate(autoUpdate *portainer.StackAutoUpdate) error
- func ValidateStackFiles(stack *portainer.Stack, securitySettings *portainer.EndpointSecuritySettings, ...) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DownloadGitRepository ¶
func DownloadGitRepository(stackID portainer.StackID, config gittypes.RepoConfig, gitService portainer.GitService, fileService portainer.FileService) (string, error)
DownloadGitRepository downloads the target git repository on the disk The first return value represents the commit hash of the downloaded git repository
func GetStackFilePaths ¶
GetStackFilePaths returns a list of file paths based on stack project path
func IsValidStackFile ¶
func IsValidStackFile(stackFileContent []byte, securitySettings *portainer.EndpointSecuritySettings) error
func ResourceControlID ¶
func ResourceControlID(endpointID portainer.EndpointID, name string) string
ResourceControlID returns the stack resource control id
func SanitizeLabel ¶
convert string to valid kubernetes label by replacing invalid characters with periods
func ValidateStackAutoUpdate ¶
func ValidateStackAutoUpdate(autoUpdate *portainer.StackAutoUpdate) error
func ValidateStackFiles ¶
func ValidateStackFiles(stack *portainer.Stack, securitySettings *portainer.EndpointSecuritySettings, fileService portainer.FileService) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.