Documentation ¶
Overview ¶
Copyright © 2017 Daniel Jay Haskin <djhaskin987@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const ControlDirectory = "pask"
Name of the directory relative to the root where control files will be installed. Also the name of the directory relative to the root of package archives where control files will be looked for.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Package ¶
type Package struct { Name string `yaml:"name"` Version string `yaml:"version"` Location string `yaml:"location"` }
func (*Package) Install ¶
Accepts a UTF-8 encoded archive name. Name must be a valid URL. It currently supports URLS which point to files with the suffix ".tar.xz". This function will not override previously existing files. If it encounters one, it will stop processing and return an error. Runs the `postinst` task, if it exists, after installation is complete. TODO: add logging