osbuild: rename package to osbuild1

Preparing for version 2 of the manifest schema, which will be
implemented in a separate package (osbuild2) alongside the original.
This commit is contained in:
Achilleas Koutsou 2021-02-12 13:18:15 +01:00 committed by Tom Gundersen
parent 18af1f5b78
commit 8090621300
70 changed files with 71 additions and 71 deletions

View file

@ -19,7 +19,7 @@ import (
"github.com/osbuild/osbuild-composer/internal/cloud/gcp" "github.com/osbuild/osbuild-composer/internal/cloud/gcp"
"github.com/osbuild/osbuild-composer/internal/common" "github.com/osbuild/osbuild-composer/internal/common"
"github.com/osbuild/osbuild-composer/internal/distro" "github.com/osbuild/osbuild-composer/internal/distro"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
"github.com/osbuild/osbuild-composer/internal/target" "github.com/osbuild/osbuild-composer/internal/target"
"github.com/osbuild/osbuild-composer/internal/upload/awsupload" "github.com/osbuild/osbuild-composer/internal/upload/awsupload"
"github.com/osbuild/osbuild-composer/internal/upload/azure" "github.com/osbuild/osbuild-composer/internal/upload/azure"

View file

@ -2,7 +2,7 @@ package main
import ( import (
"encoding/json" "encoding/json"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
"github.com/osbuild/osbuild-composer/internal/upload/koji" "github.com/osbuild/osbuild-composer/internal/upload/koji"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"

View file

@ -8,7 +8,7 @@ import (
"os/exec" "os/exec"
"github.com/osbuild/osbuild-composer/internal/distro" "github.com/osbuild/osbuild-composer/internal/distro"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
) )
// Run an instance of osbuild, returning a parsed osbuild.Result. // Run an instance of osbuild, returning a parsed osbuild.Result.

View file

@ -7,7 +7,7 @@ package disk
import ( import (
"sort" "sort"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
) )
type PartitionTable struct { type PartitionTable struct {

View file

@ -7,7 +7,7 @@ import (
"sort" "sort"
"github.com/osbuild/osbuild-composer/internal/distro" "github.com/osbuild/osbuild-composer/internal/distro"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
"github.com/google/uuid" "github.com/google/uuid"

View file

@ -7,7 +7,7 @@ import (
"sort" "sort"
"github.com/osbuild/osbuild-composer/internal/distro" "github.com/osbuild/osbuild-composer/internal/distro"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
"github.com/google/uuid" "github.com/google/uuid"

View file

@ -6,7 +6,7 @@ import (
"github.com/osbuild/osbuild-composer/internal/blueprint" "github.com/osbuild/osbuild-composer/internal/blueprint"
"github.com/osbuild/osbuild-composer/internal/distro" "github.com/osbuild/osbuild-composer/internal/distro"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
"github.com/osbuild/osbuild-composer/internal/rpmmd" "github.com/osbuild/osbuild-composer/internal/rpmmd"
) )

View file

@ -7,7 +7,7 @@ import (
"sort" "sort"
"github.com/osbuild/osbuild-composer/internal/distro" "github.com/osbuild/osbuild-composer/internal/distro"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
"github.com/google/uuid" "github.com/google/uuid"

View file

@ -10,7 +10,7 @@ import (
"github.com/osbuild/osbuild-composer/internal/disk" "github.com/osbuild/osbuild-composer/internal/disk"
"github.com/osbuild/osbuild-composer/internal/distro" "github.com/osbuild/osbuild-composer/internal/distro"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
"github.com/google/uuid" "github.com/google/uuid"

View file

@ -6,7 +6,7 @@ import (
"github.com/osbuild/osbuild-composer/internal/blueprint" "github.com/osbuild/osbuild-composer/internal/blueprint"
"github.com/osbuild/osbuild-composer/internal/distro" "github.com/osbuild/osbuild-composer/internal/distro"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
"github.com/osbuild/osbuild-composer/internal/rpmmd" "github.com/osbuild/osbuild-composer/internal/rpmmd"
) )

View file

@ -18,7 +18,7 @@ import (
"github.com/osbuild/osbuild-composer/internal/kojiapi/api" "github.com/osbuild/osbuild-composer/internal/kojiapi/api"
distro_mock "github.com/osbuild/osbuild-composer/internal/mocks/distro" distro_mock "github.com/osbuild/osbuild-composer/internal/mocks/distro"
rpmmd_mock "github.com/osbuild/osbuild-composer/internal/mocks/rpmmd" rpmmd_mock "github.com/osbuild/osbuild-composer/internal/mocks/rpmmd"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
"github.com/osbuild/osbuild-composer/internal/test" "github.com/osbuild/osbuild-composer/internal/test"
"github.com/osbuild/osbuild-composer/internal/worker" "github.com/osbuild/osbuild-composer/internal/worker"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"encoding/json" "encoding/json"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"encoding/json" "encoding/json"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
type ChronyStageOptions struct { type ChronyStageOptions struct {
Timeservers []string `json:"timeservers"` Timeservers []string `json:"timeservers"`

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
type Secret struct { type Secret struct {
Name string `json:"name,omitempty"` Name string `json:"name,omitempty"`

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
type FirewallStageOptions struct { type FirewallStageOptions struct {
Ports []string `json:"ports,omitempty"` Ports []string `json:"ports,omitempty"`

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
type FirstBootStageOptions struct { type FirstBootStageOptions struct {
Commands []string `json:"commands"` Commands []string `json:"commands"`

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
// A FixBLSStageOptions struct is empty, as the stage takes no options. // A FixBLSStageOptions struct is empty, as the stage takes no options.
// //

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
// The FSTabStageOptions describe the content of the /etc/fstab file. // The FSTabStageOptions describe the content of the /etc/fstab file.
// //

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
type GroupsStageOptions struct { type GroupsStageOptions struct {
Groups map[string]GroupsStageOptionsGroup `json:"groups"` Groups map[string]GroupsStageOptionsGroup `json:"groups"`

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import "github.com/google/uuid" import "github.com/google/uuid"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
type HostnameStageOptions struct { type HostnameStageOptions struct {
Hostname string `json:"hostname"` Hostname string `json:"hostname"`

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
// KernelCmdlineStageOptions describe how to create kernel-cmdline stage // KernelCmdlineStageOptions describe how to create kernel-cmdline stage
// //

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
type KeymapStageOptions struct { type KeymapStageOptions struct {
Keymap string `json:"keymap"` Keymap string `json:"keymap"`

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
// The LocaleStageOptions describes the image's locale. // The LocaleStageOptions describes the image's locale.
// //

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,6 +1,6 @@
// Package osbuild provides primitives for representing and (un)marshalling // Package osbuild provides primitives for representing and (un)marshalling
// OSBuild types. // OSBuild (schema v1) types.
package osbuild package osbuild1
// A Manifest represents an OSBuild source and pipeline manifest // A Manifest represents an OSBuild source and pipeline manifest
type Manifest struct { type Manifest struct {

View file

@ -1,6 +1,6 @@
// Package osbuild provides primitives for representing and (un)marshalling // Package osbuild provides primitives for representing and (un)marshalling
// OSBuild types. // OSBuild types.
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
// OSTreeCommitAssemblerOptions desrcibe how to assemble a tree into an OSTree commit. // OSTreeCommitAssemblerOptions desrcibe how to assemble a tree into an OSTree commit.
type OSTreeCommitAssemblerOptions struct { type OSTreeCommitAssemblerOptions struct {

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
// QEMUAssemblerOptions desrcibe how to assemble a tree into an image using qemu. // QEMUAssemblerOptions desrcibe how to assemble a tree into an image using qemu.
// //

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import "github.com/google/uuid" import "github.com/google/uuid"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"encoding/json" "encoding/json"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
// RHSMStageOptions describes configuration of the RHSM stage. // RHSMStageOptions describes configuration of the RHSM stage.
// //

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
// The RPM-OSTree stage describes how to transform the imgae into an OSTree. // The RPM-OSTree stage describes how to transform the imgae into an OSTree.
type RPMOSTreeStageOptions struct { type RPMOSTreeStageOptions struct {

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
// The RPMStageOptions describe the operations of the RPM stage. // The RPMStageOptions describe the operations of the RPM stage.
// //

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
// The ScriptStageOptions specifies a custom script to run in the image // The ScriptStageOptions specifies a custom script to run in the image
type ScriptStageOptions struct { type ScriptStageOptions struct {

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
// The SELinuxStageOptions describe how to apply selinux labels. // The SELinuxStageOptions describe how to apply selinux labels.
// //

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"encoding/json" "encoding/json"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"encoding/json" "encoding/json"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
type SysconfigStageOptions struct { type SysconfigStageOptions struct {
Kernel SysconfigKernelOptions `json:"kernel,omitempty"` Kernel SysconfigKernelOptions `json:"kernel,omitempty"`

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
type SystemdStageOptions struct { type SystemdStageOptions struct {
EnabledServices []string `json:"enabled_services,omitempty"` EnabledServices []string `json:"enabled_services,omitempty"`

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
// TarAssemblerOptions desrcibe how to assemble a tree into a tar ball. // TarAssemblerOptions desrcibe how to assemble a tree into a tar ball.
// //

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
type TimezoneStageOptions struct { type TimezoneStageOptions struct {
Zone string `json:"zone"` Zone string `json:"zone"`

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
type UsersStageOptions struct { type UsersStageOptions struct {
Users map[string]UsersStageOptionsUser `json:"users"` Users map[string]UsersStageOptionsUser `json:"users"`

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
// The ZiplStageOptions describe how to create zipl stage // The ZiplStageOptions describe how to create zipl stage
// //

View file

@ -1,4 +1,4 @@
package osbuild package osbuild1
import ( import (
"testing" "testing"

View file

@ -13,7 +13,7 @@ import (
"github.com/osbuild/osbuild-composer/internal/common" "github.com/osbuild/osbuild-composer/internal/common"
"github.com/osbuild/osbuild-composer/internal/distro" "github.com/osbuild/osbuild-composer/internal/distro"
"github.com/osbuild/osbuild-composer/internal/distro/test_distro" "github.com/osbuild/osbuild-composer/internal/distro/test_distro"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
"github.com/osbuild/osbuild-composer/internal/rpmmd" "github.com/osbuild/osbuild-composer/internal/rpmmd"
"github.com/osbuild/osbuild-composer/internal/target" "github.com/osbuild/osbuild-composer/internal/target"
) )

View file

@ -32,7 +32,7 @@ import (
"github.com/osbuild/osbuild-composer/internal/common" "github.com/osbuild/osbuild-composer/internal/common"
"github.com/osbuild/osbuild-composer/internal/distro" "github.com/osbuild/osbuild-composer/internal/distro"
"github.com/osbuild/osbuild-composer/internal/jobqueue" "github.com/osbuild/osbuild-composer/internal/jobqueue"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
"github.com/osbuild/osbuild-composer/internal/rpmmd" "github.com/osbuild/osbuild-composer/internal/rpmmd"
"github.com/osbuild/osbuild-composer/internal/store" "github.com/osbuild/osbuild-composer/internal/store"
"github.com/osbuild/osbuild-composer/internal/target" "github.com/osbuild/osbuild-composer/internal/target"

View file

@ -5,7 +5,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
"github.com/osbuild/osbuild-composer/internal/distro" "github.com/osbuild/osbuild-composer/internal/distro"
"github.com/osbuild/osbuild-composer/internal/osbuild" osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
"github.com/osbuild/osbuild-composer/internal/target" "github.com/osbuild/osbuild-composer/internal/target"
) )