repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/property_metadata.go | configtemplate/generator/property_metadata.go | package generator
import (
"fmt"
"reflect"
"strings"
)
type PropertyBlueprint struct {
Configurable string `yaml:"configurable"`
Default interface{} `yaml:"default"`
Optional bool `yaml:"optional"`
Name string `yaml:"name... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/metadata.go | configtemplate/generator/metadata.go | package generator
import (
"fmt"
"strings"
"gopkg.in/yaml.v2"
)
func NewMetadata(fileBytes []byte) (*Metadata, error) {
metadata := &Metadata{}
err := yaml.Unmarshal(fileBytes, metadata)
if err != nil {
return nil, err
}
return metadata, nil
}
type Metadata struct {
Name string ... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/job_type_test.go | configtemplate/generator/job_type_test.go | package generator_test
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("JobType", func() {
Context("HasPersistentDisk", func() {
It("Should have persistent disk", func() {
metadata := getMetadata("fixtures/metadata/pas.yml")
job, err := metadata.GetJob("mysql")
Expec... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/collection_property_metadata.go | configtemplate/generator/collection_property_metadata.go | package generator
import (
"fmt"
"reflect"
"strings"
)
func IsDefaultAnArray(defaultValue interface{}) bool {
if defaultValue == nil {
return false
}
_, ok := defaultValue.([]interface{})
return ok
}
func DefaultsArrayToCollectionArray(propertyName string, defaultValue interface{}, subProperties []PropertyB... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/network_properties_test.go | configtemplate/generator/network_properties_test.go | package generator_test
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/configtemplate/generator"
"github.com/pivotal-cf/om/configtemplate/generator/fakes"
"gopkg.in/yaml.v2"
)
var withServiceNetwork = `network:
name: ((network_name))
other_availability_zones:
- nam... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/property_metadata_test.go | configtemplate/generator/property_metadata_test.go | package generator_test
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/configtemplate/generator"
)
var _ = Describe("PropertyBlueprints", func() {
Context("IsConfigurable", func() {
It("is true", func() {
propertyMetaData := &generator.PropertyBlueprint{
Confi... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/errand_config_test.go | configtemplate/generator/errand_config_test.go | package generator_test
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/configtemplate/generator"
)
var _ = Describe("Errand Config", func() {
When("both pre and post deployment errands are present", func() {
It("populates the errand state with the correct pre / post ... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/execute.go | configtemplate/generator/execute.go | package generator
import (
"errors"
"fmt"
"os"
"path"
"gopkg.in/yaml.v2"
)
type Executor struct {
metdataBytes []byte
baseDirectory string
doNotIncludeProductVersion bool
includeErrands bool
sizeOfCollections int
userSetSizeOfCollections bool
}
func NewEx... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/ops_file.go | configtemplate/generator/ops_file.go | package generator
import "fmt"
type Ops struct {
Type string `yaml:"type"`
Path string `yaml:"path"`
Value OpsValueType `yaml:"value,omitempty"`
}
type OpsNameValue struct {
Value string `yaml:"name"`
}
func (n *OpsNameValue) Parameters() []string {
return []string{n.Value}
}
type OpsValue struc... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/metadata_test.go | configtemplate/generator/metadata_test.go | package generator_test
import (
"os"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/configtemplate/generator"
)
func getMetadata(filename string) *generator.Metadata {
fileData, err := os.ReadFile(filename)
Expect(err).ToNot(HaveOccurred())
metadata, err := generator.NewMe... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/product_properties_test.go | configtemplate/generator/product_properties_test.go | package generator_test
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/configtemplate/generator"
)
var _ = Describe("Product Properties", func() {
Context("GetRequiredPropertyVars", func() {
When("GetPropertyBlueprint returns an error", func() {
It("returns an err... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | true |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/resource_config_test.go | configtemplate/generator/resource_config_test.go | package generator_test
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"gopkg.in/yaml.v2"
"github.com/pivotal-cf/om/configtemplate/generator"
"github.com/pivotal-cf/om/configtemplate/generator/fakes"
)
var withPersistentDisk = `instance_type:
id: ((resource-var-myjob_instance_type))
instance... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/job_type.go | configtemplate/generator/job_type.go | package generator
import (
"fmt"
"strings"
)
type JobType struct {
Name string `yaml:"name"`
PropertyBlueprint []PropertyBlueprint `yaml:"property_blueprints"`
ResourceDefinitions []ResourceDefinition `yaml:"resource_definitions"`
InstanceDefinition InstanceDefinition `yaml:"i... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/errand_config.go | configtemplate/generator/errand_config.go | package generator
import "fmt"
type Errand struct {
PostDeployState string `yaml:"post-deploy-state,omitempty"`
PreDeleteState string `yaml:"pre-delete-state,omitempty"`
}
func CreateErrandConfig(metadata *Metadata) map[string]Errand {
errands := make(map[string]Errand)
for _, errand := range metadata.PostDeplo... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/product_properties.go | configtemplate/generator/product_properties.go | package generator
import (
"fmt"
"strings"
)
func GetAllProductProperties(metadata *Metadata) (map[string]PropertyValue, error) {
productProperties := make(map[string]PropertyValue)
for _, property := range metadata.PropertyInputs() {
propertyMetadata, err := metadata.GetPropertyBlueprint(property.Reference)
... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/execute_test.go | configtemplate/generator/execute_test.go | package generator_test
import (
"fmt"
"os"
"path"
"path/filepath"
"sort"
"strings"
"gopkg.in/yaml.v2"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/configtemplate/generator"
)
type Template struct {
NetworkProperties interface{} `yaml:"network-properties"`
ProductPr... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/selector_metadata.go | configtemplate/generator/selector_metadata.go | package generator
import (
"strings"
)
func SelectorOptionsBlueprints(optionTemplates []OptionTemplate, selector string) []PropertyBlueprint {
return selectorMetadataByFunc(
optionTemplates,
selector,
func(optionTemplate OptionTemplate) string {
return optionTemplate.Name
})
}
// SelectorBlueprintsBySel... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/generator_suite_test.go | configtemplate/generator/generator_suite_test.go | package generator_test
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"testing"
)
func TestTile(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Tile Suite")
}
| go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/resource_config.go | configtemplate/generator/resource_config.go | package generator
import (
"fmt"
"strings"
)
type Resource struct {
InstanceType InstanceType `yaml:"instance_type,omitempty"`
Instances interface{} `yaml:"instances,omitempty"`
PersistentDisk *PersistentDisk `yaml:"persistent_disk,omitempty"`
MaxInFlight interface{} `yaml:"max_in_flight"`
... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/integration/integration_suite_test.go | configtemplate/generator/integration/integration_suite_test.go | package integration
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"testing"
)
func TestTile(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Tile Generator Integration Suite")
}
| go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/integration/product_properties_test.go | configtemplate/generator/integration/product_properties_test.go | package integration_test
import (
"os"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"gopkg.in/yaml.v2"
"github.com/pivotal-cf/om/configtemplate/generator"
)
func getMetadata(filename string) *generator.Metadata {
fileData, err := os.ReadFile(filename)
Expect(err).ToNot(HaveOccurred())
metadata,... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/fakes/metadata.go | configtemplate/generator/fakes/metadata.go | // Code generated by counterfeiter. DO NOT EDIT.
package fakes
import (
"sync"
)
type FakeMetadata struct {
UsesOpsManagerSyslogPropertiesStub func() bool
usesOpsManagerSyslogPropertiesMutex sync.RWMutex
usesOpsManagerSyslogPropertiesArgsForCall []struct {
}
usesOpsManagerSyslogPropertiesReturns st... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/configtemplate/generator/fakes/jobtype.go | configtemplate/generator/fakes/jobtype.go | // Code generated by counterfeiter. DO NOT EDIT.
package fakes
import (
"sync"
)
type FakeJobType struct {
HasPersistentDiskStub func() bool
hasPersistentDiskMutex sync.RWMutex
hasPersistentDiskArgsForCall []struct {
}
hasPersistentDiskReturns struct {
result1 bool
}
hasPersistentDiskReturnsOnC... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/cmd/loadConfigFile.go | cmd/loadConfigFile.go | package cmd
import (
"fmt"
"github.com/jessevdk/go-flags"
"github.com/pivotal-cf/om/interpolate"
"gopkg.in/yaml.v2"
)
// Load the config file, (optionally) load the vars file, vars env as well
// To use this function, `Config` field must be defined in the command struct being passed in.
// To load vars, VarsFile... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/cmd/suite_test.go | cmd/suite_test.go | package cmd
import (
"testing"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
func TestCmd(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Cmd Suite")
}
| go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/cmd/loadConfigFile_test.go | cmd/loadConfigFile_test.go | package cmd
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var fakeOptions map[string]interface{}
var _ = Describe("parseOptions", func() {
BeforeEach(func() {
fakeOptions = map[string]interface{}{"test-name": `"pas`}
})
It("Should parse values with double quotes not escaping it", func()... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/cmd/main.go | cmd/main.go | package cmd
import (
"errors"
"fmt"
"io"
"log"
"net/http"
"os"
"regexp"
"strings"
"time"
"github.com/jessevdk/go-flags"
"github.com/olekukonko/tablewriter"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/extractor"
"github.com/pivotal-cf/om/formcontent"
"gi... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/integration/e2e_spnego_test.go | integration/e2e_spnego_test.go | //go:build integration
package integration
import (
"fmt"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"testing"
"github.com/pivotal-cf/om/pkg/testinfra"
)
// spnegoTestEnv holds the shared test infrastructure for SPNEGO proxy tests.
type spnegoTestEnv struct {
OmBinary string
ProxyURL string
... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/tools/tool.go | tools/tool.go | // +build tools
package tools
import (
_ "github.com/maxbrunsfeld/counterfeiter/v6"
)
// This file imports packages that are used when running go generate, or used
// during the development process but not otherwise depended on by built code.
| go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/presenters/table_presenter.go | presenters/table_presenter.go | package presenters
import (
"sort"
"strconv"
"strings"
"time"
"github.com/olekukonko/tablewriter"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/models"
)
//counterfeiter:generate -o ./fakes/table_writer.go --fake-name TableWriter . tableWriter
type tableWriter interface {
SetHeader([]string)
App... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/presenters/init_test.go | presenters/init_test.go | package presenters_test
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"testing"
)
func TestPresenters(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "presenters")
}
| go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/presenters/table_presenter_test.go | presenters/table_presenter_test.go | package presenters_test
import (
"strconv"
"time"
"github.com/olekukonko/tablewriter"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands/fakes"
"github.com/pivotal-cf/om/models"
"github.com/pivotal-cf/om/presenters"
)
var _ = Describe(... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/presenters/json_presenter.go | presenters/json_presenter.go | package presenters
import (
"encoding/json"
"io"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/models"
)
type JSONPresenter struct {
stdout io.Writer
}
func NewJSONPresenter(stdout io.Writer) JSONPresenter {
return JSONPresenter{
stdout: stdout,
}
}
func (j JSONPresenter) PresentAvailableProduc... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/presenters/presenter.go | presenters/presenter.go | package presenters
import (
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/models"
)
//counterfeiter:generate -o fakes/presenter.go --fake-name Presenter . Presenter
type Presenter interface {
PresentAvailableProducts([]models.Product)
PresentCertificateAuthorities([]api.CA)
PresentCertificateAuthorit... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/presenters/fakes/table_writer.go | presenters/fakes/table_writer.go | // Code generated by counterfeiter. DO NOT EDIT.
package fakes
import (
"sync"
)
type TableWriter struct {
AppendStub func([]string)
appendMutex sync.RWMutex
appendArgsForCall []struct {
arg1 []string
}
RenderStub func()
renderMutex sync.RWMutex
renderArgsForCall []struct {
}
Set... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/presenters/fakes/formatted_presenter.go | presenters/fakes/formatted_presenter.go | // Code generated by counterfeiter. DO NOT EDIT.
package fakes
import (
"sync"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/models"
"github.com/pivotal-cf/om/presenters"
)
type FormattedPresenter struct {
PresentAvailableProductsStub func([]models.Product)
presentAvailableProductsMutex ... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/presenters/fakes/presenter.go | presenters/fakes/presenter.go | // Code generated by counterfeiter. DO NOT EDIT.
package fakes
import (
"sync"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/models"
"github.com/pivotal-cf/om/presenters"
)
type Presenter struct {
PresentAvailableProductsStub func([]models.Product)
presentAvailableProductsMutex sync.RWM... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/binarydeps/deps.go | binarydeps/deps.go | // +build tools
/*
There are binary dependencies of our concourse tasks.
They need to be declared so their licences can be scanned for OSL.
If you add something via `go get ...package name...`,
and it get's remove via `go tidy` add it here.
*/
package binarydeps
import _ "code.cloudfoundry.org/credhub-cli"
impo... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/disable_product_verfiers.go | commands/disable_product_verfiers.go | package commands
import (
"errors"
"fmt"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/presenters"
)
type DisableProductVerifiers struct {
service disableProductVerifiersService
presenter presenters.FormattedPresenter
logger logger
Options struct {
ProductName string `long:"product-nam... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/credential_references_test.go | commands/credential_references_test.go | package commands_test
import (
"errors"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
presenterfakes "github.com/pivotal-cf/om/presenters/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("CredentialReferences", f... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/stage_product_test.go | commands/stage_product_test.go | package commands_test
import (
"errors"
"fmt"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("StageProduct", func() {
var (
fakeService *fakes.StageProductService
log... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/staged_manifest.go | commands/staged_manifest.go | package commands
import (
"fmt"
"github.com/pivotal-cf/om/api"
)
type StagedManifest struct {
service stagedManifestService
logger logger
Options struct {
ProductName string `long:"product-name" short:"p" required:"true" description:"name of product"`
}
}
//counterfeiter:generate -o ./fakes/staged_manifest... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/assign_multi_stemcell.go | commands/assign_multi_stemcell.go | package commands
import (
"errors"
"fmt"
"strings"
"github.com/pivotal-cf/om/api"
)
type AssignMultiStemcell struct {
logger logger
service assignMultiStemcellService
Options struct {
InterpolateOptions interpolateConfigFileOptions `group:"config file interpolation"`
ProductName string ... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/expiring_certificates_test.go | commands/expiring_certificates_test.go | package commands_test
import (
"errors"
"fmt"
"log"
"regexp"
"strings"
"time"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
)
var _ = Describe("Expiring... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/configure_saml_authentication_test.go | commands/configure_saml_authentication_test.go | package commands_test
import (
"errors"
"fmt"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("ConfigureSAMLAuthentication.Execute", func() {
var (
service *fake... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/assign_multi_stemcell_test.go | commands/assign_multi_stemcell_test.go | package commands_test
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
)
var _ = Describe("AssignMutliStemcell", func() {
var (
fakeService *fakes.AssignMultiStemcellService
logger ... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/credentials_test.go | commands/credentials_test.go | package commands_test
import (
"errors"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
presenterfakes "github.com/pivotal-cf/om/presenters/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("Credentials", func() {
... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/products.go | commands/products.go | package commands
import (
"fmt"
"sort"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/models"
"github.com/pivotal-cf/om/presenters"
)
//counterfeiter:generate -o ./fakes/product_service.go --fake-name ProductService . productService
type productService interface {
GetDiagnosticReport() (api.Diagnost... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/log_writer.go | commands/log_writer.go | package commands
import (
"io"
"strings"
)
type LogWriter struct {
writer io.Writer
offset int64
}
func NewLogWriter(writer io.Writer) *LogWriter {
return &LogWriter{
writer: writer,
}
}
func (lw *LogWriter) Flush(logs string) error {
reader := strings.NewReader(logs)
_, err := reader.Seek(lw.offset, 0)
... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/create_vm_extension_test.go | commands/create_vm_extension_test.go | package commands_test
import (
"encoding/json"
"errors"
"fmt"
"os"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
)
const ymlVMExtensionFile = `---
vm-extension-config:
cloud_properties:... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/upload_stemcell_test.go | commands/upload_stemcell_test.go | package commands_test
import (
"context"
"errors"
"fmt"
"io"
"os"
"strings"
"github.com/jessevdk/go-flags"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
"github.com/pivotal-cf/om/formcontent"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/pending_changes_test.go | commands/pending_changes_test.go | package commands_test
import (
"errors"
"log"
"github.com/onsi/gomega/gbytes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
presenterfakes "github.com/pivotal-cf/om/presenters/fakes"
)
v... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/export_installation.go | commands/export_installation.go | package commands
import (
"fmt"
)
type ExportInstallation struct {
logger logger
service exportInstallationService
Options struct {
OutputFile string `long:"output-file" short:"o" required:"true" description:"output path to write installation to"`
}
}
//counterfeiter:generate -o ./fakes/export_installa... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/log_writer_test.go | commands/log_writer_test.go | package commands_test
import (
"bytes"
"errors"
"github.com/pivotal-cf/om/commands"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("LogWriter", func() {
Describe("Flush", func() {
var (
buffer *bytes.Buffer
writer *commands.LogWriter
)
BeforeEach(func() {
buffer = ... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/configure_product.go | commands/configure_product.go | package commands
import (
"encoding/json"
"errors"
"fmt"
"sort"
"strings"
"github.com/pivotal-cf/om/interpolate"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/config"
yamlConverter "github.com/ghodss/yaml"
"gopkg.in/yaml.v2"
)
type ConfigureProduct struct {
environFunc func() []string
servic... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/certificate_authority_test.go | commands/certificate_authority_test.go | package commands_test
import (
"errors"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
presenterfakes "github.com/pivotal-cf/om/presenters/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("Certificate Authority", ... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/configure_opsman_test.go | commands/configure_opsman_test.go | package commands_test
import (
"errors"
"io"
"log"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
)
var _ = Describe("ConfigureOpsman", func() {
var (
command *commands.ConfigureOpsm... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/get_certificates_test.go | commands/get_certificates_test.go | package commands_test
import (
"errors"
"log"
"time"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
)
var _ = Describe("GetCertificates", func() {
var (
... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/configure_director.go | commands/configure_director.go | package commands
import (
"encoding/json"
"errors"
"fmt"
"sort"
"strings"
"github.com/pivotal-cf/om/interpolate"
"github.com/pivotal-cf/om/api"
"gopkg.in/yaml.v2"
)
type ConfigureDirector struct {
environFunc func() []string
service configureDirectorService
logger logger
Options struct {
... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/delete_ssl_certificate.go | commands/delete_ssl_certificate.go | package commands
type DeleteSSLCertificate struct {
service deleteSSLCertificateService
logger logger
Options struct{}
}
//counterfeiter:generate -o ./fakes/delete_ssl_certificate_service.go --fake-name DeleteSSLCertificateService . deleteSSLCertificateService
type deleteSSLCertificateService interface {
Delete... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/staged_config.go | commands/staged_config.go | package commands
import (
"fmt"
"strings"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/config"
"github.com/pivotal-cf/om/configparser"
"gopkg.in/yaml.v2"
)
type StagedConfig struct {
service stagedConfigService
logger logger
Options struct {
Product string `long:"product-name" sh... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/configure_authentication_test.go | commands/configure_authentication_test.go | package commands_test
import (
"errors"
"log"
"github.com/onsi/gomega/gbytes"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("ConfigureAuthentication.Execute", func() {
... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/installation_log_test.go | commands/installation_log_test.go | package commands_test
import (
"errors"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
)
var _ = Describe("InstallationLog", func() {
var (
command *commands.InstallationLog
fakeServ... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/ssl_certificate.go | commands/ssl_certificate.go | package commands
import (
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/presenters"
)
type SSLCertificate struct {
service sslCertificateService
presenter presenters.FormattedPresenter
Options struct {
Format string `long:"format" short:"f" default:"table" description:"Format to print as (option... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/import_installation_test.go | commands/import_installation_test.go | package commands_test
import (
"archive/zip"
"context"
"errors"
"fmt"
"io"
"os"
"strings"
"time"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
"github.com/pivotal-cf/om/formcontent"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/configure_director_test.go | commands/configure_director_test.go | package commands_test
import (
"encoding/json"
"errors"
"fmt"
"log"
"os"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
)
var _ = Describe("ConfigureDirec... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/staged_products.go | commands/staged_products.go | package commands
import (
"fmt"
"github.com/pivotal-cf/om/presenters"
)
type StagedProducts struct {
presenter presenters.FormattedPresenter
service diagnosticReportService
Options struct {
Format string `long:"format" short:"f" default:"table" description:"Format to print as (options: table,json)"`
}
}
... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/export_installation_test.go | commands/export_installation_test.go | package commands_test
import (
"errors"
"fmt"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("ExportInstallation", func() {
var (
fakeService *fakes.ExportInstallationService
logger *fakes.Logg... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/pre_deploy_check_test.go | commands/pre_deploy_check_test.go | package commands_test
import (
"errors"
"log"
"regexp"
"github.com/fatih/color"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
presenterfakes "github.com/p... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/delete_installation_test.go | commands/delete_installation_test.go | package commands_test
import (
"bytes"
"errors"
"fmt"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("DeleteInstallation", func() {
var (
fakeService *fakes.DeleteIn... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/disable_director_verifiers_test.go | commands/disable_director_verifiers_test.go | package commands_test
import (
"errors"
"log"
"github.com/onsi/gomega/gbytes"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
presenterfakes "github.com/pivotal-cf/om/presenters/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
v... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/pre_deploy_check.go | commands/pre_deploy_check.go | package commands
import (
"errors"
"fmt"
"strings"
"github.com/fatih/color"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/presenters"
)
type PreDeployCheck struct {
service preDeployCheckService
presenter presenters.FormattedPresenter
logger logger
Options struct {
Format string `long:"... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/init_test.go | commands/init_test.go | package commands_test
import (
"github.com/fatih/color"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"os"
"regexp"
"strings"
"testing"
)
func TestCommands(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "commands")
}
func writeTestConfigFile(contents string) string {
file, err := os.Crea... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/expiring_licenses.go | commands/expiring_licenses.go | package commands
import (
"errors"
"regexp"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/presenters"
)
//counterfeiter:generate -o ./fakes/expiring_licenses_service.go --fake-name ExpiringLicensesService . expiringLicensesService
type expiringLicensesService interface {
ListExpiringLicenses(string, ... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/errands.go | commands/errands.go | package commands
import (
"fmt"
"strconv"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/models"
"github.com/pivotal-cf/om/presenters"
)
//counterfeiter:generate -o ./fakes/errands_service.go --fake-name ErrandsService . errandsService
type errandsService interface {
GetStagedProductByName(productNam... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/errands_test.go | commands/errands_test.go | package commands_test
import (
"errors"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
"github.com/pivotal-cf/om/models"
presenterfakes "github.com/pivotal-cf/om/presenters/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ =... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/regenerate_certificates.go | commands/regenerate_certificates.go | package commands
type RegenerateCertificates struct {
service regenerateCertificatesService
logger logger
}
//counterfeiter:generate -o ./fakes/regenerate_certificates_service.go --fake-name RegenerateCertificatesService . regenerateCertificatesService
type regenerateCertificatesService interface {
RegenerateCert... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/staged_config_test.go | commands/staged_config_test.go | package commands_test
import (
"errors"
"fmt"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("StagedConfig", func() {
var (
logger *fakes.Logger
fakeService... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/config_template.go | commands/config_template.go | package commands
import (
"errors"
"fmt"
"os"
"github.com/pivotal-cf/om/configtemplate/generator"
"github.com/pivotal-cf/om/configtemplate/metadata"
)
type ConfigTemplate struct {
environFunc envProvider
buildProvider configTemplateBuildProvider
Options struct {
InterpolateOptions interpolateConfig... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/delete_unused_products_test.go | commands/delete_unused_products_test.go | package commands_test
import (
"errors"
"fmt"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("DeleteProduct", func() {
var (
command *commands.DeleteUnusedProducts
... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/vm_lifecycle.go | commands/vm_lifecycle.go | package commands
import (
"github.com/pivotal-cf/om/vmlifecycle/configfetchers"
"github.com/pivotal-cf/om/vmlifecycle/runner"
"github.com/pivotal-cf/om/vmlifecycle/taskmodifier"
"github.com/pivotal-cf/om/vmlifecycle/vmlifecyclecommands"
"github.com/pivotal-cf/om/vmlifecycle/vmmanagers"
"io"
"os"
"time"
)
type... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/pending_changes.go | commands/pending_changes.go | package commands
import (
"fmt"
"strings"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/presenters"
)
type PendingChanges struct {
service pendingChangesService
presenter presenters.FormattedPresenter
Options struct {
Check bool `long:"check" description:"Exit 1 if there are any pending ch... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/interpolate_test.go | commands/interpolate_test.go | package commands_test
import (
"os"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
)
var templateNoParameters = `hello: world`
var templateNoParametersOverStdin = `hello: from standard input`
var templateWithParameters = `h... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/unstage_product.go | commands/unstage_product.go | package commands
import (
"fmt"
"github.com/pivotal-cf/om/api"
)
type UnstageProduct struct {
logger logger
service unstageProductService
Options struct {
Product string `long:"product-name" short:"p" required:"true" description:"name of product"`
}
}
//counterfeiter:generate -o ./fakes/unstage_product_ser... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/delete_certificate_authority_test.go | commands/delete_certificate_authority_test.go | package commands_test
import (
"errors"
"fmt"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
)
var _ = Describe("DeleteCertificateAuthority", func() {
var (
fakeService *fakes.DeleteCerti... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/configure_product_test.go | commands/configure_product_test.go | package commands_test
import (
"encoding/json"
"errors"
"fmt"
"os"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("ConfigureProduct", func() {
Describe("Execute", func(... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | true |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/credential_references.go | commands/credential_references.go | package commands
import (
"fmt"
"sort"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/presenters"
)
type CredentialReferences struct {
service credentialReferencesService
presenter presenters.FormattedPresenter
logger logger
Options struct {
Product string `long:"product-name" short:"p" re... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/configure_opsman.go | commands/configure_opsman.go | package commands
import (
"errors"
"fmt"
"sort"
"strings"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/interpolate"
"gopkg.in/yaml.v2"
)
type ConfigureOpsman struct {
service configureOpsmanService
logger logger
environFunc func() []string
Options struct {
ConfigFile string `l... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/credentials.go | commands/credentials.go | package commands
import (
"fmt"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/presenters"
)
type Credentials struct {
service credentialsService
presenter presenters.FormattedPresenter
logger logger
Options struct {
Product string `long:"product-name" short:"p" required... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/delete_products_test.go | commands/delete_products_test.go | package commands_test
import (
"errors"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("DeleteProduct", func() {
var (
command *commands.DeleteProduct
fakeService ... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/upload_product.go | commands/upload_product.go | package commands
import (
"fmt"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/extractor"
"github.com/pivotal-cf/om/validator"
)
const maxProductUploadRetries = 2
type UploadProduct struct {
multipart multipart
logger logger
service uploadProductService
Options struct {
InterpolateOptions ... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/curl_test.go | commands/curl_test.go | package commands_test
import (
"errors"
"fmt"
"io"
"net/http"
"os"
"strings"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
type errReader struct{}
func (er errReader) Read([]byte) (i... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/config_template_test.go | commands/config_template_test.go | package commands_test
import (
"errors"
"os"
"path/filepath"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
)
var _ = Describe("ConfigTemplate", func() {
var (
command *commands.ConfigTemplate
)
createOutputDirector... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/ssl_certificate_test.go | commands/ssl_certificate_test.go | package commands_test
import (
"errors"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
presenterfakes "github.com/pivotal-cf/om/presenters/fakes"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("SslCertificate", func() ... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/bosh_diff.go | commands/bosh_diff.go | package commands
import (
"errors"
"fmt"
"sort"
"strings"
"github.com/fatih/color"
"github.com/pivotal-cf/om/api"
)
type BoshDiff struct {
service boshDiffService
logger logger
Options struct {
Product []string `long:"product-name" short:"p" description:"Product to get diff for. Pass repeatedly for mult... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/disable_director_verfiers.go | commands/disable_director_verfiers.go | package commands
import (
"errors"
"fmt"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/presenters"
)
type DisableDirectorVerifiers struct {
service disableDirectorVerifiersService
presenter presenters.FormattedPresenter
logger logger
Options struct {
InterpolateOptions interpolateConfigFil... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/bosh_diff_test.go | commands/bosh_diff_test.go | package commands_test
import (
"errors"
"log"
"github.com/fatih/color"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
)
var _ = Describe("BoshDiff", func() ... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/delete_ssl_certificate_test.go | commands/delete_ssl_certificate_test.go | package commands_test
import (
"errors"
"fmt"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
)
var _ = Describe("DeleteSSLCertificate", func() {
var (
fakeService *fakes.DeleteSSLCertificateService
fakeLogger *fakes.... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/stage_product.go | commands/stage_product.go | package commands
import (
"fmt"
"os"
"gopkg.in/yaml.v2"
"github.com/pivotal-cf/om/api"
)
type StageProduct struct {
logger logger
service stageProductService
Options struct {
ConfigFile string `long:"config" description:"the config file to load product name and version (can be same as the product configur... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
pivotal-cf/om | https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/commands/upload_product_test.go | commands/upload_product_test.go | package commands_test
import (
"errors"
"fmt"
"io"
"log"
"os"
"regexp"
"strings"
"github.com/onsi/gomega/gbytes"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/commands/fakes"
"github.com/pivotal-cf/om/extractor"
"github.com/pivotal-cf/om/formcontent"
. "g... | go | Apache-2.0 | 245e150f629341f904f56882e30f43e376dbbcc5 | 2026-01-07T09:45:45.909243Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.