Documentation ¶
Overview ¶
Copyright 2019 Sonatype Inc.
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.
Copyright 2019 Sonatype Inc.
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.
Copyright 2019 Sonatype Inc.
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.
Copyright 2019 Sonatype Inc.
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.
Copyright 2019 Sonatype Inc.
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.
Copyright 2019 Sonatype Inc.
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.
Copyright 2019 Sonatype Inc.
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.
Copyright 2019 Sonatype Inc.
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.
Copyright 2019 Sonatype Inc.
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.
Copyright 2020 Sonatype Inc.
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.
Copyright 2020 Sonatype Inc.
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.
Copyright 2020 Sonatype Inc.
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.
Copyright 2019 Sonatype Inc.
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.
Copyright 2019 Sonatype Inc.
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.
Copyright 2019 Sonatype Inc.
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.
Copyright 2019 Sonatype Inc.
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.
Copyright 2019 Sonatype Inc.
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.
Copyright 2020 Sonatype Inc.
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.
Copyright 2020 Sonatype Inc.
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 ¶
- Variables
- func CreateBom(libPaths []string, libs []string, files []string) (deps types.ProjectList, err error)
- func GetArchiveFileRegexPattern() (result string)
- func GetLibPaths() (paths []string)
- func GetLibraryFileRegexPattern() (result string)
- func GetLibraryName(path string) (name string, err error)
- func GetLibraryPath(libPaths []string, name string) (path string, err error)
- func GetLibraryPathRegexPattern() (result string)
- func GetLibraryVersion(path string) (version string, err error)
- func IsArchive(path string) (b bool)
- type Collector
- type DebExternalCommand
- type ExternalCommand
- type LddExternalCommand
- type OtoolExternalCommand
- type RpmExternalCommand
Constants ¶
This section is empty.
Variables ¶
var ARCHIVE_REGEX *regexp.Regexp
Identify archives by name
var AppFs afero.Fs
AppFs is using afero to wrap os, that way we can switch it out for testing
var Goose = runtime.GOOS
Goose I'm Goose, you're Maverick
var TYPESTOCHECK = map[string]string{
".dylib": "OSX DLL",
".so": "Linux DLL",
".so.": "Linux DLL",
".a": "Static Lib",
".a.": "Static Lib",
".dll": "Windows DLL",
}
var UseRuntime = runtime.GOOS
Functions ¶
func CreateBom ¶
func CreateBom(libPaths []string, libs []string, files []string) (deps types.ProjectList, err error)
CreateBom does stuff
func GetArchiveFileRegexPattern ¶ added in v0.1.0
func GetArchiveFileRegexPattern() (result string)
func GetLibPaths ¶ added in v0.1.0
func GetLibPaths() (paths []string)
func GetLibraryFileRegexPattern ¶ added in v0.1.0
func GetLibraryFileRegexPattern() (result string)
func GetLibraryName ¶ added in v0.1.0
GetLibraryName depending on your operating system (see Goose), returns the name of your library, given a full name
func GetLibraryPath ¶ added in v0.1.0
GetLibraryPath depending on your operating system (see Goose), returns the path to your library if it exists
func GetLibraryPathRegexPattern ¶ added in v0.1.0
func GetLibraryPathRegexPattern() (result string)
func GetLibraryVersion ¶ added in v0.1.0
GetLibraryVersion depending on your operating system (see Goose), returns the version of your library, given a full name
Types ¶
type DebExternalCommand ¶ added in v0.1.0
type DebExternalCommand struct { }
func (DebExternalCommand) ExecCommand ¶ added in v0.1.0
func (d DebExternalCommand) ExecCommand(args ...string) ([]byte, error)
func (DebExternalCommand) IsValid ¶ added in v0.1.0
func (d DebExternalCommand) IsValid() bool
type ExternalCommand ¶ added in v0.1.0
var DEBExtCmd ExternalCommand
var LDDCommand ExternalCommand
var OtoolCommand ExternalCommand
var RPMExtCmd ExternalCommand
type LddExternalCommand ¶ added in v0.1.0
type LddExternalCommand struct { }
func (LddExternalCommand) ExecCommand ¶ added in v0.1.0
func (l LddExternalCommand) ExecCommand(args ...string) ([]byte, error)
func (LddExternalCommand) IsValid ¶ added in v0.1.0
func (l LddExternalCommand) IsValid() bool
type OtoolExternalCommand ¶ added in v0.1.0
type OtoolExternalCommand struct { }
func (OtoolExternalCommand) ExecCommand ¶ added in v0.1.0
func (l OtoolExternalCommand) ExecCommand(args ...string) ([]byte, error)
func (OtoolExternalCommand) IsValid ¶ added in v0.1.0
func (l OtoolExternalCommand) IsValid() bool
type RpmExternalCommand ¶ added in v0.1.0
type RpmExternalCommand struct { }
func (RpmExternalCommand) ExecCommand ¶ added in v0.1.0
func (r RpmExternalCommand) ExecCommand(args ...string) ([]byte, error)
func (RpmExternalCommand) IsValid ¶ added in v0.1.0
func (r RpmExternalCommand) IsValid() bool
Source Files ¶
- apt.go
- bom.go
- collector-archive.go
- collector-deb.go
- collector-path.go
- collector-pkgconfig.go
- collector-rpm.go
- collector-strings.go
- collector.go
- deb_external_command.go
- external_command.go
- ldd_external_command.go
- libs-common.go
- libs-osx.go
- libs-unix.go
- libs-windows.go
- libs.go
- otool_external_command.go
- rpm_external_command.go