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/api/info_service.go
api/info_service.go
package api import ( "encoding/json" "fmt" "strconv" "strings" ) // Info contains information about Ops Manager itself. type Info struct { Version string `json:"version"` } func (i Info) VersionAtLeast(major, minor int) (bool, error) { // Given: X.Y-build.Z or X.Y.Z-build.A // Extract X and Y parts := string...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/multi_stemcell_service.go
api/multi_stemcell_service.go
package api import ( "encoding/json" "fmt" ) type ProductMultiStemcells struct { Products []ProductMultiStemcell `json:"products"` } type StemcellObject struct { OS string `json:"os,omitempty"` Version string `json:"version,omitempty"` } type ProductMultiStemcell struct { GUID string ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/setup_service_test.go
api/setup_service_test.go
package api_test import ( "fmt" "net/http" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/om/api" ) var _ = Describe("Setup", func() { var ( client *ghttp.Server service api.Api ) BeforeEach(func() { client = ghttp.NewServer() servi...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/director_service.go
api/director_service.go
package api import ( "encoding/json" "errors" "fmt" "io" "net/http" yamlConverter "github.com/ghodss/yaml" "gopkg.in/yaml.v2" ) type AvailabilityZoneInput struct { AvailabilityZones json.RawMessage `json:"availability_zones"` } type NetworkInput struct { Networks json.RawMessage `json:"networks"` } type N...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/request_service_test.go
api/request_service_test.go
package api_test import ( "net/http" "strings" "github.com/onsi/gomega/ghttp" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/pivotal-cf/om/api" ) var _ = Describe("RequestService", func() { var ( client *ghttp.Server service api.Api ) BeforeEach(func() { client = ghttp.NewSer...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/revert_staged_changes.go
api/revert_staged_changes.go
package api import ( "errors" "fmt" "net/http" ) func (a Api) RevertStagedChanges() (bool, error) { request, err := http.NewRequest("DELETE", "/api/v0/staged", nil) if err != nil { panic(err) } response, err := a.client.Do(request) if err != nil { return false, fmt.Errorf("could not revert staged changes...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/vm_types_service.go
api/vm_types_service.go
package api import ( "encoding/json" "errors" "fmt" "io" ) type CreateVMTypes struct { VMTypes []CreateVMType `json:"vm_types" yaml:"vm_types"` } type VMTypesResponse struct { VMTypes []VMType `json:"vm_types"` } type CreateVMType struct { RAM uint `yaml:"ram"` Name ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/configure_opsman_service_test.go
api/configure_opsman_service_test.go
package api_test import ( "net/http" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/om/api" ) var _ = Describe("ConfigureOpsmanService", func() { var ( client *ghttp.Server service api.Api ) BeforeEach(func() { client = ghttp.NewServer(...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/disable_product_verifiers_service.go
api/disable_product_verifiers_service.go
package api import ( "encoding/json" "fmt" "io" ) const listProductVerifiersEndpointTemplate = "/api/v0/staged/products/%s/verifiers/install_time" const disableProductVerifiersEndpointTemplate = "/api/v0/staged/products/%s/verifiers/install_time/%s" func (a Api) ListProductVerifiers(productName string) ([]Verifie...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/available_products_service.go
api/available_products_service.go
package api import ( "encoding/json" "fmt" "github.com/hashicorp/go-version" "io" "net/http" "net/url" "sort" ) const availableProductsEndpoint = "/api/v0/available_products" type UploadAvailableProductInput struct { ContentLength int64 Product io.Reader ContentType string PollingInterval in...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/disable_director_verifiers_service_test.go
api/disable_director_verifiers_service_test.go
package api_test import ( "net/http" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/om/api" ) var _ = Describe("DisableDirectorVerifiersService", func() { var ( client *ghttp.Server service api.Api ) BeforeEach(func() { client = ghttp.N...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/security_service.go
api/security_service.go
package api import ( "encoding/json" "fmt" ) type certResponse struct { Cert string `json:"root_ca_certificate_pem"` } func (a Api) GetSecurityRootCACertificate() (string, error) { resp, err := a.sendAPIRequest("GET", "/api/v0/security/root_ca_certificate", nil) if err != nil { return "", fmt.Errorf("failed t...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/request_service.go
api/request_service.go
package api import ( "fmt" "io" "net/http" ) type RequestServiceCurlInput struct { Path string Method string Data io.Reader Headers http.Header } type RequestServiceCurlOutput struct { StatusCode int Headers http.Header Body io.ReadCloser } func (a Api) Curl(input RequestServiceCurlInput) ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/jobs_service_test.go
api/jobs_service_test.go
package api_test import ( "fmt" "net/http" "github.com/onsi/gomega/ghttp" "gopkg.in/yaml.v2" "github.com/pivotal-cf/om/api" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var _ = Describe("JobsService", func() { var ( client *ghttp.Server service api.Api ) BeforeEach(func() { client =...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/certificate_authorities_service.go
api/certificate_authorities_service.go
package api import ( "encoding/json" "fmt" ) type ActivateCertificateAuthorityInput struct { GUID string } type DeleteCertificateAuthorityInput struct { GUID string } type CertificateAuthorityInput struct { CertPem string `json:"cert_pem"` PrivateKeyPem string `json:"private_key_pem"` } type Certificat...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/vm_extensions_service.go
api/vm_extensions_service.go
package api import ( "encoding/json" "fmt" "io" ) type VMExtensionResponse struct { VMExtensions []VMExtension `json:"vm_extensions"` } type VMExtension struct { Name string `yaml:"name" json:"name"` CloudProperties map[string]interface{} `yaml:"cloud_properties" json:"cloud_properti...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/deployed_products_service.go
api/deployed_products_service.go
package api import ( "encoding/json" "fmt" "gopkg.in/yaml.v2" ) type LicenseMetadata struct { ExpiresAt string `json:"expiry"` ProductName string `json:"product_name"` ProductVersion string `json:"product_version"` PropertyReference string `json:"property_reference"` } type DeployedProductOut...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/installations_service_test.go
api/installations_service_test.go
package api_test import ( "log" "net/http" "time" "github.com/onsi/gomega/gbytes" "github.com/onsi/gomega/ghttp" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/pivotal-cf/om/api" ) var _ = Describe("InstallationsService", func() { var ( client *ghttp.Server service api.Api std...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/certificates_service.go
api/certificates_service.go
package api import ( "encoding/json" "io" ) type DomainsInput struct { Domains []string `json:"domains"` } func (a Api) GenerateCertificate(domains DomainsInput) (string, error) { payload, err := json.Marshal(domains) if err != nil { return "", err // not tested } resp, err := a.sendAPIRequest("POST", "/ap...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/certificates_service_test.go
api/certificates_service_test.go
package api_test import ( "net/http" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/om/api" ) var _ = Describe("Certificates", func() { var ( client *ghttp.Server service api.Api ) BeforeEach(func() { client = ghttp.NewServer() servic...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/staged_director_service.go
api/staged_director_service.go
package api import ( "fmt" "net/http" "gopkg.in/yaml.v2" ) type NetworksConfigurationOutput struct { ICMP bool `yaml:"icmp_checks_enabled"` Networks []NetworkConfigurationOutput } type NetworkConfigurationOutput struct { Name string `yaml:"name"` ServiceNetwork *bool `yaml:"ser...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/configure_opsman_service.go
api/configure_opsman_service.go
package api import ( "encoding/json" "fmt" "net/http" "strings" ) type SSLCertificateSettings struct { CertPem string `json:"certificate" yaml:"certificate"` PrivateKeyPem string `json:"private_key" yaml:"private_key"` } type SSLCertificateOutput struct { Certificate SSLCertificate `json:"ssl_certificat...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/bosh_environment_service.go
api/bosh_environment_service.go
package api import ( "encoding/json" "fmt" "io" "net/http" "strings" ) type GetBoshEnvironmentOutput struct { Client string ClientSecret string Environment string } type credential struct { Credential string `json:"credential"` } func (a Api) GetBoshEnvironment() (GetBoshEnvironmentOutput, error) { ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/director_service_test.go
api/director_service_test.go
package api_test import ( "encoding/json" "net/http" "github.com/onsi/gomega/ghttp" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/pivotal-cf/om/api" "github.com/pivotal-cf/om/api/fakes" ) var _ = Describe("Director", func() { var ( server *ghttp.Server stderr *fakes.Logger se...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
true
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/sendAPIRequest.go
api/sendAPIRequest.go
package api import ( "bytes" "fmt" "net/http" ) func (a Api) sendAPIRequest(method, endpoint string, jsonData []byte) (*http.Response, error) { return sendRequest(a.client, method, endpoint, jsonData) } func (a Api) sendProgressAPIRequest(method, endpoint string, jsonData []byte) (*http.Response, error) { retur...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/staged_products_service_test.go
api/staged_products_service_test.go
package api_test import ( "net/http" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/om/api" ) var _ = Describe("StagedProducts", func() { var ( client *ghttp.Server service api.Api ) BeforeEach(func() { client = ghttp.NewServer() ser...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
true
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/diff_service.go
api/diff_service.go
package api import ( "encoding/json" "fmt" "io" ) type DirectorDiff struct { Manifest ManifestDiff `json:"manifest"` CloudConfig ManifestDiff `json:"cloud_config"` RuntimeConfigs []RuntimeConfigsDiff `json:"runtime_configs"` CPIConfigs []CPIConfigsDiff `json:"cpi_configs"` } t...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/expiring_license_service.go
api/expiring_license_service.go
package api import ( "fmt" "regexp" "strconv" "time" ) type ExpiringLicenseOutput struct { ProductName string `json:"product_name"` GUID string `json:"guid"` ExpiresAt time.Time `json:"expires_at"` ProductState []string `json:"product_state"` ProductVersion string `json:"product...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/credentials_service_test.go
api/credentials_service_test.go
package api_test import ( "net/http" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/om/api" ) var _ = Describe("Credentials", func() { var ( client *ghttp.Server service api.Api ) BeforeEach(func() { client = ghttp.NewServer() service...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/expiring_license_service_test.go
api/expiring_license_service_test.go
package api_test import ( "fmt" "net/http" "slices" "time" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/om/api" ) var _ = Describe("ExpiringLicenseService", func() { var ( client *ghttp.Server service api.Api ) BeforeEach(func() { c...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/available_products_service_test.go
api/available_products_service_test.go
package api_test import ( "net/http" "strings" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/om/api" ) var _ = Describe("Available Products", func() { var ( progressClient *ghttp.Server client *ghttp.Server service api.Api ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/vm_types_service_test.go
api/vm_types_service_test.go
package api_test import ( "encoding/json" "net/http" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/om/api" ) var _ = Describe("VMTypes", func() { var ( client *ghttp.Server service api.Api ) BeforeEach(func() { client = ghttp.NewServe...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/deployed_products_service_test.go
api/deployed_products_service_test.go
package api_test import ( "net/http" "github.com/onsi/gomega/ghttp" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/pivotal-cf/om/api" ) var _ = Describe("DeployedProducts", func() { var ( client *ghttp.Server service api.Api ) BeforeEach(func() { client = ghttp.NewServer() s...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/helpers.go
api/helpers.go
package api import ( "fmt" "gopkg.in/yaml.v2" "reflect" yamlConverter "github.com/ghodss/yaml" ) // In general we'd like to keep the API layer as simple as possible, e.g. each method hits a single API endpoint. // This file contains helper methods that we wish we API endpoints, but the Ops Manager API does not y...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/setup_service.go
api/setup_service.go
package api import ( "encoding/json" "fmt" "io" "net/http" "net/url" "strings" ) type LDAPSettings struct { EmailAttribute string `json:"email_attribute,omitempty"` GroupSearchBase string `json:"group_search_base,omitempty"` GroupSearchFilter string `json:"group_search_filter,omitempty"` LDAPPasswor...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/disable_product_verifiers_service_test.go
api/disable_product_verifiers_service_test.go
package api_test import ( "net/http" "net/url" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/om/api" ) type httpClient struct { serverURI string } func (h httpClient) Do(req *http.Request) (*http.Response, error) { uri, err := url.Parse(h.ser...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/security_service_test.go
api/security_service_test.go
package api_test import ( "net/http" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/om/api" ) var _ = Describe("Security", func() { var ( client *ghttp.Server service api.Api ) BeforeEach(func() { client = ghttp.NewServer() service =...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/credentials_service.go
api/credentials_service.go
package api import ( "encoding/json" "fmt" ) type GetDeployedProductCredentialInput struct { DeployedGUID string CredentialReference string } type GetDeployedProductCredentialOutput struct { Credential Credential `json:"credential"` } type CredentialReferencesOutput struct { Credentials []string `json:...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/stemcell_service_test.go
api/stemcell_service_test.go
package api_test import ( "net/http" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/om/api" ) var _ = Describe("StemcellService", func() { var ( server *ghttp.Server service api.Api ) BeforeEach(func() { server = ghttp.NewServer() cl...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/installations_service.go
api/installations_service.go
package api import ( "encoding/json" "fmt" "net/http" "time" ) const ( StatusRunning = "running" StatusSucceeded = "succeeded" StatusFailed = "failed" ) type InstallationsServiceOutput struct { ID int Status string Logs string StartedAt *time.Time `json:"started_at"` FinishedAt *t...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/fakes/httpclient.go
api/fakes/httpclient.go
// Code generated by counterfeiter. DO NOT EDIT. package fakes import ( "net/http" "sync" ) type HttpClient struct { DoStub func(*http.Request) (*http.Response, error) doMutex sync.RWMutex doArgsForCall []struct { arg1 *http.Request } doReturns struct { result1 *http.Response result2 error ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/api/fakes/logger.go
api/fakes/logger.go
// Code generated by counterfeiter. DO NOT EDIT. package fakes import ( "sync" ) type Logger struct { PrintlnStub func(...interface{}) printlnMutex sync.RWMutex printlnArgsForCall []struct { arg1 []interface{} } invocations map[string][][]interface{} invocationsMutex sync.RWMutex } func (f...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/pivnet_client.go
download_clients/pivnet_client.go
package download_clients import ( "fmt" "io" "log" "os" "path" "path/filepath" "strconv" "strings" "github.com/pivotal-cf/go-pivnet/v9" "github.com/pivotal-cf/go-pivnet/v9/logshim" "github.com/pivotal-cf/go-pivnet/v9/download" pivnetlog "github.com/pivotal-cf/go-pivnet/v9/logger" ) //counterfeiter:gener...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/interfaces.go
download_clients/interfaces.go
package download_clients import ( "os" "github.com/pivotal-cf/om/extractor" ) //counterfeiter:generate -o ./fakes/file_artifacter.go --fake-name FileArtifacter . FileArtifacter type FileArtifacter interface { Name() string SHA256() string ProductMetadata() (*extractor.Metadata, error) } //counterfeiter:generat...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/init_test.go
download_clients/init_test.go
package download_clients_test import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "testing" ) func TestCommands(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "download_clients") }
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/determine_product_version_test.go
download_clients/determine_product_version_test.go
package download_clients_test import ( "errors" "log" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/gbytes" "github.com/pivotal-cf/om/download_clients" "github.com/pivotal-cf/om/download_clients/fakes" ) var _ = Describe("DetermineProductVersion", func() { When("an exact v...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/azure_client.go
download_clients/azure_client.go
package download_clients import ( "github.com/graymeta/stow" "github.com/graymeta/stow/azure" "gopkg.in/go-playground/validator.v9" "log" ) type AzureConfiguration struct { StorageAccount string `validate:"required"` Key string `validate:"required"` Container string `validate:"required"` Produ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/s3_client.go
download_clients/s3_client.go
package download_clients import ( "errors" "log" "strconv" "github.com/graymeta/stow" "github.com/graymeta/stow/s3" "gopkg.in/go-playground/validator.v9" ) type S3Configuration struct { Bucket string `validate:"required"` AccessKeyID string SecretAccessKey string RegionName string `valida...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/stow_client.go
download_clients/stow_client.go
package download_clients import ( "fmt" "io" "log" "os" "path/filepath" "regexp" "strings" "github.com/cheggaaa/pb/v3" "github.com/graymeta/stow" "github.com/pivotal-cf/om/extractor" ) //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate //counterfeiter:generate -o ./fakes/config_servic...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/pivnet_client_test.go
download_clients/pivnet_client_test.go
package download_clients_test import ( "bytes" "errors" "fmt" "log" "net/http" "os" "time" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/go-pivnet/v9" pivnetlog "github.com/pivotal-cf/go-pivnet/v9/logger" "github.com/pivotal-cf/om/download...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/file_artifact.go
download_clients/file_artifact.go
package download_clients import ( "errors" "fmt" "github.com/pivotal-cf/go-pivnet/v9" "github.com/pivotal-cf/om/extractor" ) type PivnetFileArtifact struct { slug string releaseID int productFile pivnet.ProductFile client pivnet.Client } var ErrCannotExtractMetadata = errors.New("there is no ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/stow_client_test.go
download_clients/stow_client_test.go
package download_clients_test import ( "errors" "fmt" "log" "os" "github.com/graymeta/stow" "github.com/pivotal-cf/om/download_clients" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) // should delete most of s3_client_test (validation stays) // this file should test the interface methods. var ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/s3_client_test.go
download_clients/s3_client_test.go
package download_clients_test import ( "archive/zip" "errors" "io" "log" "net/url" "os" "strings" "text/template" "github.com/graymeta/stow" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/pivotal-cf/om/download_clients" ) var _ = Describe("S3Client", func() { var stderr *log.Logge...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/gcs_client.go
download_clients/gcs_client.go
package download_clients import ( "github.com/graymeta/stow" "github.com/graymeta/stow/google" storage "google.golang.org/api/storage/v1beta2" "gopkg.in/go-playground/validator.v9" "log" ) type GCSConfiguration struct { Bucket string `validate:"required"` ServiceAccountJSON string `validate:"requir...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/logger.go
download_clients/logger.go
package download_clients type Logger interface { Print(v ...interface{}) Printf(format string, v ...interface{}) Println(v ...interface{}) }
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/determine_product_version.go
download_clients/determine_product_version.go
package download_clients import ( "errors" "fmt" "log" "regexp" "sort" "strings" "github.com/hashicorp/go-version" ) //counterfeiter:generate -o ./fakes/product_versioner.go --fake-name ProductVersioner . productVersioner type productVersioner interface { GetAllProductVersions(slug string) ([]string, error) ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/stemcell.go
download_clients/stemcell.go
package download_clients type stemcell struct { slug string version string } func (s stemcell) Slug() string { return s.slug } func (s stemcell) Version() string { return s.version }
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/fakes/product_versioner.go
download_clients/fakes/product_versioner.go
// Code generated by counterfeiter. DO NOT EDIT. package fakes import ( "sync" ) type ProductVersioner struct { GetAllProductVersionsStub func(string) ([]string, error) getAllProductVersionsMutex sync.RWMutex getAllProductVersionsArgsForCall []struct { arg1 string } getAllProductVersionsReturns s...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/fakes/product_downloader_service.go
download_clients/fakes/product_downloader_service.go
// Code generated by counterfeiter. DO NOT EDIT. package fakes import ( "os" "sync" "github.com/pivotal-cf/om/download_clients" ) type ProductDownloader struct { DownloadProductToFileStub func(download_clients.FileArtifacter, *os.File) error downloadProductToFileMutex sync.RWMutex downloadProductT...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/fakes/stemcell_artifacter.go
download_clients/fakes/stemcell_artifacter.go
// Code generated by counterfeiter. DO NOT EDIT. package fakes import ( "sync" "github.com/pivotal-cf/om/download_clients" ) type StemcellArtifacter struct { SlugStub func() string slugMutex sync.RWMutex slugArgsForCall []struct { } slugReturns struct { result1 string } slugReturnsOnCall map[...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/fakes/file_artifacter.go
download_clients/fakes/file_artifacter.go
// Code generated by counterfeiter. DO NOT EDIT. package fakes import ( "sync" "github.com/pivotal-cf/om/download_clients" "github.com/pivotal-cf/om/extractor" ) type FileArtifacter struct { NameStub func() string nameMutex sync.RWMutex nameArgsForCall []struct { } nameReturns struct { result1...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/fakes/pivnet_downloader_service.go
download_clients/fakes/pivnet_downloader_service.go
// Code generated by counterfeiter. DO NOT EDIT. package fakes import ( "io" "sync" pivnet "github.com/pivotal-cf/go-pivnet/v9" "github.com/pivotal-cf/go-pivnet/v9/download" "github.com/pivotal-cf/om/download_clients" ) type PivnetDownloader struct { AcceptEULAStub func(string, int) error acceptEULAMut...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/download_clients/fakes/config_service.go
download_clients/fakes/config_service.go
// Code generated by counterfeiter. DO NOT EDIT. package fakes import ( "sync" "github.com/pivotal-cf/om/download_clients" ) type Config struct { ConfigStub func(string) (string, bool) configMutex sync.RWMutex configArgsForCall []struct { arg1 string } configReturns struct { result1 string ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/docsgenerator/update-docs.go
docsgenerator/update-docs.go
package main import ( "fmt" "github.com/onsi/gomega/gexec" "github.com/pivotal-cf/om/docsgenerator/executor" "github.com/pivotal-cf/om/docsgenerator/generator" "os" "path/filepath" ) func main() { currentPath, err := os.Getwd() if err != nil { fmt.Printf("could not determine working directory: %s", err) o...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/docsgenerator/fakes/executor.go
docsgenerator/fakes/executor.go
// Code generated by counterfeiter. DO NOT EDIT. package fakes import ( "sync" ) type Executor struct { GetCommandHelpStub func(string) ([]byte, error) getCommandHelpMutex sync.RWMutex getCommandHelpArgsForCall []struct { arg1 string } getCommandHelpReturns struct { result1 []byte result2 err...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/docsgenerator/generator/generate.go
docsgenerator/generator/generate.go
package generator import ( "fmt" "io" "os" "path/filepath" "sort" "strings" ) const ( ReadmeFileName = "README.md" CommandReadmeTemplate = "<!--- This file is autogenerated from the files in docsgenerator/templates/%s --->\n&larr; [back to Commands](../README.md)\n\n# `om %s`\n\n%s\n\n## Command Usag...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/docsgenerator/generator/generator_test.go
docsgenerator/generator/generator_test.go
package generator_test import ( "errors" "fmt" "os" "path/filepath" "sort" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/pivotal-cf/om/docsgenerator/fakes" "github.com/pivotal-cf/om/docsgenerator/generator" ) var _ = Describe("Generator", func() { var ( ex *fakes.Executo...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/docsgenerator/generator/generator_suite_test.go
docsgenerator/generator/generator_suite_test.go
package generator_test import ( "testing" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) func TestGenerator(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "Generator Suite") }
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/docsgenerator/executor/executor_test.go
docsgenerator/executor/executor_test.go
package executor_test import ( "os" "github.com/pivotal-cf/om/docsgenerator/executor" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var _ = Describe("Executor", func() { It("executes om with the provided args", func() { os.Setenv("STUB_OUTPUT", `1.2.3`) ex := executor.NewExecutor(pathToStub) ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/docsgenerator/executor/execute.go
docsgenerator/executor/execute.go
package executor import ( "os/exec" "strings" ) type Executor struct { omPath string } func NewExecutor(omPath string) Executor { return Executor{ omPath: omPath, } } func (ex Executor) GetDescription(commandName string) (string, error) { output, err := ex.RunOmCommand(commandName, "--help") if err != nil ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/docsgenerator/executor/executor_suite_test.go
docsgenerator/executor/executor_suite_test.go
package executor_test import ( "os" "path/filepath" "testing" "github.com/onsi/gomega/gexec" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var pathToStub string func TestExecutor(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "Executor Suite") } var _ = BeforeSuite(func() { var err er...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/config/config.go
config/config.go
package config import "github.com/pivotal-cf/om/api" type ProductConfiguration struct { ProductName string `yaml:"product-name,omitempty"` ProductProperties map[string]interface{} `yaml:"product-properties,omitempty"` NetworkProperties map[string]interface{} `yam...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/http_client.go
network/http_client.go
package network import ( "context" "crypto/tls" "crypto/x509" "errors" "fmt" "net" "net/http" "os" "strings" "time" ) func newHTTPClient(insecureSkipVerify bool, caCert string, requestTimeout time.Duration, connectTimeout time.Duration) (*http.Client, error) { tlsConfig := &tls.Config{ InsecureSkipVerify...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/oauth_client.go
network/oauth_client.go
package network import ( "fmt" "net/http" "time" "github.com/cloudfoundry-community/go-uaa" "golang.org/x/oauth2" ) type OAuthClient struct { caCert string clientID string clientSecret string insecureSkipVerify bool password string opsmanTarget string uaaTarget...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/unauthenticated_client.go
network/unauthenticated_client.go
package network import ( "net/http" "time" ) type UnauthenticatedClient struct { target string client *http.Client } func NewUnauthenticatedClient(target string, insecureSkipVerify bool, caCert string, connectTimeout time.Duration, requestTimeout time.Duration) (UnauthenticatedClient, error) { client, err := ne...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/init_test.go
network/init_test.go
package network_test import ( "os" "testing" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) func TestNetwork(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "network") } func writeFile(contents string) string { file, err := os.CreateTemp("", "") Expect(err).ToNot(HaveOccurred()) err = os...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/trace_client_test.go
network/trace_client_test.go
package network_test import ( "bytes" "errors" "io" "net/http" "net/http/httputil" "strings" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/gbytes" "github.com/pivotal-cf/om/network" "github.com/pivotal-cf/om/network/fakes" ) var _ = Describe("Trace Client", func() { va...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/oauth_client_test.go
network/oauth_client_test.go
package network_test import ( "crypto/tls" "crypto/x509" "encoding/pem" "log" "net/http" "net/http/httptest" "net/url" "strings" "time" "github.com/onsi/gomega/ghttp" "github.com/pivotal-cf/om/network" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var _ = Describe("OAuthClient", func() { ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/progress_client.go
network/progress_client.go
package network import ( "github.com/cheggaaa/pb/v3" "io" "net/http" ) type ProgressClient struct { client httpClient stderr io.Writer } func NewProgressClient(client httpClient, stderr io.Writer) ProgressClient { return ProgressClient{ client: client, stderr: stderr, } } func (pc ProgressClient) Do(req ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/trace_client.go
network/trace_client.go
package network import ( "fmt" "io" "net/http" "net/http/httputil" ) const maxBodySize = 1024 * 1024 //counterfeiter:generate -o ./fakes/httpclient.go --fake-name HttpClient . httpClient type httpClient interface { Do(*http.Request) (*http.Response, error) } type TraceClient struct { client httpClient write...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/url.go
network/url.go
package network import ( "errors" "fmt" "net/url" "strings" ) // parseURL takes a candidate target URL and attempts to parse it with sane defaults func parseURL(u string) (*url.URL, error) { // default the target protocol to https if none specified if !strings.Contains(u, "://") { u = "https://" + u } targ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/url_test.go
network/url_test.go
package network import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var _ = Describe("url", func() { Describe("parseURL", func() { It("Should parse target URL with http protocol", func() { u, err := parseURL("http://opsman.example.com") Expect(err).ToNot(HaveOccurred()) Expect(u.String()...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/decrypt_client.go
network/decrypt_client.go
package network import ( "bytes" "errors" "fmt" "io" "math/rand" "net" "net/http" "net/url" "strings" "time" ) type DecryptClient struct { unauthedClient httpClient authedClient httpClient tried bool // to enforce only unlock once in the entire run decryptionPassphrase string writer i...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/progress_client_test.go
network/progress_client_test.go
package network_test import ( "errors" "io" "net/http" "strings" "github.com/onsi/gomega/gbytes" "github.com/pivotal-cf/om/network" "github.com/pivotal-cf/om/network/fakes" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var _ = Describe("ProgressClient", func() { var ( client *fake...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/decrypt_client_test.go
network/decrypt_client_test.go
package network_test import ( "errors" "io" "net" "net/http" "strings" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/onsi/gomega/gbytes" "github.com/pivotal-cf/om/network" "github.com/pivotal-cf/om/network/fakes" ) var _ = Describe("DecryptClient", func() { var ( fakeClient *fake...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/unauthenticated_client_test.go
network/unauthenticated_client_test.go
package network_test import ( "bufio" "bytes" "crypto/tls" "crypto/x509" "encoding/pem" "io" "log" "net/http" "net/http/httptest" "net/http/httputil" "net/url" "strings" "time" "github.com/pivotal-cf/om/network" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var _ = Describe("Unauthentic...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/network/fakes/httpclient.go
network/fakes/httpclient.go
// Code generated by counterfeiter. DO NOT EDIT. package fakes import ( "net/http" "sync" ) type HttpClient struct { DoStub func(*http.Request) (*http.Response, error) doMutex sync.RWMutex doArgsForCall []struct { arg1 *http.Request } doReturns struct { result1 *http.Response result2 error ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/validator/sha256_calculator.go
validator/sha256_calculator.go
package validator import ( "crypto/sha256" "fmt" "io" "os" ) type FileSHA256HashCalculator struct{} func NewSHA256Calculator() FileSHA256HashCalculator { return FileSHA256HashCalculator{} } func (c FileSHA256HashCalculator) Checksum(path string) (string, error) { file, err := os.Open(path) if err != nil { ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/validator/sha256_calculator_test.go
validator/sha256_calculator_test.go
package validator_test import ( "os" "path/filepath" "github.com/pivotal-cf/om/validator" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var _ = Describe("FileSHA256HashCalculator", func() { var ( fileSHA256HashCalculator validator.FileSHA256HashCalculator fileToSHA256 string ) ...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/validator/init_test.go
validator/init_test.go
package validator_test import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "testing" ) func TestCommands(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "validator") }
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/docstest/docs_suite_test.go
docstest/docs_suite_test.go
package docs_test import ( "testing" "github.com/onsi/gomega/gexec" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) func TestDocstest(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "Docstest Suite") } var pathToMain string var _ = SynchronizedBeforeSuite(func() []byte { var err error omP...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
pivotal-cf/om
https://github.com/pivotal-cf/om/blob/245e150f629341f904f56882e30f43e376dbbcc5/docstest/docs_test.go
docstest/docs_test.go
package docs_test import ( "fmt" "os" "os/exec" "path/filepath" "strings" "github.com/onsi/gomega/gexec" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var _ = Describe("Documentation coverage", func() { Context("Commands doc", func() { It("Mentions every command we distribute", func() { c...
go
Apache-2.0
245e150f629341f904f56882e30f43e376dbbcc5
2026-01-07T09:45:45.909243Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/main.go
main.go
/* 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...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/integration/deploy_test.go
tests/integration/deploy_test.go
//go:build integration // +build integration package integration import ( "context" "os/exec" "path" "time" "github.com/stretchr/testify/suite" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "github.com/samba-in-kubernetes/samba-operator/tests/utils/kube" ) type DeploySuite struct { suite.Suite sharedConf...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/integration/common_test.go
tests/integration/common_test.go
//go:build integration // +build integration package integration import ( "fmt" "math/rand" "os" "strconv" "time" ) var ( testNamespace = "samba-operator-system" testFilesDir = "../files" operatorConfigDir = "../../config" kustomizeCmd = "kustomize" testExpectedImage = "quay.io/samba.org/samba-oper...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/integration/scheduling_test.go
tests/integration/scheduling_test.go
//go:build integration // +build integration // SPDX-License-Identifier: Apache-2.0 package integration import ( "context" "fmt" "math/rand" "path" "github.com/stretchr/testify/suite" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/ap...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/integration/smb_share_test.go
tests/integration/smb_share_test.go
//go:build integration // +build integration package integration import ( "context" "fmt" "math" "path" "strings" "time" "github.com/stretchr/testify/suite" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pk...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/integration/cleanup_test.go
tests/integration/cleanup_test.go
//go:build integration // +build integration package integration import ( "context" "fmt" "math" "path" "time" "github.com/stretchr/testify/suite" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" kerrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apim...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/integration/grouped_test.go
tests/integration/grouped_test.go
//go:build integration // +build integration package integration import ( "context" "fmt" "math" "path" "strings" "testing" "time" "github.com/stretchr/testify/suite" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" sambaoperatorv1alpha1 "github.com/samba-in-kubernetes/samba-...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false
samba-in-kubernetes/samba-operator
https://github.com/samba-in-kubernetes/samba-operator/blob/24b28b69b01ba7be5585ff48e54421cbe3bb6288/tests/integration/share_access_test.go
tests/integration/share_access_test.go
//go:build integration // +build integration package integration import ( "context" "time" "github.com/stretchr/testify/suite" "github.com/samba-in-kubernetes/samba-operator/tests/utils/kube" "github.com/samba-in-kubernetes/samba-operator/tests/utils/poll" "github.com/samba-in-kubernetes/samba-operator/tests/...
go
Apache-2.0
24b28b69b01ba7be5585ff48e54421cbe3bb6288
2026-01-07T09:45:50.180718Z
false