com.oneops:oneops-client-config

Common configuration mechanism for OneOps clients.

License

License

Categories

Categories

CLI User Interface config Application Layer Libs Configuration
GroupId

GroupId

com.oneops
ArtifactId

ArtifactId

oneops-client-config
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Common configuration mechanism for OneOps clients.
Project URL

Project URL

http://github.com/oneops/oneops-client-config
Project Organization

Project Organization

Walmart, Inc.
Source Code Management

Source Code Management

https://github.com/oneops/oneops-client-config

Download oneops-client-config

How to add to project

<!-- https://jarcasting.com/artifacts/com.oneops/oneops-client-config/ -->
<dependency>
    <groupId>com.oneops</groupId>
    <artifactId>oneops-client-config</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.oneops/oneops-client-config/
implementation 'com.oneops:oneops-client-config:0.0.2'
// https://jarcasting.com/artifacts/com.oneops/oneops-client-config/
implementation ("com.oneops:oneops-client-config:0.0.2")
'com.oneops:oneops-client-config:jar:0.0.2'
<dependency org="com.oneops" name="oneops-client-config" rev="0.0.2">
  <artifact name="oneops-client-config" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.oneops', module='oneops-client-config', version='0.0.2')
)
libraryDependencies += "com.oneops" % "oneops-client-config" % "0.0.2"
[com.oneops/oneops-client-config "0.0.2"]

Dependencies

compile (2)

Group / Artifact Type Version
com.google.guava : guava jar 21.0
org.ini4j : ini4j jar 0.5.4

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

OneOps Client Config

The OneOps client config library is a standard way for OneOps client applications to retrieve configuration for connecting to a OneOps instance. The default configuration location is ~/.oneops/config, but we also support the ~/.boo/config location for Boo users. A simple INI format is used:

[default]
host = https://prod.oneops.walmart.com
organization = megatron
api_key = XXXXXX
email = [email protected]
cloud = magic-cloud-5

And to load the standard OneOps client configuration from ~/.oneops/config with the default profile you can use the following example:

import java.io.File;
import java.util.Map;

public class OneOpsClient {

  // ...

  public Map<String,String> loadOneOpsConfig() throws Exception {
    OneOpsConfigReader reader = new OneOpsConfigReader();
    Map<String,String> config = reader.readDefaultConfig();
    return config;
  }
}
com.oneops

OneOps

Application Lifecycle Management of Cloud Based Workloads

Versions

Version
0.0.2
0.0.1